# HG changeset patch # User wenzelm # Date 1584112370 -3600 # Node ID 4dd5dadfc87dbf37e6838c0567b948aa67c68495 # Parent b0b16088ccf2f1b5843056cc15fccf498755dc88 some uses of "' " as witness for this feature; diff -r b0b16088ccf2 -r 4dd5dadfc87d src/Doc/Classes/Setup.thy --- a/src/Doc/Classes/Setup.thy Fri Mar 13 16:04:27 2020 +0100 +++ b/src/Doc/Classes/Setup.thy Fri Mar 13 16:12:50 2020 +0100 @@ -9,9 +9,9 @@ syntax "_alpha" :: "type" ("\") - "_alpha_ofsort" :: "sort \ type" ("\()::_" [0] 1000) + "_alpha_ofsort" :: "sort \ type" ("\' ::_" [0] 1000) "_beta" :: "type" ("\") - "_beta_ofsort" :: "sort \ type" ("\()::_" [0] 1000) + "_beta_ofsort" :: "sort \ type" ("\' ::_" [0] 1000) parse_ast_translation \ let diff -r b0b16088ccf2 -r 4dd5dadfc87d src/HOL/Number_Theory/Cong.thy --- a/src/HOL/Number_Theory/Cong.thy Fri Mar 13 16:04:27 2020 +0100 +++ b/src/HOL/Number_Theory/Cong.thy Fri Mar 13 16:12:50 2020 +0100 @@ -37,10 +37,10 @@ context unique_euclidean_semiring begin -definition cong :: "'a \ 'a \ 'a \ bool" (\(1[_ = _] '(()mod _'))\) +definition cong :: "'a \ 'a \ 'a \ bool" (\(1[_ = _] '(' mod _'))\) where "cong b c a \ b mod a = c mod a" -abbreviation notcong :: "'a \ 'a \ 'a \ bool" (\(1[_ \ _] '(()mod _'))\) +abbreviation notcong :: "'a \ 'a \ 'a \ bool" (\(1[_ \ _] '(' mod _'))\) where "notcong b c a \ \ cong b c a" lemma cong_refl [simp]: diff -r b0b16088ccf2 -r 4dd5dadfc87d src/Pure/pure_thy.ML --- a/src/Pure/pure_thy.ML Fri Mar 13 16:04:27 2020 +0100 +++ b/src/Pure/pure_thy.ML Fri Mar 13 16:12:50 2020 +0100 @@ -117,7 +117,7 @@ ("_type_name", typ "longid \ type_name", Mixfix.mixfix "_"), ("_ofsort", typ "tid_position \ sort \ type", mixfix ("_::_", [1000, 0], 1000)), ("_ofsort", typ "tvar_position \ sort \ type", mixfix ("_::_", [1000, 0], 1000)), - ("_dummy_ofsort", typ "sort \ type", mixfix ("'_()::_", [0], 1000)), + ("_dummy_ofsort", typ "sort \ type", mixfix ("'_' ::_", [0], 1000)), ("", typ "class_name \ sort", Mixfix.mixfix "_"), ("_class_name", typ "id \ class_name", Mixfix.mixfix "_"), ("_class_name", typ "longid \ class_name", Mixfix.mixfix "_"), @@ -142,7 +142,7 @@ ("", typ "id_position \ idt", Mixfix.mixfix "_"), ("_idtdummy", typ "idt", Mixfix.mixfix "'_"), ("_idtyp", typ "id_position \ type \ idt", mixfix ("_::_", [], 0)), - ("_idtypdummy", typ "type \ idt", mixfix ("'_()::_", [], 0)), + ("_idtypdummy", typ "type \ idt", mixfix ("'_' ::_", [], 0)), ("", typ "idt \ idt", Mixfix.mixfix "'(_')"), ("", typ "idt \ idts", Mixfix.mixfix "_"), ("_idts", typ "idt \ idts \ idts", mixfix ("_/ _", [1, 0], 0)), diff -r b0b16088ccf2 -r 4dd5dadfc87d src/ZF/Bin.thy --- a/src/ZF/Bin.thy Fri Mar 13 16:04:27 2020 +0100 +++ b/src/ZF/Bin.thy Fri Mar 13 16:12:50 2020 +0100 @@ -101,11 +101,11 @@ NCons(bin_mult(v,w),0))" syntax - "_Int0" :: i (\#()0\) - "_Int1" :: i (\#()1\) - "_Int2" :: i (\#()2\) - "_Neg_Int1" :: i (\#-()1\) - "_Neg_Int2" :: i (\#-()2\) + "_Int0" :: i (\#' 0\) + "_Int1" :: i (\#' 1\) + "_Int2" :: i (\#' 2\) + "_Neg_Int1" :: i (\#-' 1\) + "_Neg_Int2" :: i (\#-' 2\) translations "#0" \ "CONST integ_of(CONST Pls)" "#1" \ "CONST integ_of(CONST Pls BIT 1)"