Elm Exactly

TheoremconArgs_eq_none

StandardElmMech/Complete.lean:117, The index only grows · tactic proof

Statement

theorem conArgs_eq_none {v : Val} {c : Con} {n : Nat} :
    conArgs v c n = none ↔ ∀ vs, v = .con c vs → vs.length ≠ n

Proof

by
  constructor
  · intro h vs hv hl; subst hv; simp [conArgs, hl] at h
  · intro h; cases hc : conArgs v c n with
    | none => rfl
    | some vs => obtain ⟨h1, h2⟩ := conArgs_eq_some.mp hc; exact absurd h2 (h vs h1)

Proved with tactics, which Lean expands into a proof term that its kernel checks.

Theorems it uses

Used by

In StandardElmMech/Complete.lean: The index of the next choice only grows (evExp_next and the others); Agrees; lemmas for the side conditions.

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.