# HG changeset patch # User haftmann # Date 1256550701 -3600 # Node ID 247f6c6969d97961f343db62505d7abad5ea78e2 # Parent de8cc01e8d9e46b7fed2162e2514d91018a2dfa4 tuned code setup for primitive boolean connectors diff -r de8cc01e8d9e -r 247f6c6969d9 src/HOL/HOL.thy --- a/src/HOL/HOL.thy Mon Oct 26 09:41:26 2009 +0100 +++ b/src/HOL/HOL.thy Mon Oct 26 10:51:41 2009 +0100 @@ -1827,24 +1827,28 @@ text {* Code equations *} lemma [code]: - shows "(True \ PROP P) \ PROP P" - and "(False \ Q) \ Trueprop True" - and "(PROP P \ True) \ Trueprop True" - and "(Q \ False) \ Trueprop (\ Q)" by (auto intro!: equal_intr_rule) + shows "(False \ P) \ Trueprop True" + and "(True \ PROP Q) \ PROP Q" + and "(P \ False) \ Trueprop (\ P)" + and "(PROP Q \ True) \ Trueprop True" by (auto intro!: equal_intr_rule) lemma [code]: - shows "False \ x \ False" - and "True \ x \ x" - and "x \ False \ False" - and "x \ True \ x" by simp_all + shows "False \ P \ False" + and "True \ P \ P" + and "P \ False \ False" + and "P \ True \ P" by simp_all lemma [code]: - shows "False \ x \ x" - and "True \ x \ True" - and "x \ False \ x" - and "x \ True \ True" by simp_all + shows "False \ P \ P" + and "True \ P \ True" + and "P \ False \ P" + and "P \ True \ True" by simp_all -declare imp_conv_disj [code, code_unfold_post] +lemma [code]: + shows "(False \ P) \ True" + and "(True \ P) \ P" + and "(P \ False) \ \ P" + and "(P \ True) \ True" by simp_all instantiation itself :: (type) eq begin