Elm Exactly

Theoremwf_out_leaf

StandardElmMech/Eff/WF.lean:54 · tactic proof

An out leaf may carry any boundary value, a byte sequence included (A92).

Statement

theorem wf_out_leaf (p : String) (j : BVal) : (Val.leaf (.out p) (.bv j)).WF

Proof

by
  intro h
  cases h with
  | leaf _ _ hn _ => exact hn ⟨p, j, rfl, rfl⟩

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

About ruling A92 of the book, where the implementations disagreed or were silent and the definition decides.

In StandardElmMech/Eff/WF.lean: Well-formed values (Val.WF): no byte sequence outside an out leaf.

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.