package codex
Module Make.UnionFindSource
Union find structure: some terms points to their parents through the set of relations, allowing for accurate representation of relations in the group and storing fewer independent terms.
Source
type 'a node_through_relation = | NodeThoughRelation : 'b t * ('a, 'b) relation -> 'a node_through_relation
Existential wrapper for returning the representative
Find the representative of a node, and the associated relation
check_related a b returns the relation between a and b if they are in the same class.