added print-mode Axiom to print theorems without premises with a rule on top.
authorschirmer
Fri, 16 Feb 2007 11:00:47 +0100
changeset 22328 cc403d881873
parent 22327 8a36a3ca8558
child 22329 e4325ce4e0c4
added print-mode Axiom to print theorems without premises with a rule on top.
src/HOL/Library/LaTeXsugar.thy
--- a/src/HOL/Library/LaTeXsugar.thy	Fri Feb 16 09:04:23 2007 +0100
+++ b/src/HOL/Library/LaTeXsugar.thy	Fri Feb 16 11:00:47 2007 +0100
@@ -79,6 +79,10 @@
 
   "_asm" :: "prop \<Rightarrow> asms" ("\<^raw:\mbox{>_\<^raw:}>")
 
+syntax (Axiom output)
+  "Trueprop" :: "bool \<Rightarrow> prop"
+  ("\<^raw:\mbox{}\inferrule{\mbox{}}{\mbox{>_\<^raw:}}>")
+
 syntax (IfThen output)
   "==>" :: "prop \<Rightarrow> prop \<Rightarrow> prop"
   ("\<^raw:{\rmfamily\upshape\normalsize{}>If\<^raw:\,}> _/ \<^raw:{\rmfamily\upshape\normalsize \,>then\<^raw:\,}>/ _.")