section ‹Syntax and proof rules for stratified diagrams› theory Ribbons_Stratified imports Ribbons_Interfaces Proofchain begin text ‹We define the syntax of stratified diagrams. We give proof rules for stratified diagrams, and prove them sound with respect to the ordinary rules of separation logic.› subsection ‹Syntax of stratified diagrams›