TheoremimportCtx_UT
Statement
theorem importCtx_UT {B : SBasis} {imps : List BImport} {C0 : Ctx} (h : importCtx B imps = some C0) :
C0.U = [] ∧ C0.T = B.TProof
by
unfold importCtx at h
cases he : elabImports B π0 (defaultImports ++ imps) with
| none => rw [he] at h; cases h
| some π =>
rw [he] at h
simp only [Option.map_some, Option.some.injEq] at h
subst h
exact ⟨rfl, rfl⟩Proved with tactics, which Lean expands into a proof term that its kernel checks.
Used by
In StandardElmMech/Stat/RefuseTypes.lean: Refusals by type expressions (aliases, constructor arguments, annotations, ports) and by the type of main (typesFailB, mainFailB), for every choice of generated names and variable sorts.
A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.