Abstract:We show that for any ground term equation systems $E$ and $F$, (1) the union of the generated congruences by $E$ and $F$ is a congruence on the ground term algebra if and only if there exists a ground term equation system $H$ such that the congruence generated by $H$ is equal to the union of the congruences generated by $E$ and $F$ if and only if the congruence generated by the union of $E $ and $F$ is equal to the union of the congruences generated by $E $ and $F$, and (2) it is decidable in square time whether the congruence generated by the union of $E$ and $F$ is equal to the union of the congruences generated by $E $ and $F$, where the size of the input is the number of occurrences of symbols in $E$ plus the number of occurrences of symbols in $F$.
What problem does this paper attempt to address?
The problem that this paper attempts to solve is: **How to determine whether the union of two finitely - generated congruence relations is still a congruence relation, and complete this determination within polynomial time**.
Specifically, the paper studies, on the ground term algebra, given two finitely - generated congruence relations \(E\) and \(F\), whether their union \(E\cup F\) is also a congruence relation. If \(E\cup F\) is a congruence relation, it further explores whether the set of generators of this new congruence relation is equal to the union of the sets of generators of \(E\) and \(F\).
### Main contributions
1. **Determination conditions**:
- The paper proves that for any two ground - term equation systems \(E\) and \(F\), the congruence relation generated by \(E\cup F\) is a congruence relation if and only if there exists a ground - term equation system \(H\) such that the congruence relation generated by \(H\) is equal to the union of the congruence relations generated by \(E\) and \(F\).
- This condition is equivalent to the congruence relation generated by \(E\cup F\) being equal to the union of the congruence relations generated by \(E\) and \(F\).
2. **Algorithm complexity**:
- The paper proposes an algorithm with quadratic - time complexity \(O(n^{2})\) to determine whether the congruence relation generated by \(E\cup F\) is equal to the union of the congruence relations generated by \(E\) and \(F\), where \(n\) is the total number of symbol occurrences in the input.
### Key concepts
- **Ground Term Algebra**: An algebraic structure consisting of all terms generated by a set of constants and function symbols.
- **Finitely Generated Congruence**: A congruence relation generated by a finite number of ground - term equations.
- **Square - Time Decision Algorithm**: An algorithm that can solve a problem within \(O(n^{2})\) time.
### Application scenarios
The research on this problem is of great significance in computer science, especially in fields such as formal verification, automated reasoning, and program analysis. By using an efficient algorithm to determine the properties of congruence relations, the development and application of automated tools in these fields can be accelerated.
In summary, the main objective of this paper is to provide an efficient method to determine whether the union of two finitely - generated congruence relations is still a congruence relation, and to give specific determination conditions and algorithm complexity analysis.