{"dictionary":[],"names":{"Ctx":"Contexts as snoc lists","Ctx.Empty":"The empty typing context","Ctx.Snoc":"Append a type to the typing context","Index":"Typed de Bruijn indices","Index.Pop":"An index one binder deeper in the context","Index.Top":"Index zero for the newest binder","ProxyTop":"Proxy for the most recently bound variable","ProxyTop.PTop":"The proxy for the newest binder","ProxyVar":"A binder proxy with an index reifier","ProxyVar.PVar":"A proxy packaged with its type-class instance","ReifyIndex":"Reifying a binder proxy as an index in its use context","ReifyIndex.reify":"A de Bruijn index from a binder proxy","STLC":"Simply typed terms with de Bruijn indices","STLC.Apply":"First-order application to a term of the domain type","STLC.Lambda":"First-order lambda with a body in the extended context","STLC.Star":"First-order unit term","STLC.Var":"First-order variable with a de Bruijn index","STLCCtx":"Simply typed terms with contextual variables","STLCCtx.CApp":"Contextual application to a term of the domain type","STLCCtx.CLam":"Contextual lambda with a body parameterised by a binder proxy","STLCCtx.CStar":"Contextual unit term","STLCCtx.CVar":"Contextual variable term with an index reifier","Ty":"Unit and function types","Ty.Fun":"Function type from domain to codomain","Ty.Unit":"The unit type","closedWorld":"Axiom restricting index reifiers to reflexivity and context extension","const":"The contextual function that returns its first argument","const'":"The first projection at Unit in the empty context","const5":"The contextual function that returns the first of five arguments","const5'":"The contextual first projection on five Unit arguments","contextualise":"First-order terms to contextual terms","flipConst":"The contextual function that returns its second argument","flipConst'":"The second projection at Unit in the empty context","fromIndex":"A packaged variable from a de Bruijn index","fromVar":"A contextual term from a packaged variable","idSTLC":"The contextual identity function","idSTLC'":"The contextual identity at Unit in the empty context","indexIsoL":"Reifying the packaged variable recovers its index","indexIsoR":"Reifying and repackaging gives the original variable under the reifier axiom","instReifyIndexRefl":"The newest binder has index zero in its binding context","instReifyIndexSnoc":"Appending a binder adds one to the de Bruijn index","isoL":"Unembedding after contextualising recovers the first-order term","isoR":"Contextualising after unembedding recovers the term under the reifier axiom","showSTLCCtx":"Printing contextual terms with their reified indices","toCVar":"A contextual variable term from a de Bruijn index","unembed":"Contextual terms to first-order terms","varTop":"The most recent binder packaged as a contextual variable","weakenPVar":"A packaged variable in a context extended by one binder"},"records":{"contextual-embeddings.claim-isomorphism":{"lean":[{"end_line":205,"fidelity":"unassessed","line":199,"lines":[199,200],"module":"CE","name":"isoL","note":"","plain":"Unembedding after contextualising recovers the first-order term","proof_lines":[201,205],"relation":"states"},{"end_line":221,"fidelity":"unassessed","line":210,"lines":[210,211],"module":"CE","name":"isoR","note":"","plain":"Contextualising after unembedding recovers the term under the reifier axiom","proof_lines":[212,221],"relation":"states"}],"short":"unembed and contextualise form an isomorphism","statements":[{"anchor":"sec-3","at":"b32141-32220","end_byte":32220,"heading_id":"isomorphism-to-first-order-embedding","lean":[{"end_line":205,"fidelity":"unassessed","line":199,"lines":[199,200],"module":"CE","name":"isoL","note":"","plain":"Unembedding after contextualising recovers the first-order term","proof_lines":[201,205],"relation":"states"},{"end_line":221,"fidelity":"unassessed","line":210,"lines":[210,211],"module":"CE","name":"isoR","note":"","plain":"Contextualising after unembedding recovers the term under the reifier axiom","proof_lines":[212,221],"relation":"states"}],"lean_source":"record","markdown":"We have proven that `unembed` and `contextualise` form an isomorphism in Lean 4","origin":"ai","paper":"short","role":"statement","section":"3.3 Isomorphism to First-Order Embedding","start_byte":32141}]}},"steps":{}}