TheoremviewTy_sound
Statement
theorem viewTy_sound {σ : Scheme} {τ : Ty} (h : viewTy σ = some τ) : ∃ τ0, dflt σ = .con [τ0] tNode ∧ τ = .con [τ0] tNodeProof
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 hProved 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.