Documentation

Cedar.Thm.TPE.WellTyped.Call

theorem Cedar.Thm.ext_well_typed_after_map {xfn : Spec.ExtFun} {args : List Spec.Residual} {ty : Validation.CedarType} {env : Validation.TypeEnv} {f : Spec.ResidualSpec.Residual} :
Spec.ExtResidualWellTyped xfn args ty(∀ (arg : Spec.Residual), arg argsResidual.WellTyped env argResidual.WellTyped env (f arg))(∀ (arg : Spec.Residual), arg args(f arg).typeOf = arg.typeOf)(∀ (x : Spec.Residual), x.asValue.isSome = truef x = x)Spec.ExtResidualWellTyped xfn (List.map f args) ty
theorem Cedar.Thm.partial_eval_well_typed_call {env : Validation.TypeEnv} {xfn : Spec.ExtFun} {args : List Spec.Residual} {ty : Validation.CedarType} {req : Spec.Request} {preq : TPE.PartialRequest} {es : Spec.Entities} {pes : TPE.PartialEntities} :
(∀ (r : Spec.Residual), r argsResidual.WellTyped env (TPE.evaluate r preq pes))PEWellTyped env (Spec.Residual.call xfn args ty) (TPE.evaluate (Spec.Residual.call xfn args ty) preq pes) req preq es pes