TheoremapplySet_length_le_two
APPLY has at most two members: only function equality has two.
Statement
theorem applySet_length_le_two (b : BasVal) (vs : List Val) : (applySet b vs).length ≤ 2Proof
by
unfold applySet; split
· exact Nat.le_trans (applySetEff_length b vs) (by omega)
· split
· unfold applySetNew; split <;> (repeat' split) <;> simp
· unfold applySetCore
split <;> (try simp only [boolSetList]) <;> (repeat' split) <;> simpProved with tactics, which Lean expands into a proof term that its kernel checks.
Theorems it uses
Used by
In StandardElmMech/Apply.lean: Eq and cmp as functions; IEEE 754-2019 minimum and maximum (fMinimum, fMaximum) and clamp at floats built on them (fClamp); APPLY as the relation Apply (one constructor per line of the book's displays) and as the executable applySet, with applySet_sound and applySet_complete; logEntry, the log entry of an application of Debug.log.
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.