Theoremnot_synOKSet_of_one
A program of one module has one order: if it breaks the restrictions, it is refused (step 8 refuses such a program in its canonical order only).
Statement
theorem not_synOKSet_of_one {p : SProgram} (h1 : p.modules.length = 1) (h : ¬ Src.SynOK p) :
¬ Src.SynOKSet pProof
by
rintro ⟨q, hperm, _, hq⟩
obtain ⟨m, hm⟩ : ∃ m, p.modules = [m] := by
match hp : p.modules, h1 with
| [m], _ => exact ⟨m, rfl⟩
rw [hm] at hperm
have hqm : q.modules = [m] := List.perm_singleton.mp hperm
exact h ((synOK_of_modules (hqm.trans hm.symm)).mp hq)Proved with tactics, which Lean expands into a proof term that its kernel checks.
Theorems it uses
Used by
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.