Stream: Archive Mirror: Isabelle Users Mailing List

Topic: [isabelle] is it possible to find the function from lemma...


view this post on Zulip Email Gateway (Aug 19 2022 at 16:09):

From: M A <tesleft@hotmail.com>
Hi

is it possible to find the function from lemmas and which command can do?
would like to try which lemma can result in fold function

primrec rev

lemma app_Nil2 [simp]: "xs @ [] = xs"
apply(induct_tac xs)
apply(auto)
done
lemma app_assoc [simp]: "(xs @ ys) @ zs = xs @ (ys @ zs)"
apply(induct_tac xs)
apply(auto)
done
lemma rev_app [simp]: "rev(xs @ ys) = (rev ys) @ (rev xs)"
apply(induct_tac xs)
apply(auto)
done
theorem rev_rev [simp]: "rev (rev xs) = xs"
apply(induct_tac xs)
apply(auto)
done

Regards,

Martin

view this post on Zulip Email Gateway (Aug 19 2022 at 16:10):

From: M A <tesleft@hotmail.com>
Hi

I find that need to observe subgoals and then with little guess to write function body.

have a little hope to understand the key to create new function from a wild design of lemma.

Regards,

Martin


Last updated: Nov 21 2024 at 12:39 UTC