# HG changeset patch # User wenzelm # Date 1727729865 -7200 # Node ID 8042869c2072f3b80952b252dcd128c78466d079 # Parent dd59daa3c37a88430595f9a989596da14fe91bad clarified syntax: prefer nonterminal "args", use outer block (with indent); diff -r dd59daa3c37a -r 8042869c2072 src/HOL/HOLCF/ConvexPD.thy --- a/src/HOL/HOLCF/ConvexPD.thy Mon Sep 30 20:30:59 2024 +0200 +++ b/src/HOL/HOLCF/ConvexPD.thy Mon Sep 30 22:57:45 2024 +0200 @@ -178,13 +178,10 @@ (infixl \\\\ 65) where "xs \\ ys == convex_plus\xs\ys" -nonterminal convex_pd_args syntax - "" :: "logic \ convex_pd_args" (\_\) - "_convex_pd_args" :: "logic \ convex_pd_args \ convex_pd_args" (\_,/ _\) - "_convex_pd" :: "convex_pd_args \ logic" (\{_}\\) + "_convex_pd" :: "args \ logic" (\(\indent=1 notation=\mixfix convex_pd enumeration\\{_}\)\) syntax_consts - "_convex_pd_args" "_convex_pd" == convex_add + convex_add translations "{x,xs}\" == "{x}\ \\ {xs}\" "{x}\" == "CONST convex_unit\x" diff -r dd59daa3c37a -r 8042869c2072 src/HOL/HOLCF/IOA/Sequence.thy --- a/src/HOL/HOLCF/IOA/Sequence.thy Mon Sep 30 20:30:59 2024 +0200 +++ b/src/HOL/HOLCF/IOA/Sequence.thy Mon Sep 30 22:57:45 2024 +0200 @@ -70,8 +70,8 @@ subsection \List enumeration\ syntax - "_totlist" :: "args \ 'a Seq" (\[(\notation=\mixfix total list enumeration\\_)!]\) - "_partlist" :: "args \ 'a Seq" (\[(\notation=\mixfix partial list enumeration\\_)?]\) + "_totlist" :: "args \ 'a Seq" (\(\indent=1 notation=\mixfix total list enumeration\\[_!])\) + "_partlist" :: "args \ 'a Seq" (\(\indent=1 notation=\mixfix partial list enumeration\\[_?])\) syntax_consts Consq translations diff -r dd59daa3c37a -r 8042869c2072 src/HOL/HOLCF/LowerPD.thy --- a/src/HOL/HOLCF/LowerPD.thy Mon Sep 30 20:30:59 2024 +0200 +++ b/src/HOL/HOLCF/LowerPD.thy Mon Sep 30 22:57:45 2024 +0200 @@ -133,13 +133,10 @@ (infixl \\\\ 65) where "xs \\ ys == lower_plus\xs\ys" -nonterminal lower_pd_args syntax - "" :: "logic \ lower_pd_args" (\_\) - "_lower_pd_args" :: "logic \ lower_pd_args \ lower_pd_args" (\_,/ _\) - "_lower_pd" :: "lower_pd_args \ logic" (\{_}\\) + "_lower_pd" :: "args \ logic" (\(\indent=1 notation=\mixfix lower_pd enumeration\\{_}\)\) syntax_consts - "_lower_pd_args" "_lower_pd" == lower_add + lower_add translations "{x,xs}\" == "{x}\ \\ {xs}\" "{x}\" == "CONST lower_unit\x" diff -r dd59daa3c37a -r 8042869c2072 src/HOL/HOLCF/UpperPD.thy --- a/src/HOL/HOLCF/UpperPD.thy Mon Sep 30 20:30:59 2024 +0200 +++ b/src/HOL/HOLCF/UpperPD.thy Mon Sep 30 22:57:45 2024 +0200 @@ -131,13 +131,10 @@ (infixl \\\\ 65) where "xs \\ ys == upper_plus\xs\ys" -nonterminal upper_pd_args syntax - "" :: "logic \ upper_pd_args" (\_\) - "_upper_pd_args" :: "logic \ upper_pd_args \ upper_pd_args" (\_,/ _\) - "_upper_pd" :: "upper_pd_args \ logic" (\{_}\\) + "_upper_pd" :: "args \ logic" (\(\indent=1 notation=\mixfix upper_pd enumeration\\{_}\)\) syntax_consts - "_upper_pd_args" "_upper_pd" == upper_add + upper_add translations "{x,xs}\" == "{x}\ \\ {xs}\" "{x}\" == "CONST upper_unit\x"