You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Source: 3-SATISFIABILITY (3SAT) Target: MONOCHROMATIC TRIANGLE Motivation: Establishes NP-completeness of MONOCHROMATIC TRIANGLE via polynomial-time reduction from 3SAT. The reduction by Burr (1976) shows that deciding whether edges can be 2-colored to avoid monochromatic triangles is computationally hard. This connects satisfiability to Ramsey-theoretic graph coloring. Reference: Garey & Johnson, Computers and Intractability, A1.1 GT6; Burr, S. A. (1976). "Generalized Ramsey theory for graphs — a survey." In Graphs and Combinatorics, Lecture Notes in Mathematics, vol. 406, Springer, pp. 52-75.
GJ Source Entry
MONOCHROMATIC TRIANGLE
INSTANCE: Graph G = (V,E).
QUESTION: Can E be partitioned into two sets E_1 and E_2 such that neither (V,E_1) nor (V,E_2) contains a triangle?
Reference: [Burr, 1976]. Transformation from 3-SATISFIABILITY.
Reduction Algorithm
Given a KSatisfiability<K3> instance with n variables and m clauses, construct a MonochromaticTriangle graph G = (V', E') as follows:
Literal vertices: For each variable x_i (i = 1, ..., n), create a positive vertex p_i and a negative vertex n_i. Add a negation edge (p_i, n_i). This gives 2n vertices and n edges.
Clause gadgets: For each clause C_j = (l_1 ∨ l_2 ∨ l_3), map each literal to its vertex (x_i maps to p_i; ¬x_i maps to n_i). Let v_1, v_2, v_3 be the three literal vertices.
For each pair (v_a, v_b) from {v_1, v_2, v_3}, create a fresh intermediate vertex m_{ab}^j and add fan edges (v_a, m_{ab}^j) and (v_b, m_{ab}^j). This produces 3 intermediate vertices and 6 fan edges per clause.
Connect the three intermediate vertices to form a clause triangle:
(m_{12}^j, m_{13}^j), (m_{12}^j, m_{23}^j), (m_{13}^j, m_{23}^j)
Each clause gadget produces 4 triangles: the clause triangle plus three fan triangles.
Solution extraction: From a valid 2-edge-coloring c of G, read the truth assignment: τ(x_i) = 1 if c(p_i, n_i) = 0, else τ(x_i) = 0.
Correctness: The local gadget lemma (verified exhaustively): for every assignment of the three clause literals, the clause gadget admits a monochromatic-triangle-free 2-edge-coloring iff the clause is satisfied. Forward: a satisfying assignment encodes on negation edges, and each clause's gadget can be colored locally. Backward: if all three literals are false, the fan constraints force the clause triangle to be monochromatic.
Size Overhead
Target metric (code name)
Expression
num_vertices
2 * num_vars + 3 * num_clauses
num_edges
num_vars + 9 * num_clauses
Implementation Note
MonochromaticTriangle currently has 0 outgoing reductions (no ILP solver). A MonochromaticTriangle → ILP rule should be implemented alongside this rule:
Binary variable c_e ∈ {0,1} per edge (the 2-coloring)
For each triangle (e1, e2, e3): c_e1 + c_e2 + c_e3 ≥ 1 and c_e1 + c_e2 + c_e3 ≤ 2
By correctness, when the source is satisfiable, the target MonochromaticTriangle admits a valid 2-edge-coloring; the failing assignment above corresponds to a target coloring with at least one monochromatic triangle.
Validation Method
Closed-loop test: reduce KSatisfiability to MonochromaticTriangle, solve target via ILP (MonochromaticTriangle → ILP), extract truth assignment from negation edge colors, verify all clauses satisfied
Test with both satisfiable and unsatisfiable instances
Burr, S. A. (1976). "Generalized Ramsey theory for graphs — a survey." In Graphs and Combinatorics, Lecture Notes in Mathematics, vol. 406, Springer, pp. 52-75.
Garey, M. R., & Johnson, D. S. (1979). Computers and Intractability, A1.1 GT6.
Source: 3-SATISFIABILITY (3SAT)
Target: MONOCHROMATIC TRIANGLE
Motivation: Establishes NP-completeness of MONOCHROMATIC TRIANGLE via polynomial-time reduction from 3SAT. The reduction by Burr (1976) shows that deciding whether edges can be 2-colored to avoid monochromatic triangles is computationally hard. This connects satisfiability to Ramsey-theoretic graph coloring.
Reference: Garey & Johnson, Computers and Intractability, A1.1 GT6; Burr, S. A. (1976). "Generalized Ramsey theory for graphs — a survey." In Graphs and Combinatorics, Lecture Notes in Mathematics, vol. 406, Springer, pp. 52-75.
GJ Source Entry
Reduction Algorithm
Given a
KSatisfiability<K3>instance with n variables and m clauses, construct aMonochromaticTrianglegraph G = (V', E') as follows:Literal vertices: For each variable x_i (i = 1, ..., n), create a positive vertex p_i and a negative vertex n_i. Add a negation edge (p_i, n_i). This gives 2n vertices and n edges.
Clause gadgets: For each clause C_j = (l_1 ∨ l_2 ∨ l_3), map each literal to its vertex (x_i maps to p_i; ¬x_i maps to n_i). Let v_1, v_2, v_3 be the three literal vertices.
For each pair (v_a, v_b) from {v_1, v_2, v_3}, create a fresh intermediate vertex m_{ab}^j and add fan edges (v_a, m_{ab}^j) and (v_b, m_{ab}^j). This produces 3 intermediate vertices and 6 fan edges per clause.
Connect the three intermediate vertices to form a clause triangle:
(m_{12}^j, m_{13}^j), (m_{12}^j, m_{23}^j), (m_{13}^j, m_{23}^j)
Each clause gadget produces 4 triangles: the clause triangle plus three fan triangles.
Solution extraction: From a valid 2-edge-coloring c of G, read the truth assignment: τ(x_i) = 1 if c(p_i, n_i) = 0, else τ(x_i) = 0.
Correctness: The local gadget lemma (verified exhaustively): for every assignment of the three clause literals, the clause gadget admits a monochromatic-triangle-free 2-edge-coloring iff the clause is satisfied. Forward: a satisfying assignment encodes on negation edges, and each clause's gadget can be colored locally. Backward: if all three literals are false, the fan constraints force the clause triangle to be monochromatic.
Size Overhead
num_vertices2 * num_vars + 3 * num_clausesnum_edgesnum_vars + 9 * num_clausesImplementation Note
MonochromaticTriangle currently has 0 outgoing reductions (no ILP solver). A MonochromaticTriangle → ILP rule should be implemented alongside this rule:
num_vars = "num_edges", constraints = 2 × num_trianglesExample
Source (KSatisfiability):
n = 6 variables (x_1, ..., x_6), m = 4 clauses:
Each variable appears exactly twice with opposite polarity across clauses — maximally balanced structure.
Target (MonochromaticTriangle):
Satisfying assignment: x_1=1, x_2=1, x_3=0, x_4=1, x_5=0, x_6=1
Non-satisfying assignment: x_1=1, x_2=1, x_3=1, x_4=1, x_5=1, x_6=1
By correctness, when the source is satisfiable, the target MonochromaticTriangle admits a valid 2-edge-coloring; the failing assignment above corresponds to a target coloring with at least one monochromatic triangle.
Validation Method
References