Unique maps for FourTree
#
We define the uniqueMap4
and uniqueMap3
functions for FourTree
.
For a given f : α4 → α4
or f : α3 → α3
, these functions the elements of a FourTree
,
and leave only new elements which are not already present in the tree (if
the tree has no duplicates).
uniqueMap4 #
Given a map f : α4 → α4
the map from Leaf α4 → Leaf α4
mapping the underlying
elements.
Equations
Instances For
Given a map f : α4 → α4
the map from Twig α3 α4 → Twig α3 α4
mapping the underlying
leafs and deleting any that appear in the original Twig.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Given a map f : α4 → α4
the map from Branch α2 α3 α4 → Branch α2 α3 α4
mapping the underlying leafs and deleting any that appear in the original Twig.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Given a map f : α4 → α4
the map from Trunk α1 α2 α3 α4 → Trunk α1 α2 α3 α4
mapping the underlying leafs and deleting any that appear in the original Twig.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Given a map f : α4 → α4
the map from FourTree α1 α2 α3 α4 → FourTree α1 α2 α3 α4
mapping the underlying leafs and deleting any that appear in the original twig of that
leaf.
Equations
- One or more equations did not get rendered due to their size.
Instances For
uniqueMap3 #
Given a map f : α3 → α3
the map from Twig α3 α4 → Twig α3 α4
mapping the underlying
first value of the twig.
Equations
- PhysLean.FourTree.Twig.uniqueMap3 f (PhysLean.FourTree.Twig.twig xs leafs) = PhysLean.FourTree.Twig.twig (f xs) leafs
Instances For
Given a map f : α3 → α3
the map from Branch α2 α3 α4 → Branch α2 α3 α4
mapping the
underlying first value of the twig, and deleting any new leafs that appeared
in the old branch.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Given a map f : α3 → α3
the map from Trunk α1 α2 α3 α4 → Trunk α1 α2 α3 α4
mapping the
underlying first value of the twig, and deleting any new leafs that appeared
in the old branch.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Given a map f : α3 → α3
the map from FourTree α1 α2 α3 α4 → FourTree α1 α2 α3 α4
mapping the
underlying first value of the twig, and deleting any new leafs that appeared
in the old branch.
Equations
- One or more equations did not get rendered due to their size.