Documentation

LeanSce.SCE.Confinement

theorem sandboxed_functor_confinement {A B : SCE.Typ} {body varg v₁ v₂ ρ₁ ρ₂ : SCE.Exp} {ec_body ec_varg : Core.Exp} (_hρ₁ : SCE.Value ρ₁) (_hρ₂ : SCE.Value ρ₂) (hvarg : SCE.Value varg) (hbody_elab : elabExp (SCE.Typ.top.and A) body B ec_body) (hvarg_elab : elabExp SCE.Typ.top varg A ec_varg) (h₁ : S_Sem.BStep ρ₁ ((SCE.Exp.mfunctor SCE.Sandbox.sandboxed A body).mapp varg) v₁) (h₂ : S_Sem.BStep ρ₂ ((SCE.Exp.mfunctor SCE.Sandbox.sandboxed A body).mapp varg) v₂) :
v₁ = v₂

Sandboxed Functor Confinement.

A sandboxed functor applied to a value argument produces a result that is independent of the ambient environment at the call site.