Asanexampleofatrickytransformation,consideronethatremovesallusesof%``%#"#[let x = e1 in e2]#"#%''%bysubstituting[e1]for[x]in[e2].Wewillimplementthetranslationbypairingthe%``%#"#compile-time#"#%''%typingenvironmentwitha%``%#"#run-time#"#%''%valueenvironmentor_substitution_,mappingeachvariabletoavaluetobesubstitutedforit.Suchasubstitutetermmaybeplacedwithinaprograminapositionwithalargertypingenvironmentthanappliedatthepointwherethesubstitutetermwaschosen.Tosupportsuchcontexttransplantation,weneed_lifting_,astandarddeBruijnindicesoperation.Withdependenttyping,liftingcorrespondstoweakeningfortypingjudgments.
Asanexampleofatrickytransformation,consideronethatremovesallusesof%``%#"#[let x = e1 in e2]#"#%''%bysubstituting[e1]for[x]in[e2].Wewillimplementthetranslationbypairingthe%``%#"#compile-time#"#%''%typingenvironmentwitha%``%#"#run-time#"#%''%valueenvironmentor_substitution_,mappingeachvariabletoavaluetobesubstitutedforit.Suchasubstitutetermmaybeplacedwithinaprograminapositionwithalargertypingenvironmentthanappliedatthepointwherethesubstitutetermwaschosen.Tosupportsuchcontexttransplantation,weneed_lifting_,astandarddeBruijnindicesoperation.Withdependenttyping,liftingcorrespondstoweakeningfortypingjudgments.