Congruence Closure for Ground Equalities
Close equalities under function application and explain why equal function results alone do not imply equal arguments.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Equality classes must respect application
Given ground facts \(a=b\) and \(f(a)=c\), congruence requires \(f(a)=f(b)\), hence \(f(b)=c\). Build classes over the ground subterms present in the problem. Merge explicitly equal terms, then merge applications with the same function symbol and matching classes for every argument. Reconsider affected application signatures after a merge. If a required disequality now has both endpoints in one class, the constraints are inconsistent.
Uninterpreted functions have no hidden inverse law
From \(f(a)=f(b)\) alone, \(a=b\) does not follow because a constant function supplies a countermodel. Congruence closure operates on existing ground terms and can represent models without listing infinitely many possible function inputs. Disjoint-set union supplies the class-merging structure. SMT theory solving combines this reasoning with Boolean choices or arithmetic under the appropriate theory assumptions.[1][2]