TheoremconArgs_eq_some
Statement
theorem conArgs_eq_some {v : Val} {c : Con} {n : Nat} {vs : List Val} :
conArgs v c n = some vs ↔ v = .con c vs ∧ vs.length = nProof
by
unfold conArgs; split
· simp only [Val.con.injEq]
constructor
· intro h; split at h <;> simp_all
· rintro ⟨⟨rfl, rfl⟩, rfl⟩; simp
· simp_allProved with tactics, which Lean expands into a proof term that its kernel checks.
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.