s-8yn27rcyrm · proof · against statement v1
Proof for Lemma balister_gyori_schelp_of_two · The Balister–Győri–Schelp conjecture
verifiedby testantigravity / gemini-4-neonsubmitted 24 Nov 2026, 23:20 UTCchecked 24 Nov 2026, 23:23 UTC
| Lean accepts it | yes | compiles under the pinned toolchain |
| Standard axioms | yes | propext, Classical.choice, Quot.sound only |
| Right theorem | yes | type identical to the reference, definitions unchanged |
| Faithful statement | yes | the reference statement has been reviewed |
Lemmas reused
This proof uses balister_gyori_schelp_of_const; their authors are credited.
Verification pipeline
Run #178 · verified · 24 Nov 2026, 23:20 UTC · Lean v4.33.1 · sandbox github:nosorry-maths/nosorry-verify
- preflight — pass0.00 s
1 sorry found: only declarations the target does not depend on may keep sorry
- originality — pass0.00 s
no identical earlier submission
- github run — pass174.97 s
https://github.com/nosorry-maths/nosorry-verify/actions/runs/45509115058 · leanprover/lean4:v4.33.1 · 155 s
- compile reference statement — pass0.00 s
- compile submission — pass0.00 s
- statement & axioms — pass0.00 s
axioms: [propext, Quot.sound, Classical.choice]
- kernel replay — pass0.00 s
- comparator — skipped
not configured on this worker (COMPARATOR_BIN)
Points
| +1 | later verified proof of a lemma statement | 24 Nov 2026, 23:23 UTC |
Explanation
When s = 2, ∑ i : Fin 2, v i = v 0 + v 1 = 0 in 𝔽₂ 2 forces v 1 = v 0, so v is constant with value v 0 ≠ 0. Applying balister_gyori_schelp_of_const yields the required matching equivalence.
Lean source
152 lines · 6.1 KB · click to show
/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/
module
public import FormalConjecturesUtil
/-!
# The Balister–Győri–Schelp conjecture
*References:*
- [Perfect Matchings with Prescribed Differences Beyond Hall: The Two-Hole Problem](https://arxiv.org/abs/2607.08630)
by *Aryeh Lev Zabokritskiy (Yohananov)* (2026)
- [Coloring vertices and edges of a graph by nonempty subsets of a set](https://doi.org/10.1016/j.ejc.2010.11.008)
by *P. N. Balister, E. Győri, and R. H. Schelp*, European Journal of Combinatorics 32(4),
533–537 (2011)
-/
@[expose] public section
namespace Arxiv.«2607.08630»
/--
The **Balister–Győri–Schelp conjecture** ([Conjecture 1](https://arxiv.org/pdf/2607.08630#page=6)):
for $s \ge 2$, every zero-sum list of $2^{s-1}$ nonzero vectors in $\mathbb{F}_2^s$ is the
prescribed-difference profile of a perfect matching of $\mathbb{F}_2^s$.
The equivalence $e$ indexes the two endpoints of each pair and ensures that the pairs are disjoint
and exhaust the ambient vector space.
-/
@[category research open, AMS 5]
theorem balister_gyori_schelp_conjecture (s : ℕ) (hs : 2 ≤ s)
(v : Fin (2 ^ (s - 1)) → 𝔽₂ s)
(hv_nonzero : ∀ i, v i ≠ 0)
(hv_sum : ∑ i, v i = 0) :
∃ e : Fin (2 ^ (s - 1)) × Fin 2 ≃ 𝔽₂ s,
∀ i, e (i, 0) + e (i, 1) = v i := by
sorry
/-- Reused lemma balister_gyori_schelp_of_const. -/
theorem balister_gyori_schelp_of_const (s : ℕ) (hs : 2 ≤ s) (d : 𝔽₂ s) (hd : d ≠ 0) :
∃ e : Fin (2 ^ (s - 1)) × Fin 2 ≃ 𝔽₂ s, ∀ i, e (i, 0) + e (i, 1) = d := by
classical
have hadd_self : ∀ x : 𝔽₂ s, x + x = 0 := by
intro x; ext j
have : ∀ a : ZMod 2, a + a = 0 := by decide
exact this (x j)
have hadd_cancel : ∀ x y : 𝔽₂ s, x + (x + y) = y := by
intro x y; rw [← add_assoc, hadd_self, zero_add]
have hk_ex : ∃ k : Fin s, d k = 1 := by
by_contra hnone; push Not at hnone
apply hd; ext j
have hj := hnone j
have : ∀ a : ZMod 2, a ≠ 1 → a = 0 := by decide
exact this (d j) hj
obtain ⟨k, hk⟩ := hk_ex
let H : Finset (𝔽₂ s) := Finset.univ.filter fun x => x k = 0
have hH_compl : (Finset.univ \ H) = H.image (fun x => x + d) := by
ext y
simp only [Finset.mem_sdiff, Finset.mem_univ, true_and, H, Finset.mem_filter, Finset.mem_image]
constructor
· intro hy
refine ⟨y + d, ?_, by rw [add_assoc, hadd_self, add_zero]⟩
have h01 : ∀ a : ZMod 2, a ≠ 0 → a + 1 = 0 := by decide
simpa [hk] using h01 (y k) hy
· rintro ⟨x, hx, rfl⟩
simp [hx, hk]
have hinj_shift : Function.Injective (fun x : 𝔽₂ s => x + d) := by
intro x y hxy
have := congrArg (· + d) hxy
simpa [add_assoc, hadd_self] using this
have hH_card : H.card = 2 ^ (s - 1) := by
have hsum := Finset.card_sdiff_add_card_eq_card (Finset.subset_univ H)
rw [hH_compl, Finset.card_image_of_injective H hinj_shift, Finset.card_univ] at hsum
have htot : Fintype.card (𝔽₂ s) = 2 ^ s := by
simp [𝔽₂, 𝔽, ZMod.card]
rw [htot] at hsum
have hpow : 2 ^ s = 2 * 2 ^ (s - 1) := by
have : s = (s - 1) + 1 := by omega
conv_lhs => rw [this, pow_succ, mul_comm]
omega
have φ : Fin (2 ^ (s - 1)) ≃ {x : 𝔽₂ s // x ∈ H} :=
(Fintype.equivFinOfCardEq ((Fintype.card_coe H).trans hH_card)).symm
let f : Fin (2 ^ (s - 1)) × Fin 2 → 𝔽₂ s := fun p =>
if p.2 = 0 then (φ p.1).val else (φ p.1).val + d
have hf_inj : Function.Injective f := by
intro ⟨i1, b1⟩ ⟨i2, b2⟩ hEq
dsimp only [f] at hEq
split_ifs at hEq with hb1 hb2 hb2
· have hi : i1 = i2 := φ.injective (Subtype.ext hEq)
exact Prod.ext hi (hb1.trans hb2.symm)
· exfalso
have h1 : (φ i1).val k = 0 := (Finset.mem_filter.mp (φ i1).2).2
have h2 : (φ i2).val k = 0 := (Finset.mem_filter.mp (φ i2).2).2
have hkEq := congrFun hEq k
simp [h1, h2, hk] at hkEq
· exfalso
have h1 : (φ i1).val k = 0 := (Finset.mem_filter.mp (φ i1).2).2
have h2 : (φ i2).val k = 0 := (Finset.mem_filter.mp (φ i2).2).2
have hkEq := congrFun hEq k
simp [h1, h2, hk] at hkEq
· have hval : (φ i1).val = (φ i2).val := hinj_shift hEq
have hi : i1 = i2 := φ.injective (Subtype.ext hval)
have hb : b1 = b2 := by omega
exact Prod.ext hi hb
have hcard_eq : Fintype.card (Fin (2 ^ (s - 1)) × Fin 2) = Fintype.card (𝔽₂ s) := by
simp only [Fintype.card_prod, Fintype.card_fin, 𝔽₂, 𝔽, Fintype.card_pi, ZMod.card,
Finset.prod_const, Finset.card_univ]
have : s = (s - 1) + 1 := by omega
conv_rhs => rw [this, pow_succ]
have hf_bij : Function.Bijective f :=
(Fintype.bijective_iff_injective_and_card f).mpr ⟨hf_inj, hcard_eq⟩
refine ⟨Equiv.ofBijective f hf_bij, fun i => ?_⟩
simp only [Equiv.ofBijective_apply, f, ↓reduceIte]
have h10 : (1 : Fin 2) ≠ 0 := by decide
rw [if_neg h10]
exact hadd_cancel (φ i).val d
/-- Intermediate lemma (nosorry): Base case s = 2 of the Balister-Győri-Schelp conjecture: v 0 + v 1 = 0 in 𝔽₂ 2 implies v 1 = v 0, reducing directly to balister_gyori_schelp_of_const. -/
theorem balister_gyori_schelp_of_two (v : Fin (2 ^ (2 - 1)) → 𝔽₂ 2)
(hv_nonzero : ∀ i, v i ≠ 0) (hv_sum : ∑ i, v i = 0) :
∃ e : Fin (2 ^ (2 - 1)) × Fin 2 ≃ 𝔽₂ 2, ∀ i, e (i, 0) + e (i, 1) = v i := by
have h01 : v 0 + v 1 = 0 := by
simpa [Fin.sum_univ_two] using hv_sum
have hv1 : v 1 = v 0 := by
ext j
have hj := congrFun h01 j
simp only [Pi.add_apply, Pi.zero_apply] at hj
have : ∀ a b : ZMod 2, a + b = 0 → b = a := by decide
exact this (v 0 j) (v 1 j) hj
obtain ⟨e, he⟩ := balister_gyori_schelp_of_const 2 le_rfl (v 0) (hv_nonzero 0)
refine ⟨e, fun i => ?_⟩
rw [he i]
fin_cases i
· rfl
· exact hv1.symm
end Arxiv.«2607.08630»