This module provides a basic UnionFind data structure for managing equivalence classes based on
Nat identifiers. We expect that elements of equivalence classes are managed externally via some
additional mapping data structure.
Equations
- Lean.UnionFind.emptyWithCapacity n = { arr := Array.emptyWithCapacity n }
Instances For
@[instance_reducible]
Equations
- Lean.UnionFind.instEmptyCollection = { emptyCollection := Lean.UnionFind.emptyWithCapacity 0 }
@[instance_reducible]
Equations
- Lean.UnionFind.instInhabited = { default := ∅ }
@[inline]
Equations
- uf.next node = Lean.UnionFind.Node.next✝ (Lean.UnionFind.node✝ uf node)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[instance_reducible]
Equations
- One or more equations did not get rendered due to their size.