Theory Ribbons_Graphical
section ‹Syntax and proof rules for graphical diagrams›
theory Ribbons_Graphical imports
Ribbons_Interfaces
begin
text ‹We introduce a graphical syntax for diagrams, describe how to extract
commands and interfaces, and give proof rules for graphical diagrams.›
subsection ‹Syntax of graphical diagrams›
text ‹Fix a type for node identifiers›
typedecl node
text ‹Note that this datatype is necessarily an overapproximation of
syntactically-wellformed diagrams, for the reason that we can't impose the
well-formedness constraints while maintaining admissibility of the datatype
declarations. So, we shall impose well-formedness in a separate definition.
›