Expand description
Equivalence classes with integrated union-find and parent use-lists.
§The class layer IS the verified aggregate
EClasses here is a type alias of containers::eclasses::EClasses with
this crate’s Justification as the proof payload: same parameters
(T, K, L, N, TRACK, PROOFS), same method surface (including
add_singleton(id), the justified merge family, and explain), same
panic messages, and the same packed layouts (asserted below).
The class-layer invariants W1-W7
(containers-verus/doc/future/egraph-wf.md) are machine-checked: every
mutation carries requires wf, ensures wf, and the build fails if a
change breaks preservation. Under PROOFS the kernel’s union-find
carries the dual, uncompressed proof forest exactly as the hand-rolled
one did; the re-rooting and LCA logic is the same algorithm, hosted as
the kernel’s trusted glue over verified columns
(containers-verus/doc/design/egraph-class-layer.md).
Structs§
- Class
Data - Per-class data from the verified kernel.
Per-class data: the class’s use-list id, its optional min-monomial pool
row number, and the atomic flag (production’s
ClassData). - EClasses
Token - Opaque token for
EClasses::mark/EClasses::restore. Token bundling the five component tokens. - Merge
Info - Returned by
merge: survivor, absorbed, and the absorbed class’s data. Returned bymerge: the surviving and absorbed canonical ids plus the absorbed class’s data, which the rebuild loop consumes (production’sMergeInfo).