# HG changeset patch # User wenzelm # Date 1728396931 -7200 # Node ID dff7dfd8dce371b720d4f515b089a22920eabf0a # Parent bad7156a7814e20304c461bb2b7104794d2f7997 more robust declarations via "no syntax" bundles; diff -r bad7156a7814 -r dff7dfd8dce3 src/HOL/Bit_Operations.thy --- a/src/HOL/Bit_Operations.thy Tue Oct 08 16:14:36 2024 +0200 +++ b/src/HOL/Bit_Operations.thy Tue Oct 08 16:15:31 2024 +0200 @@ -3986,21 +3986,15 @@ \bit (push_bit m k) n \ m \ n \ bit k (n - m)\ for k :: int by (fact bit_push_bit_iff') -no_notation - not (\NOT\) - and "and" (infixr \AND\ 64) - and or (infixr \OR\ 59) - and xor (infixr \XOR\ 59) - bundle bit_operations_syntax begin - notation not (\NOT\) and "and" (infixr \AND\ 64) and or (infixr \OR\ 59) and xor (infixr \XOR\ 59) +end + +unbundle no bit_operations_syntax end - -end diff -r bad7156a7814 -r dff7dfd8dce3 src/HOL/Computational_Algebra/Formal_Laurent_Series.thy --- a/src/HOL/Computational_Algebra/Formal_Laurent_Series.thy Tue Oct 08 16:14:36 2024 +0200 +++ b/src/HOL/Computational_Algebra/Formal_Laurent_Series.thy Tue Oct 08 16:15:31 2024 +0200 @@ -4601,11 +4601,11 @@ subsection \Notation\ -no_notation fls_nth (infixl \$$\ 75) - bundle fps_syntax begin notation fls_nth (infixl \$$\ 75) end +unbundle no fps_syntax + end \ No newline at end of file diff -r bad7156a7814 -r dff7dfd8dce3 src/HOL/Computational_Algebra/Formal_Power_Series.thy --- a/src/HOL/Computational_Algebra/Formal_Power_Series.thy Tue Oct 08 16:14:36 2024 +0200 +++ b/src/HOL/Computational_Algebra/Formal_Power_Series.thy Tue Oct 08 16:15:31 2024 +0200 @@ -6191,11 +6191,11 @@ qed (* TODO: Figure out better notation for this thing *) -no_notation fps_nth (infixl \$\ 75) - bundle fps_syntax begin notation fps_nth (infixl \$\ 75) end +unbundle no fps_syntax + end diff -r bad7156a7814 -r dff7dfd8dce3 src/HOL/Nominal/Examples/Class1.thy --- a/src/HOL/Nominal/Examples/Class1.thy Tue Oct 08 16:14:36 2024 +0200 +++ b/src/HOL/Nominal/Examples/Class1.thy Tue Oct 08 16:15:31 2024 +0200 @@ -8,7 +8,7 @@ text \types\ -no_notation not (\NOT\) +unbundle no bit_operations_syntax nominal_datatype ty = PR "string" diff -r bad7156a7814 -r dff7dfd8dce3 src/HOL/Quickcheck_Examples/Quickcheck_Lattice_Examples.thy --- a/src/HOL/Quickcheck_Examples/Quickcheck_Lattice_Examples.thy Tue Oct 08 16:14:36 2024 +0200 +++ b/src/HOL/Quickcheck_Examples/Quickcheck_Lattice_Examples.thy Tue Oct 08 16:15:31 2024 +0200 @@ -12,13 +12,7 @@ text \We show how other default types help to find counterexamples to propositions if the standard default type \<^typ>\int\ is insufficient.\ -notation - less_eq (infix \\\ 50) and - less (infix \\\ 50) and - top (\\\) and - bot (\\\) and - inf (infixl \\\ 70) and - sup (infixl \\\ 65) +unbundle lattice_syntax declare [[quickcheck_narrowing_active = false, quickcheck_timeout = 3600]] @@ -131,13 +125,6 @@ quickcheck[expect = no_counterexample] by (simp add: eq_iff) - -no_notation - less_eq (infix \\\ 50) and - less (infix \\\ 50) and - inf (infixl \\\ 70) and - sup (infixl \\\ 65) and - top (\\\) and - bot (\\\) +unbundle no lattice_syntax end