TheoremoutLeaf_eq
Statement
theorem outLeaf_eq {c : Val} {p : String} {j : BVal} (h : outLeafIs c p j = true) :
leafCore c = some (.out p, .bv j)Proof
by
unfold outLeafIs at h
split at h
· rename_i p' j' he
simp only [Bool.and_eq_true, beq_iff_eq] at h
obtain ⟨rfl, rfl⟩ := h
exact he
· cases hProved with tactics, which Lean expands into a proof term that its kernel checks.
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.