Elm Exactly

TheoremelabTyRowOpt_sim

StandardElmMech/Stat/RefuseTypes.lean:423, Simulation of the elaboration of type expressions · term proof

Statement

theorem elabTyRowOpt_sim : ∀ (r : Option BTyRow) (ρ : Row), (∀ lc ∈ bTyRowOptCons r, LookSim f C A lc) →
    elabTyRowOpt C r = some ρ → elabTyRowOpt A r = some (mapRow f ρ)
  | none, ρ, _, h => by unfold elabTyRowOpt at h ⊢; cases h; rfl
  | some r, ρ, hl, h => by
    unfold elabTyRowOpt at h ⊢
    exact elabTyRow_sim r ρ (by simpa [bTyRowOptCons] using hl) h

Proof

Proved by a term, which Lean's kernel checks directly.

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.