added exercise
authornipkow
Tue, 16 Jul 2013 10:18:25 +0200
changeset 52661 a3b04f0ab6a4
parent 52660 7f7311d04727
child 52662 c7cae5ce217d
added exercise
src/Doc/ProgProve/Isar.thy
--- a/src/Doc/ProgProve/Isar.thy	Mon Jul 15 15:50:39 2013 +0200
+++ b/src/Doc/ProgProve/Isar.thy	Tue Jul 16 10:18:25 2013 +0200
@@ -590,6 +590,17 @@
 the fact just proved, in this case the preceding block. In general,
 \isacom{note} introduces a new name for one or more facts.
 
+\exercise
+Give a readable, structured proof of the following lemma:
+*}
+lemma assumes T: "\<forall> x y. T x y \<or> T y x"
+  and A: "\<forall> x y. A x y \<and> A y x \<longrightarrow> x = y"
+  and TA: "\<forall> x y. T x y \<longrightarrow> A x y" and "A x y"
+shows "T x y"
+(*<*)oops(*>*)
+text{*
+\endexercise
+
 \section{Case Analysis and Induction}
 
 \subsection{Datatype Case Analysis}