Skip to main content

Module classes

Module classes 

Source
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§

ClassData
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).
EClassesToken
Opaque token for EClasses::mark / EClasses::restore. Token bundling the five component tokens.
MergeInfo
Returned by merge: survivor, absorbed, and the absorbed class’s data. Returned by merge: the surviving and absorbed canonical ids plus the absorbed class’s data, which the rebuild loop consumes (production’s MergeInfo).

Type Aliases§

ClassIter
Class-ring iterator: the verified RingIter, yielding T node ids in ring order.
EClasses
Equivalence classes with integrated union-find and parent use-lists (the verified aggregate).