src/Doc/Tutorial/Protocol/Message.thy
changeset 81261 0c9075bdff38
parent 81091 c007e6d9941d
child 82630 2bb4a8d0111d
--- a/src/Doc/Tutorial/Protocol/Message.thy	Fri Oct 25 15:48:40 2024 +0200
+++ b/src/Doc/Tutorial/Protocol/Message.thy	Fri Oct 25 16:03:58 2024 +0200
@@ -81,6 +81,8 @@
 text\<open>Concrete syntax: messages appear as \<open>\<lbrace>A,B,NA\<rbrace>\<close>, etc...\<close>
 syntax
   "_MTuple" :: "['a, args] \<Rightarrow> 'a * 'b"  ("(\<open>indent=2 notation=\<open>mixfix message tuple\<close>\<close>\<lbrace>_,/ _\<rbrace>)")
+syntax_consts
+  "_MTuple" \<rightleftharpoons> MPair
 translations
   "\<lbrace>x, y, z\<rbrace>" \<rightleftharpoons> "\<lbrace>x, \<lbrace>y, z\<rbrace>\<rbrace>"
   "\<lbrace>x, y\<rbrace>" \<rightleftharpoons> "CONST MPair x y"