op_1870_pairwise_cap_total_card_le_168
For any three mutually disjoint finsets $A_0, A_1, A_2 \subseteq \mathbb{F}_3^6$, if each pairwise union $A_0 \cup A_1$, $A_0 \cup A_2$, and $A_1 \cup A_2$ has cardinality at most 112, then their total cardinality satisfies $|A_0| + |A_1| + |A_2| \le 168$.
Statement
theorem op_1870_pairwise_cap_total_card_le_168
(A₀ A₁ A₂ : Finset (Fin 6 → ZMod 3))
(h01 : Disjoint A₀ A₁) (h02 : Disjoint A₀ A₂) (h12 : Disjoint A₁ A₂)
(hC01 : (A₀ ∪ A₁).card ≤ 112)
(hC02 : (A₀ ∪ A₂).card ≤ 112)
(hC12 : (A₁ ∪ A₂).card ≤ 112) :
A₀.card + A₁.card + A₂.card ≤ 168- Source
- arXiv:2611.19543 Section 4
- Verified
- 18 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- op_1870_pairwise_cap_card_identityFor any three mutually disjoint finite sets $A_0, A_1, A_2$, the sum of the cardinalities of their pairwise unions satisfies…
Read back from the Lean
Let $A_0, A_1, A_2$ be finite subsets of $\mathrm{Fin}\ 6 \to \mathbb{Z}/3\mathbb{Z}$. Assume that $A_0, A_1, A_2$ are pairwise disjoint: - $A_0$ and $A_1$ are disjoint, - $A_0$ and $A_2$ are disjoint, and - $A_1$ and $A_2$ are disjoint. Assume further that the cardinality of each pairwise union is at most 112: - $|A_0 \cup A_1| \le 112$, - $|A_0 \cup A_2| \le 112$, and - $|A_1 \cup A_2| \le 112$. Then the sum of their cardinalities satisfies $|A_0| + |A_1| + |A_2| \le 168$.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
The proof, explained
Summing the sizes of the three pairwise unions counts every element of the pairwise disjoint sets $A_0, A_1, A_2$ exactly twice, giving the identity $2(|A_0| + |A_1| + |A_2|) = |A_0 \cup A_1| + |A_0 \cup A_2| + |A_1 \cup A_2|$. Since each pairwise union has size at most 112, their sum is at most $3 \times 112 = 336$. Dividing by 2 directly yields the bound $|A_0| + |A_1| + |A_2| \le 168$.
$2(|A_0| + |A_1| + |A_2|) = |A_0 \cup A_1| + |A_0 \cup A_2| + |A_1 \cup A_2|$
Because $A_0, A_1, A_2$ are pairwise disjoint, the size of each pairwise union is the sum of the sizes of the two constituent sets. Summing all three pairwise unions counts each set's elements exactly twice, establishing this counting identity via `op_1870_pairwise_cap_card_identity`.
uses
op_1870_pairwise_cap_card_identityhave h := op_1870_pairwise_cap_card_identity A₀ A₁ A₂ h01 h02 h12$|A_0| + |A_1| + |A_2| \le 168$
Each pairwise union has cardinality at most 112, so the right-hand side of the identity is at most $112 + 112 + 112 = 336$. Dividing both sides of $2(|A_0| + |A_1| + |A_2|) \le 336$ by 2 gives $|A_0| + |A_1| + |A_2| \le 168$. The `omega` tactic discharges this linear integer arithmetic.
omega
op_1870_pairwise_cap_card_identity- For any three pairwise disjoint finite sets $A_0, A_1, A_2$, twice the sum of their cardinalities equals the sum of the cardinalities of their pairwise unions: $2(|A_0| + |A_1| + |A_2|) = |A_0 \cup A_1| + |A_0 \cup A_2| + |A_1 \cup A_2|$.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
/-- Total cardinality of three pairwise disjoint sets in dimension 6 is at most 168 if each pairwise union has size at most 112. -/theorem op_1870_pairwise_cap_total_card_le_168 (A₀ A₁ A₂ : Finset (Fin 6 → ZMod 3)) (h01 : Disjoint A₀ A₁) (h02 : Disjoint A₀ A₂) (h12 : Disjoint A₁ A₂) (hC01 : (A₀ ∪ A₁).card ≤ 112) (hC02 : (A₀ ∪ A₂).card ≤ 112) (hC12 : (A₁ ∪ A₂).card ≤ 112) : A₀.card + A₁.card + A₂.card ≤ 168 := by have h := op_1870_pairwise_cap_card_identity A₀ A₁ A₂ h01 h02 h12 omega