# HG changeset patch # User haftmann # Date 1330283414 -3600 # Node ID 72d81e78910634c355963df9fcf5b7c556665a46 # Parent 07f9732804ad26d87b98b2b2b58788ab6291e4d2 tuned syntax declarations; tuned structure diff -r 07f9732804ad -r 72d81e789106 src/HOL/Complete_Lattices.thy --- a/src/HOL/Complete_Lattices.thy Sun Feb 26 20:08:12 2012 +0100 +++ b/src/HOL/Complete_Lattices.thy Sun Feb 26 20:10:14 2012 +0100 @@ -8,11 +8,7 @@ notation less_eq (infix "\" 50) and - less (infix "\" 50) and - inf (infixl "\" 70) and - sup (infixl "\" 65) and - top ("\") and - bot ("\") + less (infix "\" 50) subsection {* Syntactic infimum and supremum operations *} @@ -23,6 +19,7 @@ class Sup = fixes Sup :: "'a set \ 'a" ("\_" [900] 900) + subsection {* Abstract complete lattices *} class complete_lattice = bounded_lattice + Inf + Sup + @@ -1214,14 +1211,8 @@ text {* Finally *} no_notation - less_eq (infix "\" 50) and - less (infix "\" 50) and - bot ("\") and - top ("\") and - inf (infixl "\" 70) and - sup (infixl "\" 65) and - Inf ("\_" [900] 900) and - Sup ("\_" [900] 900) + less_eq (infix "\" 50) and + less (infix "\" 50) no_syntax (xsymbols) "_INF1" :: "pttrns \ 'b \ 'b" ("(3\_./ _)" [0, 10] 10) diff -r 07f9732804ad -r 72d81e789106 src/HOL/Lattices.thy --- a/src/HOL/Lattices.thy Sun Feb 26 20:08:12 2012 +0100 +++ b/src/HOL/Lattices.thy Sun Feb 26 20:10:14 2012 +0100 @@ -43,13 +43,7 @@ end -subsection {* Concrete lattices *} - -notation - less_eq (infix "\" 50) and - less (infix "\" 50) and - bot ("\") and - top ("\") +subsection {* Syntactic infimum and supremum operations *} class inf = fixes inf :: "'a \ 'a \ 'a" (infixl "\" 70) @@ -57,6 +51,13 @@ class sup = fixes sup :: "'a \ 'a \ 'a" (infixl "\" 65) + +subsection {* Concrete lattices *} + +notation + less_eq (infix "\" 50) and + less (infix "\" 50) + class semilattice_inf = order + inf + assumes inf_le1 [simp]: "x \ y \ x" and inf_le2 [simp]: "x \ y \ y" @@ -759,12 +760,8 @@ no_notation - less_eq (infix "\" 50) and - less (infix "\" 50) and - inf (infixl "\" 70) and - sup (infixl "\" 65) and - top ("\") and - bot ("\") + less_eq (infix "\" 50) and + less (infix "\" 50) end diff -r 07f9732804ad -r 72d81e789106 src/HOL/Orderings.thy --- a/src/HOL/Orderings.thy Sun Feb 26 20:08:12 2012 +0100 +++ b/src/HOL/Orderings.thy Sun Feb 26 20:10:14 2012 +0100 @@ -1426,8 +1426,4 @@ lemmas linorder_antisym_conv2 = linorder_class.antisym_conv2 lemmas linorder_antisym_conv3 = linorder_class.antisym_conv3 -no_notation - top ("\") and - bot ("\") - end diff -r 07f9732804ad -r 72d81e789106 src/HOL/Plain.thy --- a/src/HOL/Plain.thy Sun Feb 26 20:08:12 2012 +0100 +++ b/src/HOL/Plain.thy Sun Feb 26 20:10:14 2012 +0100 @@ -9,4 +9,18 @@ include @{text Hilbert_Choice}. *} +no_notation + bot ("\") and + top ("\") and + inf (infixl "\" 70) and + sup (infixl "\" 65) and + Inf ("\_" [900] 900) and + Sup ("\_" [900] 900) + +no_syntax (xsymbols) + "_INF1" :: "pttrns \ 'b \ 'b" ("(3\_./ _)" [0, 10] 10) + "_INF" :: "pttrn \ 'a set \ 'b \ 'b" ("(3\_\_./ _)" [0, 0, 10] 10) + "_SUP1" :: "pttrns \ 'b \ 'b" ("(3\_./ _)" [0, 10] 10) + "_SUP" :: "pttrn \ 'a set \ 'b \ 'b" ("(3\_\_./ _)" [0, 0, 10] 10) + end diff -r 07f9732804ad -r 72d81e789106 src/HOL/Relation.thy --- a/src/HOL/Relation.thy Sun Feb 26 20:08:12 2012 +0100 +++ b/src/HOL/Relation.thy Sun Feb 26 20:10:14 2012 +0100 @@ -939,19 +939,5 @@ obtains "r x z" using assms by (auto dest: transD simp add: transp_def) -no_notation - bot ("\") and - top ("\") and - inf (infixl "\" 70) and - sup (infixl "\" 65) and - Inf ("\_" [900] 900) and - Sup ("\_" [900] 900) - -no_syntax (xsymbols) - "_INF1" :: "pttrns \ 'b \ 'b" ("(3\_./ _)" [0, 10] 10) - "_INF" :: "pttrn \ 'a set \ 'b \ 'b" ("(3\_\_./ _)" [0, 0, 10] 10) - "_SUP1" :: "pttrns \ 'b \ 'b" ("(3\_./ _)" [0, 10] 10) - "_SUP" :: "pttrn \ 'a set \ 'b \ 'b" ("(3\_\_./ _)" [0, 0, 10] 10) - end