This file includes boolean definitions for the propositions declared in Cedar/Thm/Validation/Typechecker/Types.lean.
- typeError (msg : String) : RequestValidationError
Instances For
@[reducible, inline]
Equations
Instances For
- typeError (msg : String) : EntityValidationError
Instances For
@[reducible, inline]
Equations
Instances For
Equations
Instances For
def
Cedar.Validation.instanceOfEntityType
(e : Spec.EntityUID)
(ety : Spec.EntityType)
(env : TypeEnv)
:
Equations
- Cedar.Validation.instanceOfEntityType e ety env = (ety == e.ty && (env.ets.isValidEntityUID e || env.acts.contains e))
Instances For
Equations
- Cedar.Validation.instanceOfExtType (Cedar.Spec.Ext.decimal d) Cedar.Validation.ExtType.decimal = true
- Cedar.Validation.instanceOfExtType (Cedar.Spec.Ext.ipaddr ip) Cedar.Validation.ExtType.ipAddr = true
- Cedar.Validation.instanceOfExtType (Cedar.Spec.Ext.datetime dt) Cedar.Validation.ExtType.datetime = true
- Cedar.Validation.instanceOfExtType (Cedar.Spec.Ext.duration dur) Cedar.Validation.ExtType.duration = true
- Cedar.Validation.instanceOfExtType ext extty = false
Instances For
def
Cedar.Validation.requiredAttributePresent
(r : Data.Map Spec.Attr Spec.Value)
(rty : Data.Map Spec.Attr (Qualified CedarType))
(k : Spec.Attr)
:
Equations
Instances For
@[irreducible]
Equations
- One or more equations did not get rendered due to their size.
- Cedar.Validation.instanceOfType (Cedar.Spec.Value.prim (Cedar.Spec.Prim.bool b)) (Cedar.Validation.CedarType.bool bty) env = Cedar.Validation.instanceOfBoolType b bty
- Cedar.Validation.instanceOfType (Cedar.Spec.Value.prim (Cedar.Spec.Prim.int i)) Cedar.Validation.CedarType.int env = true
- Cedar.Validation.instanceOfType (Cedar.Spec.Value.prim (Cedar.Spec.Prim.string s)) Cedar.Validation.CedarType.string env = true
- Cedar.Validation.instanceOfType (Cedar.Spec.Value.prim (Cedar.Spec.Prim.entityUID e)) (Cedar.Validation.CedarType.entity ety) env = Cedar.Validation.instanceOfEntityType e ety env
- Cedar.Validation.instanceOfType (Cedar.Spec.Value.ext x) (Cedar.Validation.CedarType.ext xty) env = Cedar.Validation.instanceOfExtType x xty
- Cedar.Validation.instanceOfType v ty env = false
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
For every entity in the store,
- The entity's type is defined in the type store (either
etsorasfor action entities). - The entity's attributes match the attribute types indicated in the type store.
- The entity's ancestors' types are consistent with the ancestor information in the type store.
- The entity's tags' types are consistent with the tags information in the type store.
For every action in the entity store, the action's ancestors are consistent with the ancestor information in the action store.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Cedar.Validation.instanceOfSchema.instanceOfEntityTags
(env : TypeEnv)
(data : Spec.EntityData)
(entry : EntitySchemaEntry)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Cedar.Validation.instanceOfSchema.instanceOfEntitySchemaEntry
(env : TypeEnv)
(uid : Spec.EntityUID)
(data : Spec.EntityData)
(entry : EntitySchemaEntry)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Cedar.Validation.instanceOfSchema.instanceOfActionSchemaEntry
(env : TypeEnv)
(uid : Spec.EntityUID)
(data : Spec.EntityData)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Cedar.Validation.instanceOfSchema.instanceOfSchemaEntry
(env : TypeEnv)
(uid : Spec.EntityUID)
(data : Spec.EntityData)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Cedar.Validation.instanceOfSchema.actionExists
(entities : Spec.Entities)
(uid : Spec.EntityUID)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Cedar.Validation.requestMatchesEnvironment env request = Cedar.Validation.instanceOfRequestType request env
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Cedar.Validation.entitiesMatchEnvironment env entities = Cedar.Validation.instanceOfSchema entities env
Instances For
Equations
- Cedar.Validation.actionSchemaEntryToEntityData ase = { attrs := Cedar.Data.Map.empty, ancestors := ase.ancestors, tags := Cedar.Data.Map.empty }
Instances For
Equations
- Cedar.Validation.validateEntities schema entities = schema.environments.forM fun (x : Cedar.Validation.TypeEnv) => Cedar.Validation.entitiesMatchEnvironment x entities