Node decorations as displayed families over PFunctor.FreeM #
A Decoration Γ s is the canonical displayed family over a free P-tree
s whose leaves carry no data and whose internal nodes carry one value of
Γ a and recursively decorate every child.
It is the displayed family obtained from the shape
leaf := fun _ => PUnit
node a child := Γ a × ((b : P.B a) → child b)
Equivalently, it is Displayed D s where D = Decoration.shape Γ. Because
Decoration is literally a Displayed at a chosen Shape, every Displayed
operation specializes immediately to Decoration: Displayed.map becomes
Decoration.map, Displayed.Hom-actions become decoration morphisms, and so
on. The lemmas in this file are exactly those specializations.
Decoration.Over is the dependent (displayed) variant: at each node, an
extra fiber of type F a γ over the base decoration's value γ : Γ a,
recursively over each child. It is Displayed.Over at the corresponding
OverShape.
The bridge equivOver packages a decoration of an extended context
Γ.extend A as a base decoration plus one Over layer.
This is the FreeM-generic substrate; protocol-flavored aliases (e.g. for
Spec) live downstream.
Displayed-family shape for node-local metadata over a polynomial tree.
Instances For
Node-local metadata over an arbitrary polynomial free tree.
At a control node a : P.A, the decoration stores one value of type Γ a
and recursively decorates every abstract control continuation b : P.B a.
Instances For
Displayed-family shape for a dependent layer over a polynomial decoration.
At a node with base metadata γ : Γ a, the over-layer stores data in
F a γ and recursively stores over-data over each decorated child.
Instances For
Dependent node-local metadata over an existing polynomial decoration.
Instances For
Extend a node metadata family by one dependent field.
Instances For
Map one extended node metadata family to another.
Instances For
The unique decoration by the everywhere-PUnit node metadata family.
Instances For
Natural transformation between node-local decorations, applied recursively.
Instances For
Constructor-local displayed-over morphism induced by a fiberwise map.
Instances For
Fiberwise map between dependent decoration families over the same decoration.
Instances For
Constructor-local displayed-over morphism induced by a map of base metadata and a compatible map of the dependent over-layer.
Instances For
Transport a dependent decoration across a nodewise map of base decorations.
Instances For
Pack a base decoration and one dependent Over layer into a decoration of the
extended metadata family.
Instances For
Unpack a decoration of an extended metadata family into its base decoration and dependent over-layer.
Instances For
Equivalence between decorating by an extended metadata family and pairing a base decoration with one dependent over-layer.