Documentation

Cedar.Thm.Validation.Typechecker.And

This file proves that typechecking of .and expressions is sound.

theorem Cedar.Thm.type_of_and_is_sound {x₁ x₂ : Spec.Expr} {c₁ c₂ : Validation.Capabilities} {env : Validation.TypeEnv} {tx : Validation.TypedExpr} {request : Spec.Request} {entities : Spec.Entities} (h₁ : CapabilitiesInvariant c₁ request entities) (h₂ : InstanceOfWellFormedEnvironment request entities env) (h₃ : Validation.typeOf (x₁.and x₂) c₁ env = Except.ok (tx, c₂)) (ih₁ : TypeOfIsSound x₁) (ih₂ : TypeOfIsSound x₂) :
GuardedCapabilitiesInvariant (x₁.and x₂) c₂ request entities (v : Spec.Value), EvaluatesTo (x₁.and x₂) request entities v InstanceOfType env v tx.typeOf