lemma fun_upds_apply: "(m(xs[↦]ys)) x = (let xs' = take (size ys) xs in if x ∈ set xs' then Some(ys ! last_index xs' x) else m x)" proof(induct xs arbitrary: m ys) case Nil thenshow ?caseby(simp add: Let_def) next case Cons show ?case proof(cases ys) case Nil thenshow ?thesis by(simp add:Let_def) next case Cons': Cons thenshow ?thesis using Cons by(simp add: Let_def last_index_Cons) qed qed
lemma map_upds_apply_eq_Some: "((m(xs[↦]ys)) x = Some y) = (let xs' = take (size ys) xs in if x ∈ set xs' then ys ! last_index xs' x = y else m x = Some y)" by(simp add:fun_upds_apply Let_def)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.