theory Demo2 = Main: section{* Propositional logic *} subsection{* Basic rules *} text{* \ *} thm conjI conjE text{* \ *} thm disjI1 disjI2 disjE text{* \ *} thm impI impE subsection{* Examples *} text{* a simple backward step: *} lemma "A \ B" apply(rule conjI) oops text{* a simple backward proof: *} lemma "B \ A \ A \ B" apply(rule impI) apply(erule conjE) apply(rule conjI) apply(assumption) apply(assumption) done end