theory Demo1 = Main: subsection {* @{text "?thesis"}, @{text this}, \isakeyword{then} *} lemma "A \ B \ B \ A" proof assume "A \ B" from this show "B \ A" proof assume "A" "B" show ?thesis .. qed qed subsection {* \isakeyword{with} *} lemma "A \ B \ B \ A" proof assume ab: "A \ B" from ab have a: "A" .. from ab have b: "B" .. from b a show "B \ A" .. qed subsection{*Predicate calculus*} text{* \isakeyword{fix} *} lemma "\x. P x \ \x. P(f x)" proof fix a assume "\x. P x" then show "P(f a)" .. qed lemma "\x. P(f x) \ \y. P y" proof - assume "\x. P(f x)" then show ?thesis proof fix x assume "P(f x)" show ?thesis .. qed qed text{* \isakeyword{obtain} *} lemma "\x. P(f x) \ \y. P y" proof - assume "\x. P(f x)" then obtain x where "P(f x)" .. then show "\y. P y" .. qed end