TheoremforcedBad_sound
Statement
theorem forcedBad_sound : ∀ (C : Ctx) (e : AExp), checkExpS C e = true → forcedBad e.erase = true →
badHeadB e.ty = true
| C, .atexp a, h, hf => by
simp only [checkExpS] at h
simp only [AExp.erase, forcedBad] at hf
simp only [AExp.ty]
exact forcedBadAt_sound C a h hf
| _, .lam _ _, _, _ => by simp [AExp.ty, badHeadB]
| _, .app _ _, _, hf => by simp [AExp.erase, forcedBad] at hf
| _, .caseE _ _, _, hf => by simp [AExp.erase, forcedBad] at hfProof
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.