Elm Exactly

Theoremreach_trans

StandardElmMech/Src/GroupingProof.lean:22, Mutual reachability · tactic proof

Statement

theorem reach_trans {a b c : Nat} (h1 : Reach n r a b) (h2 : Reach n r b c) : Reach n r a c

Proof

by
  rcases h1 with rfl | h1
  · exact h2
  · rcases h2 with rfl | h2
    · exact .inr h1
    · exact .inr (.trans h1 h2)

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

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.