Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma A.1 — direct whole-cell reflection

Proved
HarmonicRanking.Main.Supplement.lemma_A_1

by mikedeng1 · Nov 15, 2026 · Mathlib 0df444a (Lean v4.33.1)

factor-revealingmatchingp2o-batch-stoc27sp2o-gran-per-chapterp2o-plan-paperp2o-v1

Fix m≥1m\ge1m≥1. For g^∈Gcomp,m\hat g\in\mathfrak G_{\mathrm{comp},m}g^​∈Gcomp,m​ define the reflected table (Rg^)(k,r):=g^m+1−k,m+1−r(R\hat g)(k,r):=\hat g_{m+1-k,m+1-r}(Rg^​)(k,r):=g^​m+1−k,m+1−r​ for k,r∈[m]k,r\in[m]k,r∈[m], with (Rg^)(k,0):=0(R\hat g)(k,0):=0(Rg^​)(k,0):=0. Then:

  1. RRR is a bijection from Gcomp,m\mathfrak G_{\mathrm{comp},m}Gcomp,m​ onto KmK_mKm​;
  2. for every g^∈Gcomp,m\hat g\in\mathfrak G_{\mathrm{comp},m}g^​∈Gcomp,m​, with g=Rg^g=R\hat gg=Rg^​,
min⁡(a,b)∈TUW,mΓ^m(g^,a,b)=min⁡(c,d)∈Pm⊥Φg(c,d),\min_{(a,b)\in T_{UW,m}}\hat\Gamma_m(\hat g,a,b)=\min_{(c,d)\in P^\perp_m}\Phi_g(c,d),(a,b)∈TUW,m​min​Γ^m​(g^​,a,b)=(c,d)∈Pm⊥​min​Φg​(c,d),

where Pm⊥={(c,d)∈Bm2:XkrYrk=0 for all k,r∈[m]}P^\perp_m=\{(c,d)\in B_m^2:X_{kr}Y_{rk}=0\text{ for all }k,r\in[m]\}Pm⊥​={(c,d)∈Bm2​:Xkr​Yrk​=0 for all k,r∈[m]}, Xkr=1{ck−1≥r}X_{kr}=\mathbf 1\{c_{k-1}\ge r\}Xkr​=1{ck−1​≥r}, Ykr=1{dk−1≥r}Y_{kr}=\mathbf 1\{d_{k-1}\ge r\}Ykr​=1{dk−1​≥r}.

Reflecting both grid coordinates turns the whole-cell unweighted game into the complementary two-path game, up to the transpose-overlap restriction removed by Lemma A.2; together they give the first equality of Theorem 7.1.

Formalization Note Both minima are infima in EReal over finite nonempty sets; the bijection is Set.BijOn.

Differences from the source:

  • encoding: one-based indices i ∈ [m] and paths (a_0,…,a_m) → zero-based Fin m and Fin (m+1) indices, with the boundary values ĝ_{i,m+1} = 0 and g(i,0) = 0 supplied by accessors; reason: Lean convention, same tables and paths
  • encoding: min over finite sets → EReal infimum over the same finite nonempty sets; reason: a finite nonempty infimum is attained, so it is the minimum
Preamble
import Definitions.Def_HarmonicRanking_Main_Supplement_GridGames

set_option autoImplicit false
Formal statement
namespace HarmonicRanking.Main.Supplement

theorem lemma_A_1 (m : ℕ) (hm : 1 ≤ m) :
    Set.BijOn (reflect (m := m)) {gh | IsCompTable gh} {g | IsKTable g} ∧
    ∀ gh : Fin m → Fin m → ℝ, IsCompTable gh →
      wholeCellMin gh = transposeFreeMin (reflect gh) := by sorry

end HarmonicRanking.Main.Supplement
Source
Bo Peng, Zhihao Gavin Tang, Harmonic Ranking for Edge-Weighted Oblivious Matching, STOC 2027 submission #176 (October 2026), printed/PDF p. 29, Lemma A.1 (definitions pp. 28–29, eqs. (43)–(46))

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me