TheoremvbMainBad_var
Statement
theorem vbMainBad_var (A : Ctx) (x : Var) (oann : Option BTy) (e : BExp) (orest : Option BValBind) :
vbMainBad A (.var x oann e orest) =
((x == "main" && (orest.map vbNoMain).getD true && (oann.map (annHeadBad A)).getD (forcedBad e)) ||
(x != "main" && (orest.map (vbMainBad A)).getD false))Proof
by
cases oann <;> cases orest <;> simp [vbMainBad]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.