Elm Exactly

TheoremviewTy_sound

StandardElmMech/Stat/Legal.lean:51, The conditions of Chapter 9, decided · tactic proof

Statement

theorem viewTy_sound {σ : Scheme} {τ : Ty} (h : viewTy σ = some τ) : ∃ τ0, dflt σ = .con [τ0] tNode ∧ τ = .con [τ0] tNode

Proof

by
  unfold viewTy at h
  split at h
  · rename_i τ0 t hd
    split at h
    · rename_i ht; subst ht; cases h; exact ⟨τ0, hd, rfl⟩
    · cases h
  · cases h

Proved with tactics, which Lean expands into a proof term that its kernel checks.

Used by

In StandardElmMech/Stat/Legal.lean: The master theorems: a program whose inferred derivation checks, meets the further restrictions and gives main a Chapter 9 type is legal, under D11 (legal_of_infer1, legal_of_infer).

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.