Elm Exactly

Theoreminv_nonempty

StandardElmMech/Src/GroupingProof.lean:245, Placing · tactic proof

Statement

theorem inv_nonempty {all : List (List Nat)} (h : Inv n r all) : ∀ c ∈ all, c ≠ []

Proof

by
  intro c hc
  obtain ⟨a, ha, rfl⟩ := h.1 c hc
  intro he
  have := self_mem_cls (r := r) ha
  rw [he] at this; simp at this

Proved 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.