Lemma 3.2 — colour-determined relations are closed under the CoR operations, with colour table (CT) for composition
ProvedCoRSuccGap.lemma_3_2calculus-of-relationscircuit-lower-boundsfinite-variable-logicp2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1succinctness
Let be a colouring of the pairs of distinct vertices of with the two-witness property of Lemma 3.1. Then:
- the constants are colour-determined;
- colour-determined relations are closed under union, intersection, complement, converse and composition;
- for colour-determined the composition has the colour table (CT): for every colour ,
In particular every value a relational circuit computes on a reference structure is colour-determined, and its table is computed entrywise from those of its operands.
Formalization Note (CT) is stated pointwise: at every pair with , holds iff the first right-hand side holds, and at every loop iff the second does.
Differences from the source:
- generalization: the standing setting of §3.1: a vertex set of size n ≥ n₀(N) carrying a coloring as in Lemma 3.1, palette of N ≥ 2 colors → any vertex type V and any colouring χ with the two-witness property; reason: the paper fixes such a coloring and its proofs use only the two-witness property; every coloring given by Lemma 3.1 satisfies the hypothesis, so the Lean statement specializes to the source's
- generalization: palette of N ≥ 2 colors → any palette type Λ; reason: the statement and proof do not use N ≥ 2; it specializes to the source's palettes
- encoding: (CT) as an identity of table entries (X;Y)[μ], (X;Y)[id] → pointwise equivalences at every pair u ≠ v of colour μ and at every loop; reason: for colour-determined relations the table entry is the value at every pair with that label, so the two forms say the same
Preamble
import Mathlib import Definitions.Def_CoRSuccGap_TwoWitness import Definitions.Def_CoRSuccGap_ColorDet set_option autoImplicit false
Formal statement
namespace CoRSuccGap
/-- **Lemma 3.2 (Closure of color-determined relations).** Uezato–Nakamura, *An Exponential Succinctness Gap between Three-Variable Logic and the Calculus of
Relations*, arXiv:2609.26778 (held version, sha256 5ad6337d…c9b6), Lemma 3.2,
p.19 (PDF 21): "The constants 0, 1, id are color-determined, and color-determined relations are
closed under Boolean operations, converse, and composition. For color-determined X, Y, their
composition has the following color table (CT), for every color μ ∈ Λ:
(X; Y)[μ] = (X[id] ∧ Y[μ]) ∨ (X[μ] ∧ Y[id]) ∨ (S_X ≠ ∅ ∧ S_Y ≠ ∅),
(X; Y)[id] = (X[id] ∧ Y[id]) ∨ (S_X ∩ S_Y ≠ ∅)." Standing assumption: χ has the two-witness
property of Lemma 3.1 (§3.1, p.18, "Fix such a coloring").
**Formalization Note.** Relations are `V → V → Prop`; 0, 1, id are `False`, `True`, `=`.
Boolean operations are union, intersection and complement. (CT) is stated pointwise: at every pair
`u ≠ v` of colour μ and at every loop `(u, u)`, the composition holds iff the right-hand side of
(CT) does. The two-witness property replaces the standing size n ≥ n₀(N) and the palette is any
type. -/
theorem lemma_3_2 {V : Type*} {Λ : Type*} [DecidableEq V] (χ : Sym2 V → Λ)
(hχ : TwoWitness χ) :
(ColorDet χ (fun _ _ => False) ∧ ColorDet χ (fun _ _ => True) ∧
ColorDet χ (fun a b => a = b)) ∧
(∀ X Y : V → V → Prop, ColorDet χ X → ColorDet χ Y →
ColorDet χ (fun a b => X a b ∨ Y a b) ∧ ColorDet χ (fun a b => X a b ∧ Y a b) ∧
ColorDet χ (fun a b => ¬ X a b) ∧ ColorDet χ (fun a b => X b a) ∧
ColorDet χ (fun a b => ∃ c, X a c ∧ Y c b)) ∧
(∀ X Y : V → V → Prop, ColorDet χ X → ColorDet χ Y →
(∀ (μ : Λ) (u v : V), u ≠ v → χ s(u, v) = μ →
((∃ c, X u c ∧ Y c v) ↔
(tab χ X none ∧ tab χ Y (some μ)) ∨ (tab χ X (some μ) ∧ tab χ Y none) ∨
((supp χ X).Nonempty ∧ (supp χ Y).Nonempty))) ∧
(∀ u : V, ((∃ c, X u c ∧ Y c u) ↔
(tab χ X none ∧ tab χ Y none) ∨ (supp χ X ∩ supp χ Y).Nonempty))) := by sorry
end CoRSuccGap
Source
Y. Uezato, Y. Nakamura, An Exponential Succinctness Gap between Three-Variable Logic and the Calculus of Relations, arXiv:2609.26778 (held version, sha256 5ad6337daad55bcf6132960d4744d07ff7d67ef2a9aef456f3e3b54ff623c9b6), Lemma 3.2, p.19 (PDF 21)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.