Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 8.12 — every almost rectangle is tame

Proved
AlgebraicPCSP.OneInThree.proposition_8_12

by mikedeng1 · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

cyclic-operationsp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1polymorphismspromise-csp

Let DDD be a finite set, R⊆D3R\subseteq D^3R⊆D3, f:T→(D;R)f:\mathbf T\to(D;R)f:T→(D;R) and g:(D;R)→H2g:(D;R)\to\mathbf H_2g:(D;R)→H2​ homomorphisms, ppp a prime with p>60∣D∣p>60|D|p>60∣D∣, and s:Dp→Ds:D^p\to Ds:Dp→D a cyclic polymorphism of (D;R)(D;R)(D;R). Then every almost rectangle

X=[k,…,k⏟m,l,…,l],0≤m≤p,0≤l≤k≤p,k−l≤5∣D∣,X=[\underbrace{k,\dots,k}_{m},l,\dots,l],\qquad 0\le m\le p,\quad 0\le l\le k\le p,\quad k-l\le 5|D|,X=[mk,…,k​​,l,…,l],0≤m≤p,0≤l≤k≤p,k−l≤5∣D∣,

is tame: either X∼0p×pX\sim 0_{p\times p}X∼0p×p​ and λ(X)<1/3\lambda(X)<1/3λ(X)<1/3, or X∼1p×pX\sim 1_{p\times p}X∼1p×p​ and λ(X)>1/3\lambda(X)>1/3λ(X)>1/3.

Proposition 8.12 is what makes the two matrices of §8.4 comparable with 0p×p0_{p\times p}0p×p​ and 1p×p1_{p\times p}1p×p​, which produces the contradiction.

Formalization Note Column heights range over 0≤kj≤p0\le k_j\le p0≤kj​≤p; Definition 8.11 prints 1≤kj≤p1\le k_j\le p1≤kj​≤p but the proof of Lemma 8.14 uses height 000.

Preamble
import Mathlib
import Definitions.Def_PCSPBLPAff_Symmetric_Setting
import Definitions.Def_AlgebraicPCSP_OneInThree_Structures
import Definitions.Def_AlgebraicPCSP_OneInThree_Matrices
Formal statement
namespace AlgebraicPCSP.OneInThree

open PCSPBLPAff.Symmetric

/-- Proposition 8.12 (p. 55): each almost rectangle (step size at most `5|D|`) is tame, for a
cyclic polymorphism `s` of the finite structure `(D; R)` of prime arity `p > 60|D|` and
homomorphisms `f : T → (D; R)`, `g : (D; R) → H₂`. -/
theorem proposition_8_12 {D : Type} [Fintype D] [DecidableEq D] (R : Set (Fin 3 → D))
    (f : Fin 2 → D) (g : D → Fin 2)
    (hf : IsHom oneInThree (ternaryStruct R) f) (hg : IsHom (ternaryStruct R) nae g)
    {p : ℕ} (hp : p.Prime) (hpD : 60 * Fintype.card D < p)
    (s : (Fin p → D) → D) (hs : IsPolymorphism (ternaryStruct R) (ternaryStruct R) s)
    (hcyc : IsCyclic s) (X : Fin p → Fin p → Fin 2)
    (hX : IsAlmostRectangle (5 * Fintype.card D) X) :
    IsTame f g s X := by sorry

end AlgebraicPCSP.OneInThree
Source
L. Barto, J. Bulín, A. Krokhin, J. Opršal, Algebraic approach to promise constraint satisfaction, arXiv:1811.00970v3, p. 55, Proposition 8.12 (with Definition 8.11)
Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 8, 2026

    Confirmed by the mission captain (proposal self-audit).

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