Theoremmem_cls
Statement
theorem mem_cls {a b : Nat} (ha : a < n) : b ∈ cls n r a ↔ b < n ∧ MR n r a bProof
by
unfold cls
rw [List.mem_filter, List.mem_range]
constructor
· rintro ⟨hb, h⟩
rw [Bool.and_eq_true, reachIn_iff ha, reachIn_iff hb] at h
exact ⟨hb, h⟩
· rintro ⟨hb, h⟩
refine ⟨hb, ?_⟩
rw [Bool.and_eq_true, reachIn_iff ha, reachIn_iff hb]
exact hProved with tactics, which Lean expands into a proof term that its kernel checks.
Theorems it uses
Used by
In StandardElmMech/Src/GroupingProof.lean: components_valid: the canonical grouping is one the book allows (ValidNumbering).
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.