Elm Exactly

TheoremnoMatch_append

StandardElmMech/Prog/Invariant.lean:49, The statement · tactic proof

Statement

theorem noMatch_append {pat : String} {l1 l2 : Log} (h1 : NoMatch pat l1) (h2 : NoMatch pat l2) :
    NoMatch pat (l1 ++ l2)

Proof

by
  intro e he
  rcases List.mem_append.mp he with h | h
  · exact h1 e h
  · exact h2 e h

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

Used by

In StandardElmMech/Prog/Invariant.lean: CHECK-NOT as a statement about every execution (WorkerTest.HoldsNot), per-test invariants (TestInv, TestInv.sound, holdsNot_any), and the determinism and inversion lemmas they use.

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.