Theoremnot_legal_of_scopeFailB
Statement
theorem not_legal_of_scopeFailB {B : SBasis} {sp : Src.SProgram} (h : scopeFailB B sp = true) :
¬ LegalProgram B spProof
by
unfold scopeFailB at h
split at h
· rename_i m rest hms
simp only [Bool.or_eq_true] at h
rcases h with h | h
· exact not_legal_of_noDeriv hms (RScope.noDeriv_scope1 h)
· split at h
· rename_i m2 rest2
exact not_legal_of_noDeriv2 hms (RScope.noDeriv_scope2 h)
· cases h
· cases hProved with tactics, which Lean expands into a proof term that its kernel checks.
Theorems it uses
In StandardElmMech/Stat/RefuseScope.lean: Refusals by scope, constructor arity and imports, for one module and for a module after a helper (scopeFailB).
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.