This file defines Cedar values and results.
@[reducible, inline]
Equations
Instances For
Equations
- Cedar.Spec.instToStringName = { toString := fun (n : Cedar.Spec.Name) => String.join (List.map (fun (s : Cedar.Spec.Id) => toString s ++ toString "::") n.path) ++ n.id }
@[reducible, inline]
Equations
Instances For
Equations
- Cedar.Spec.instToStringEntityType = { toString := fun (ety : Cedar.Spec.EntityType) => have n := ety; toString n }
@[reducible, inline]
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
- Cedar.Spec.Result.as β (Except.ok v) = Coe.coe v
- Cedar.Spec.Result.as β (Except.error e) = Except.error e
Instances For
Equations
- Cedar.Spec.instCoeBoolValue = { coe := fun (b : Bool) => Cedar.Spec.Value.prim (Cedar.Spec.Prim.bool b) }
Equations
- Cedar.Spec.instCoeInt64Value = { coe := fun (i : Int64) => Cedar.Spec.Value.prim (Cedar.Spec.Prim.int i) }
Equations
- Cedar.Spec.instCoeStringValue = { coe := fun (s : String) => Cedar.Spec.Value.prim (Cedar.Spec.Prim.string s) }
Equations
- Cedar.Spec.instCoeEntityUIDValue = { coe := fun (e : Cedar.Spec.EntityUID) => Cedar.Spec.Value.prim (Cedar.Spec.Prim.entityUID e) }
Equations
- Cedar.Spec.instCoePrimValue = { coe := fun (p : Cedar.Spec.Prim) => Cedar.Spec.Value.prim p }
Equations
- Cedar.Spec.instCoeExtValue = { coe := fun (x : Cedar.Spec.Ext) => Cedar.Spec.Value.ext x }
Equations
- Cedar.Spec.instCoeSetValue = { coe := fun (s : Cedar.Data.Set Cedar.Spec.Value) => Cedar.Spec.Value.set s }
Equations
- Cedar.Spec.instCoeMapAttrValue = { coe := fun (r : Cedar.Data.Map Cedar.Spec.Attr Cedar.Spec.Value) => Cedar.Spec.Value.record r }
Equations
- Cedar.Spec.instCoeValueResultBool = { coe := fun (v : Cedar.Spec.Value) => v.asBool }
Equations
- Cedar.Spec.instCoeValueResultInt64 = { coe := fun (v : Cedar.Spec.Value) => v.asInt }
Equations
- Cedar.Spec.instCoeValueResultString = { coe := fun (v : Cedar.Spec.Value) => v.asString }
Equations
- Cedar.Spec.instCoeValueResultEntityUID = { coe := fun (v : Cedar.Spec.Value) => v.asEntityUID }
Equations
- Cedar.Spec.instCoeValueResultSet = { coe := fun (v : Cedar.Spec.Value) => v.asSet }
Equations
def
Cedar.Spec.instReprExcept_cedar.repr
{ε✝ : Type u_1}
{α✝ : Type u_2}
[Repr ε✝]
[Repr α✝]
:
Except ε✝ α✝ → Nat → Std.Format
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Cedar.Spec.instDecidableEqExcept_cedar.decEq
{ε✝ : Type u_1}
{α✝ : Type u_2}
[DecidableEq ε✝]
[DecidableEq α✝]
(x✝ x✝¹ : Except ε✝ α✝)
:
Equations
- Cedar.Spec.instDecidableEqExcept_cedar.decEq (Except.error a) (Except.error b) = if h : a = b then h ▸ isTrue ⋯ else isFalse ⋯
- Cedar.Spec.instDecidableEqExcept_cedar.decEq (Except.error a) (Except.ok a_1) = isFalse ⋯
- Cedar.Spec.instDecidableEqExcept_cedar.decEq (Except.ok a) (Except.error a_1) = isFalse ⋯
- Cedar.Spec.instDecidableEqExcept_cedar.decEq (Except.ok a) (Except.ok b) = if h : a = b then h ▸ isTrue ⋯ else isFalse ⋯
Instances For
instance
Cedar.Spec.instDecidableEqExcept_cedar
{ε✝ : Type u_1}
{α✝ : Type u_2}
[DecidableEq ε✝]
[DecidableEq α✝]
:
DecidableEq (Except ε✝ α✝)
Equations
- Cedar.Spec.instBEqExcept_cedar.beq (Except.error a) (Except.error b) = (a == b)
- Cedar.Spec.instBEqExcept_cedar.beq (Except.ok a) (Except.ok b) = (a == b)
- Cedar.Spec.instBEqExcept_cedar.beq x✝¹ x✝ = false
Instances For
Equations
Equations
- Cedar.Spec.instReprError = { reprPrec := Cedar.Spec.instReprError.repr }
Equations
- One or more equations did not get rendered due to their size.
- Cedar.Spec.instReprError.repr Cedar.Spec.Error.typeError prec✝ = Repr.addAppParen (Std.Format.nest (if prec✝ ≥ 1024 then 1 else 2) (Std.Format.text "Cedar.Spec.Error.typeError")).group prec✝
Instances For
Equations
- Cedar.Spec.instReprName = { reprPrec := Cedar.Spec.instReprName.repr }
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
Equations
Instances For
Equations
- Cedar.Spec.instReprEntityUID = { reprPrec := Cedar.Spec.instReprEntityUID.repr }
Equations
- One or more equations did not get rendered due to their size.
Instances For
Instances For
Equations
Equations
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Cedar.Spec.instReprPrim = { reprPrec := Cedar.Spec.instReprPrim.repr }
Equations
- Cedar.Spec.instDecidableEqPrim.decEq (Cedar.Spec.Prim.bool a) (Cedar.Spec.Prim.bool b) = if h : a = b then h ▸ isTrue ⋯ else isFalse ⋯
- Cedar.Spec.instDecidableEqPrim.decEq (Cedar.Spec.Prim.bool b) (Cedar.Spec.Prim.int i) = isFalse ⋯
- Cedar.Spec.instDecidableEqPrim.decEq (Cedar.Spec.Prim.bool b) (Cedar.Spec.Prim.string s) = isFalse ⋯
- Cedar.Spec.instDecidableEqPrim.decEq (Cedar.Spec.Prim.bool b) (Cedar.Spec.Prim.entityUID uid) = isFalse ⋯
- Cedar.Spec.instDecidableEqPrim.decEq (Cedar.Spec.Prim.int i) (Cedar.Spec.Prim.bool b) = isFalse ⋯
- Cedar.Spec.instDecidableEqPrim.decEq (Cedar.Spec.Prim.int a) (Cedar.Spec.Prim.int b) = if h : a = b then h ▸ isTrue ⋯ else isFalse ⋯
- Cedar.Spec.instDecidableEqPrim.decEq (Cedar.Spec.Prim.int i) (Cedar.Spec.Prim.string s) = isFalse ⋯
- Cedar.Spec.instDecidableEqPrim.decEq (Cedar.Spec.Prim.int i) (Cedar.Spec.Prim.entityUID uid) = isFalse ⋯
- Cedar.Spec.instDecidableEqPrim.decEq (Cedar.Spec.Prim.string s) (Cedar.Spec.Prim.bool b) = isFalse ⋯
- Cedar.Spec.instDecidableEqPrim.decEq (Cedar.Spec.Prim.string s) (Cedar.Spec.Prim.int i) = isFalse ⋯
- Cedar.Spec.instDecidableEqPrim.decEq (Cedar.Spec.Prim.string a) (Cedar.Spec.Prim.string b) = if h : a = b then h ▸ isTrue ⋯ else isFalse ⋯
- Cedar.Spec.instDecidableEqPrim.decEq (Cedar.Spec.Prim.string s) (Cedar.Spec.Prim.entityUID uid) = isFalse ⋯
- Cedar.Spec.instDecidableEqPrim.decEq (Cedar.Spec.Prim.entityUID uid) (Cedar.Spec.Prim.bool b) = isFalse ⋯
- Cedar.Spec.instDecidableEqPrim.decEq (Cedar.Spec.Prim.entityUID uid) (Cedar.Spec.Prim.int i) = isFalse ⋯
- Cedar.Spec.instDecidableEqPrim.decEq (Cedar.Spec.Prim.entityUID uid) (Cedar.Spec.Prim.string s) = isFalse ⋯
- Cedar.Spec.instDecidableEqPrim.decEq (Cedar.Spec.Prim.entityUID a) (Cedar.Spec.Prim.entityUID b) = if h : a = b then h ▸ isTrue ⋯ else isFalse ⋯
Instances For
Instances For
Equations
Equations
- Cedar.Spec.instReprValue = { reprPrec := Cedar.Spec.instReprValue.repr }
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Cedar.Spec.instLTName = { lt := fun (a b : Cedar.Spec.Name) => a.lt b = true }
Equations
- Cedar.Spec.instLTEntityUID = { lt := fun (a b : Cedar.Spec.EntityUID) => a.lt b = true }
Equations
- (Cedar.Spec.Prim.bool b₁).lt (Cedar.Spec.Prim.bool b₂) = decide (b₁ < b₂)
- (Cedar.Spec.Prim.int i₁).lt (Cedar.Spec.Prim.int i₂) = decide (i₁ < i₂)
- (Cedar.Spec.Prim.string s₁).lt (Cedar.Spec.Prim.string s₂) = decide (s₁ < s₂)
- (Cedar.Spec.Prim.entityUID uid₁).lt (Cedar.Spec.Prim.entityUID uid₂) = decide (uid₁ < uid₂)
- (Cedar.Spec.Prim.bool b).lt (Cedar.Spec.Prim.int i) = true
- (Cedar.Spec.Prim.bool b).lt (Cedar.Spec.Prim.string s) = true
- (Cedar.Spec.Prim.bool b).lt (Cedar.Spec.Prim.entityUID uid) = true
- (Cedar.Spec.Prim.int i).lt (Cedar.Spec.Prim.string s) = true
- (Cedar.Spec.Prim.int i).lt (Cedar.Spec.Prim.entityUID uid) = true
- (Cedar.Spec.Prim.string s).lt (Cedar.Spec.Prim.entityUID uid) = true
- x✝¹.lt x✝ = false
Instances For
Equations
- Cedar.Spec.instLTPrim = { lt := fun (x y : Cedar.Spec.Prim) => x.lt y = true }
@[irreducible]
Equations
- (Cedar.Spec.Value.prim p₁).lt (Cedar.Spec.Value.prim p₂) = decide (p₁ < p₂)
- (Cedar.Spec.Value.set (Cedar.Data.Set.mk vs₁)).lt (Cedar.Spec.Value.set (Cedar.Data.Set.mk vs₂)) = Cedar.Spec.Values.lt vs₁ vs₂
- (Cedar.Spec.Value.record (Cedar.Data.Map.mk avs₁)).lt (Cedar.Spec.Value.record (Cedar.Data.Map.mk avs₂)) = Cedar.Spec.ValueAttrs.lt avs₁ avs₂
- (Cedar.Spec.Value.ext x_2).lt (Cedar.Spec.Value.ext y) = decide (x_2 < y)
- (Cedar.Spec.Value.prim p).lt (Cedar.Spec.Value.set s) = true
- (Cedar.Spec.Value.prim p).lt (Cedar.Spec.Value.record m) = true
- (Cedar.Spec.Value.prim p).lt (Cedar.Spec.Value.ext x_2) = true
- (Cedar.Spec.Value.set s).lt (Cedar.Spec.Value.record m) = true
- (Cedar.Spec.Value.set s).lt (Cedar.Spec.Value.ext x_2) = true
- (Cedar.Spec.Value.set s).lt (Cedar.Spec.Value.prim p) = false
- (Cedar.Spec.Value.record m).lt (Cedar.Spec.Value.ext x_2) = true
- (Cedar.Spec.Value.record m).lt (Cedar.Spec.Value.prim p) = false
- (Cedar.Spec.Value.record m).lt (Cedar.Spec.Value.set s) = false
- (Cedar.Spec.Value.ext x_2).lt (Cedar.Spec.Value.prim p) = false
- (Cedar.Spec.Value.ext x_2).lt (Cedar.Spec.Value.set s) = false
- (Cedar.Spec.Value.ext x_2).lt (Cedar.Spec.Value.record m) = false
Instances For
@[irreducible]
Equations
Instances For
@[irreducible]
Equations
- Cedar.Spec.ValueAttrs.lt [] [] = false
- Cedar.Spec.ValueAttrs.lt [] x✝ = true
- Cedar.Spec.ValueAttrs.lt x✝ [] = false
- Cedar.Spec.ValueAttrs.lt ((a₁, v₁) :: avs₁) ((a₂, v₂) :: avs₂) = (decide (a₁ < a₂) || decide (a₁ = a₂) && v₁.lt v₂ || decide (a₁ = a₂) && decide (v₁ = v₂) && Cedar.Spec.ValueAttrs.lt avs₁ avs₂)
Instances For
Equations
- Cedar.Spec.instLTValue = { lt := fun (x y : Cedar.Spec.Value) => x.lt y = true }