This file defines theorems related to the inputs of TPE.
- some {α : Type u_1} (p : α → Prop) (x : α) (h : p x) : PartialIsValid p (Option.some x)
- none {α : Type u_1} {p : α → Prop} : PartialIsValid p Option.none
Instances For
theorem
Cedar.Thm.partial_is_valid_rfl
{α : Type u_1}
(f : α → Bool)
(p : α → Prop)
(o : Option α)
:
(∀ (x : α), f x = true → p x) → TPE.partialIsValid o f = true → PartialIsValid p o
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Cedar.Thm.RequestAndEntitiesRefine
(req : Spec.Request)
(es : Spec.Entities)
(preq : TPE.PartialRequest)
(pes : TPE.PartialEntities)
:
Concrete request req and entities es refine their partial counterparts
peq and pes.
Equations
- Cedar.Thm.RequestAndEntitiesRefine req es preq pes = (Cedar.Thm.RequestRefines req preq ∧ Cedar.Thm.EntitiesRefine es pes)
Instances For
theorem
Cedar.Thm.consistent_checks_ensure_refinement
{schema : Validation.Schema}
{req : Spec.Request}
{es : Spec.Entities}
{preq : TPE.PartialRequest}
{pes : TPE.PartialEntities}
:
TPE.isValidAndConsistent schema req es preq pes = Except.ok () → RequestAndEntitiesRefine req es preq pes
Requests and entities that pass isValidAndConsistent satisfy RequestAndEntitiesRefine.