Theoremnot_legal_of_modsyn
A text without main (a module tested alone) that breaks a restriction other than res:program-main, whatever the order of its modules.
Statement
theorem not_legal_of_modsyn {B : SBasis} {sp : SProgram} (h : ¬ Src.ModulesSynOKSet sp) :
¬ LegalProgram B spProof
by
rintro ⟨⟨q, hp, hl, hq⟩, _⟩
exact h ⟨q, hp, hl, modulesSynOK_of_synOK hq⟩Proved with tactics, which Lean expands into a proof term that its kernel checks.
Theorems it uses
In StandardElmMech/Stat/RefuseAll.lean: The refusal deciders certify tries, and the refusals of step 8's syntactic restrictions for one-module programs and texts without main.
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.