Documentation

Cedar.Thm.WellTyped.Residual

This file contains well-typedness theorems of Residual

theorem Cedar.Thm.residual_well_typed_is_sound {r : Spec.Residual} {v : Spec.Value} {env : Validation.TypeEnv} {request : Spec.Request} {entities : Spec.Entities} :
InstanceOfWellFormedEnvironment request entities envResidual.WellTyped env rr.evaluate request entities = Except.ok vInstanceOfType env v r.typeOf

Successful evaluation of a well-typed residual should produce a value of corresponding type.