This file defines Cedar extension values.
@[reducible, inline]
Instances For
@[reducible, inline]
Instances For
Ordering on extension types: .decimal < .ipaddr < .datetime < .duration
Equations
- (Cedar.Spec.Ext.decimal d₁).lt (Cedar.Spec.Ext.decimal d₂) = decide (d₁ < d₂)
- (Cedar.Spec.Ext.ipaddr ip₁).lt (Cedar.Spec.Ext.ipaddr ip₂) = decide (ip₁ < ip₂)
- (Cedar.Spec.Ext.datetime d₁).lt (Cedar.Spec.Ext.datetime d₂) = decide (d₁ < d₂)
- (Cedar.Spec.Ext.duration d₁).lt (Cedar.Spec.Ext.duration d₂) = decide (d₁ < d₂)
- (Cedar.Spec.Ext.decimal d).lt x✝ = true
- (Cedar.Spec.Ext.ipaddr ip).lt (Cedar.Spec.Ext.datetime dt) = true
- (Cedar.Spec.Ext.ipaddr ip).lt (Cedar.Spec.Ext.duration dur) = true
- (Cedar.Spec.Ext.datetime dt).lt (Cedar.Spec.Ext.duration dur) = true
- x✝¹.lt x✝ = false
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Cedar.Spec.instReprExt = { reprPrec := Cedar.Spec.instReprExt.repr }
Equations
- Cedar.Spec.instDecidableEqExt.decEq (Cedar.Spec.Ext.decimal a) (Cedar.Spec.Ext.decimal b) = if h : a = b then h ▸ isTrue ⋯ else isFalse ⋯
- Cedar.Spec.instDecidableEqExt.decEq (Cedar.Spec.Ext.decimal d) (Cedar.Spec.Ext.ipaddr ip) = isFalse ⋯
- Cedar.Spec.instDecidableEqExt.decEq (Cedar.Spec.Ext.decimal d) (Cedar.Spec.Ext.datetime dt) = isFalse ⋯
- Cedar.Spec.instDecidableEqExt.decEq (Cedar.Spec.Ext.decimal d) (Cedar.Spec.Ext.duration dur) = isFalse ⋯
- Cedar.Spec.instDecidableEqExt.decEq (Cedar.Spec.Ext.ipaddr ip) (Cedar.Spec.Ext.decimal d) = isFalse ⋯
- Cedar.Spec.instDecidableEqExt.decEq (Cedar.Spec.Ext.ipaddr a) (Cedar.Spec.Ext.ipaddr b) = if h : a = b then h ▸ isTrue ⋯ else isFalse ⋯
- Cedar.Spec.instDecidableEqExt.decEq (Cedar.Spec.Ext.ipaddr ip) (Cedar.Spec.Ext.datetime dt) = isFalse ⋯
- Cedar.Spec.instDecidableEqExt.decEq (Cedar.Spec.Ext.ipaddr ip) (Cedar.Spec.Ext.duration dur) = isFalse ⋯
- Cedar.Spec.instDecidableEqExt.decEq (Cedar.Spec.Ext.datetime dt) (Cedar.Spec.Ext.decimal d) = isFalse ⋯
- Cedar.Spec.instDecidableEqExt.decEq (Cedar.Spec.Ext.datetime dt) (Cedar.Spec.Ext.ipaddr ip) = isFalse ⋯
- Cedar.Spec.instDecidableEqExt.decEq (Cedar.Spec.Ext.datetime a) (Cedar.Spec.Ext.datetime b) = if h : a = b then h ▸ isTrue ⋯ else isFalse ⋯
- Cedar.Spec.instDecidableEqExt.decEq (Cedar.Spec.Ext.datetime dt) (Cedar.Spec.Ext.duration dur) = isFalse ⋯
- Cedar.Spec.instDecidableEqExt.decEq (Cedar.Spec.Ext.duration dur) (Cedar.Spec.Ext.decimal d) = isFalse ⋯
- Cedar.Spec.instDecidableEqExt.decEq (Cedar.Spec.Ext.duration dur) (Cedar.Spec.Ext.ipaddr ip) = isFalse ⋯
- Cedar.Spec.instDecidableEqExt.decEq (Cedar.Spec.Ext.duration dur) (Cedar.Spec.Ext.datetime dt) = isFalse ⋯
- Cedar.Spec.instDecidableEqExt.decEq (Cedar.Spec.Ext.duration a) (Cedar.Spec.Ext.duration b) = if h : a = b then h ▸ isTrue ⋯ else isFalse ⋯
Instances For
Instances For
Equations
Equations
- Cedar.Spec.instLTExt = { lt := fun (x y : Cedar.Spec.Ext) => x.lt y = true }
Equations
- Cedar.Spec.instCoeDecimalExt = { coe := fun (d : Cedar.Spec.Ext.Decimal) => Cedar.Spec.Ext.decimal d }
Equations
- Cedar.Spec.instCoeIPAddrExt = { coe := fun (a : Cedar.Spec.IPAddr) => Cedar.Spec.Ext.ipaddr a }
Equations
- Cedar.Spec.instCoeDatetimeExt = { coe := fun (dt : Cedar.Spec.Ext.Datetime) => Cedar.Spec.Ext.datetime dt }
Equations
- Cedar.Spec.instCoeDurationExt = { coe := fun (dur : Cedar.Spec.Duration) => Cedar.Spec.Ext.duration dur }