# HG changeset patch # User Christian Urban # Date 1238514613 -3600 # Node ID 75154f4d4e2f0526cd56792dba2574e7c6ae03d3 # Parent fcedd5bd6a35e60b02280ddf8cba5e3faad51faf used antiquotations diff -r fcedd5bd6a35 -r 75154f4d4e2f ProgTutorial/Package/Ind_Code.thy --- a/ProgTutorial/Package/Ind_Code.thy Tue Mar 31 15:53:12 2009 +0100 +++ b/ProgTutorial/Package/Ind_Code.thy Tue Mar 31 16:50:13 2009 +0100 @@ -1065,7 +1065,7 @@ OuterKeyword.thy_decl specification*} -section {* Extensions *} +section {* Extensions (TBD) *} text {* Things to include at the end: diff -r fcedd5bd6a35 -r 75154f4d4e2f ProgTutorial/Package/Ind_Intro.thy --- a/ProgTutorial/Package/Ind_Intro.thy Tue Mar 31 15:53:12 2009 +0100 +++ b/ProgTutorial/Package/Ind_Intro.thy Tue Mar 31 16:50:13 2009 +0100 @@ -2,7 +2,7 @@ imports Main begin -chapter {* How to Write a Definitional Package\label{chp:package} (TBD) *} +chapter {* How to Write a Definitional Package\label{chp:package} *} text {* \begin{flushright} diff -r fcedd5bd6a35 -r 75154f4d4e2f ProgTutorial/Tactical.thy --- a/ProgTutorial/Tactical.thy Tue Mar 31 15:53:12 2009 +0100 +++ b/ProgTutorial/Tactical.thy Tue Mar 31 16:50:13 2009 +0100 @@ -2107,15 +2107,12 @@ } oops -ML {* fun prop ctxt s = - Thm.cterm_of (ProofContext.theory_of ctxt) (Syntax.read_prop ctxt s) *} - ML {* val ctxt0 = @{context}; val ctxt = ctxt0; val (_, ctxt) = Variable.add_fixes ["A", "B", "C"] ctxt; - val ([r], ctxt) = Assumption.add_assumes [prop ctxt "A & B \ C"] ctxt; - val (this, ctxt) = Assumption.add_assumes [prop ctxt "A", prop ctxt "B"] ctxt; + val ([r], ctxt) = Assumption.add_assumes [@{cprop "A & B \ C"}] ctxt + val (this, ctxt) = Assumption.add_assumes [@{cprop "A"}, @{cprop "B"}] ctxt; val this = [@{thm conjI} OF this]; val this = r OF this; val this = Assumption.export false ctxt ctxt0 this diff -r fcedd5bd6a35 -r 75154f4d4e2f progtutorial.pdf Binary file progtutorial.pdf has changed