TheoremapplySetEff_sound
Statement
theorem applySetEff_sound {b : BasVal} {vs : List Val} {v : Val} :
v ∈ applySetEff b vs → Apply b vs vProof
by
intro h
unfold applySetEff at h
split at h
all_goals (repeat' (split at h))
all_goals (try simp only [List.mem_cons, List.not_mem_nil, or_false, false_or] at h)
all_goals (try subst h)
all_goals (try subst_vars)
all_goals first
| (constructor <;> first | assumption | (simp_all; done))
| (simp at h)
| (rename_i hc; simp only [Bool.and_eq_true, beq_iff_eq] at hc; obtain ⟨rfl, ht⟩ := hc
exact .taskCommand_ _ ht)
| (rename_i hc; simp only [beq_iff_eq] at hc; subst hc; exact .arrayToList_ _)
| skipProved with tactics, which Lean expands into a proof term that its kernel checks.
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.