This file defines the types of Cedar Terms. See Term.lean for the
definition of the Term language.
- bool : TermPrimType
- bitvec (n : Nat) : TermPrimType
- string : TermPrimType
- entity (ety : Spec.EntityType) : TermPrimType
- ext (xty : Validation.ExtType) : TermPrimType
Instances For
@[reducible, inline]
Instances For
@[reducible, inline]
Equations
Instances For
@[reducible, inline]
Instances For
@[reducible, inline]
Equations
Instances For
@[reducible, inline]
Equations
Instances For
@[reducible, inline]
Equations
Instances For
@[inline]
Equations
- (Cedar.SymCC.TermType.prim pty).isPrimType = true
- x✝.isPrimType = false
Instances For
@[inline]
Equations
Instances For
@[inline]
Equations
Instances For
@[inline]
Equations
Instances For
@[inline]
Equations
Instances For
Equations
- Cedar.SymCC.TermType.ofType (Cedar.Validation.CedarType.bool bty) = Cedar.SymCC.TermType.prim Cedar.SymCC.TermPrimType.bool
- Cedar.SymCC.TermType.ofType Cedar.Validation.CedarType.int = Cedar.SymCC.TermType.prim (Cedar.SymCC.TermPrimType.bitvec 64)
- Cedar.SymCC.TermType.ofType Cedar.Validation.CedarType.string = Cedar.SymCC.TermType.prim Cedar.SymCC.TermPrimType.string
- Cedar.SymCC.TermType.ofType (Cedar.Validation.CedarType.entity ety) = Cedar.SymCC.TermType.prim (Cedar.SymCC.TermPrimType.entity ety)
- Cedar.SymCC.TermType.ofType (Cedar.Validation.CedarType.ext xty) = Cedar.SymCC.TermType.prim (Cedar.SymCC.TermPrimType.ext xty)
- Cedar.SymCC.TermType.ofType ty_2.set = (Cedar.SymCC.TermType.ofType ty_2).set
- Cedar.SymCC.TermType.ofType (Cedar.Validation.CedarType.record (Cedar.Data.Map.mk rty)) = Cedar.SymCC.TermType.record (Cedar.Data.Map.mk (Cedar.SymCC.TermType.ofRecordType rty))
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Equations
- Cedar.SymCC.instDecidableEqTermPrimType.decEq Cedar.SymCC.TermPrimType.bool Cedar.SymCC.TermPrimType.bool = isTrue ⋯
- Cedar.SymCC.instDecidableEqTermPrimType.decEq Cedar.SymCC.TermPrimType.bool (Cedar.SymCC.TermPrimType.bitvec n) = isFalse ⋯
- Cedar.SymCC.instDecidableEqTermPrimType.decEq Cedar.SymCC.TermPrimType.bool Cedar.SymCC.TermPrimType.string = isFalse Cedar.SymCC.instDecidableEqTermPrimType.decEq._proof_2✝
- Cedar.SymCC.instDecidableEqTermPrimType.decEq Cedar.SymCC.TermPrimType.bool (Cedar.SymCC.TermPrimType.entity ety) = isFalse ⋯
- Cedar.SymCC.instDecidableEqTermPrimType.decEq Cedar.SymCC.TermPrimType.bool (Cedar.SymCC.TermPrimType.ext xty) = isFalse ⋯
- Cedar.SymCC.instDecidableEqTermPrimType.decEq (Cedar.SymCC.TermPrimType.bitvec n) Cedar.SymCC.TermPrimType.bool = isFalse ⋯
- Cedar.SymCC.instDecidableEqTermPrimType.decEq (Cedar.SymCC.TermPrimType.bitvec a) (Cedar.SymCC.TermPrimType.bitvec b) = if h : a = b then h ▸ isTrue ⋯ else isFalse ⋯
- Cedar.SymCC.instDecidableEqTermPrimType.decEq (Cedar.SymCC.TermPrimType.bitvec n) Cedar.SymCC.TermPrimType.string = isFalse ⋯
- Cedar.SymCC.instDecidableEqTermPrimType.decEq (Cedar.SymCC.TermPrimType.bitvec n) (Cedar.SymCC.TermPrimType.entity ety) = isFalse ⋯
- Cedar.SymCC.instDecidableEqTermPrimType.decEq (Cedar.SymCC.TermPrimType.bitvec n) (Cedar.SymCC.TermPrimType.ext xty) = isFalse ⋯
- Cedar.SymCC.instDecidableEqTermPrimType.decEq Cedar.SymCC.TermPrimType.string Cedar.SymCC.TermPrimType.bool = isFalse Cedar.SymCC.instDecidableEqTermPrimType.decEq._proof_11✝
- Cedar.SymCC.instDecidableEqTermPrimType.decEq Cedar.SymCC.TermPrimType.string (Cedar.SymCC.TermPrimType.bitvec n) = isFalse ⋯
- Cedar.SymCC.instDecidableEqTermPrimType.decEq Cedar.SymCC.TermPrimType.string Cedar.SymCC.TermPrimType.string = isTrue ⋯
- Cedar.SymCC.instDecidableEqTermPrimType.decEq Cedar.SymCC.TermPrimType.string (Cedar.SymCC.TermPrimType.entity ety) = isFalse ⋯
- Cedar.SymCC.instDecidableEqTermPrimType.decEq Cedar.SymCC.TermPrimType.string (Cedar.SymCC.TermPrimType.ext xty) = isFalse ⋯
- Cedar.SymCC.instDecidableEqTermPrimType.decEq (Cedar.SymCC.TermPrimType.entity ety) Cedar.SymCC.TermPrimType.bool = isFalse ⋯
- Cedar.SymCC.instDecidableEqTermPrimType.decEq (Cedar.SymCC.TermPrimType.entity ety) (Cedar.SymCC.TermPrimType.bitvec n) = isFalse ⋯
- Cedar.SymCC.instDecidableEqTermPrimType.decEq (Cedar.SymCC.TermPrimType.entity ety) Cedar.SymCC.TermPrimType.string = isFalse ⋯
- Cedar.SymCC.instDecidableEqTermPrimType.decEq (Cedar.SymCC.TermPrimType.entity a) (Cedar.SymCC.TermPrimType.entity b) = if h : a = b then h ▸ isTrue ⋯ else isFalse ⋯
- Cedar.SymCC.instDecidableEqTermPrimType.decEq (Cedar.SymCC.TermPrimType.entity ety) (Cedar.SymCC.TermPrimType.ext xty) = isFalse ⋯
- Cedar.SymCC.instDecidableEqTermPrimType.decEq (Cedar.SymCC.TermPrimType.ext xty) Cedar.SymCC.TermPrimType.bool = isFalse ⋯
- Cedar.SymCC.instDecidableEqTermPrimType.decEq (Cedar.SymCC.TermPrimType.ext xty) (Cedar.SymCC.TermPrimType.bitvec n) = isFalse ⋯
- Cedar.SymCC.instDecidableEqTermPrimType.decEq (Cedar.SymCC.TermPrimType.ext xty) Cedar.SymCC.TermPrimType.string = isFalse ⋯
- Cedar.SymCC.instDecidableEqTermPrimType.decEq (Cedar.SymCC.TermPrimType.ext xty) (Cedar.SymCC.TermPrimType.entity ety) = isFalse ⋯
- Cedar.SymCC.instDecidableEqTermPrimType.decEq (Cedar.SymCC.TermPrimType.ext a) (Cedar.SymCC.TermPrimType.ext b) = if h : a = b then h ▸ isTrue ⋯ else isFalse ⋯
Instances For
Equations
- Cedar.SymCC.instReprTermType = { reprPrec := Cedar.SymCC.instReprTermType.repr }
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Cedar.SymCC.TermPrimType.bool.mkName = "bool"
- (Cedar.SymCC.TermPrimType.bitvec a).mkName = "bitvec"
- Cedar.SymCC.TermPrimType.string.mkName = "string"
- (Cedar.SymCC.TermPrimType.entity a).mkName = "entity"
- (Cedar.SymCC.TermPrimType.ext a).mkName = "ext"
Instances For
Equations
- Cedar.Validation.ExtType.decimal.lt Cedar.Validation.ExtType.ipAddr = true
- Cedar.Validation.ExtType.decimal.lt Cedar.Validation.ExtType.datetime = true
- Cedar.Validation.ExtType.decimal.lt Cedar.Validation.ExtType.duration = true
- Cedar.Validation.ExtType.ipAddr.lt Cedar.Validation.ExtType.datetime = true
- Cedar.Validation.ExtType.ipAddr.lt Cedar.Validation.ExtType.duration = true
- Cedar.Validation.ExtType.datetime.lt Cedar.Validation.ExtType.duration = true
- x✝¹.lt x✝ = false
Instances For
Equations
- Cedar.Validation.instLTExtType = { lt := fun (x y : Cedar.Validation.ExtType) => x.lt y = true }
Equations
- (Cedar.SymCC.TermPrimType.bitvec n₁).lt (Cedar.SymCC.TermPrimType.bitvec n₂) = decide (n₁ < n₂)
- (Cedar.SymCC.TermPrimType.entity ety₁).lt (Cedar.SymCC.TermPrimType.entity ety₂) = decide (ety₁ < ety₂)
- (Cedar.SymCC.TermPrimType.ext xty₁).lt (Cedar.SymCC.TermPrimType.ext xty₂) = decide (xty₁ < xty₂)
- x✝¹.lt x✝ = decide (x✝¹.mkName < x✝.mkName)
Instances For
Equations
- Cedar.SymCC.instLTTermPrimType = { lt := fun (x y : Cedar.SymCC.TermPrimType) => x.lt y = true }
@[irreducible]
Equations
- (Cedar.SymCC.TermType.prim pty₁).lt (Cedar.SymCC.TermType.prim pty₂) = decide (pty₁ < pty₂)
- ty₁.option.lt ty₂.option = ty₁.lt ty₂
- ty₁.set.lt ty₂.set = ty₁.lt ty₂
- (Cedar.SymCC.TermType.record (Cedar.Data.Map.mk rty₁)).lt (Cedar.SymCC.TermType.record (Cedar.Data.Map.mk rty₂)) = Cedar.SymCC.TermType.ltListProd✝ rty₁ rty₂
- x✝¹.lt x✝ = decide (x✝¹.mkName < x✝.mkName)
Instances For
Equations
- Cedar.SymCC.instLTTermType = { lt := fun (x y : Cedar.SymCC.TermType) => x.lt y = true }