Elm Exactly

TheoremtwoCycle_perm

StandardElmMech/Src/SynSet.lean:84, Refusals whatever the order · tactic proof

Statement

theorem twoCycle_perm {p q : SProgram} (hp : q.modules.Perm p.modules) (h : TwoCycle p) : TwoCycle q

Proof

by
  obtain ⟨a, ha, b, hb, rest⟩ := h
  exact ⟨a, hp.mem_iff.mpr ha, b, hp.mem_iff.mpr hb, rest⟩

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

Used by

In StandardElmMech/Src/SynSet.lean: The restrictions of the set of a program's modules (SynOKSet) and the refusals of every order.

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.