Forests #
Rooted forests with preorder and postorder traversals.
Equations
- One or more equations did not get rendered due to their size.
- instReprForest.repr Forest.nil prec✝ = Repr.addAppParen (Std.Format.nest (if prec✝ ≥ 1024 then 1 else 2) (Std.Format.text "Forest.nil")).group prec✝
Instances For
@[instance_reducible]
Equations
- instReprForest = { reprPrec := instReprForest.repr }
Equations
- Forest.nil.roots = ∅
- (Forest.node a child s).roots = insert a s.roots
Instances For
Equations
- Forest.nil.append g = g
- (Forest.node a child s).append g = Forest.node a child (s.append g)
Instances For
@[instance_reducible]
Equations
- Forest.instAppend = { append := Forest.append }