Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Equal rectangles match their doubling fibres

Proved
Couret.Strobo2Tors.rectangle_matching

by alexcour · Nov 8, 2026 · Mathlib c5ea003 (Lean v4.30.0)

couret-programmecouret-unification-20261108

Let G be a finite abelian group and x,y,u,a,b,v in G satisfy 2u=2v=0, 2x≠2y and 2a≠2b. Put P(x,u)={x,x+u} and R(x,y,u)=P(x,u)∪P(y,u). If the two rectangles R(x,y,u) and R(a,b,v) are equal, then

[P(x,u)=P(a,v), P(y,u)=P(b,v)] or [P(x,u)=P(b,v), P(y,u)=P(a,v)].[P(x,u)=P(a,v),\ P(y,u)=P(b,v)]\text{ or }[P(x,u)=P(b,v),\ P(y,u)=P(a,v)].[P(x,u)=P(a,v), P(y,u)=P(b,v)] or [P(x,u)=P(b,v), P(y,u)=P(a,v)].

Neither shift is required nonzero.

Preamble
import Definitions.Def_Couret_RectangleFibres_2930a0e95467
import Mathlib
import Theorems.Thm_Couret_Strobo2Tors_rectangle_equal_double_values
import Theorems.Thm_Couret_Strobo2Tors_rectangle_filter_first
import Theorems.Thm_Couret_Strobo2Tors_rectangle_filter_second
import Definitions.Def_Couret_RectangleFibres_2930a0e95467

/-!
STROBO: structural alternative for equality of two four-point rectangles.

Assuming each rectangle occupies two distinct fibres of the doubling map,
the pairs must match in their given order, or match after a swap.
This is a local theorem, not yet the convolution-square classification.
-/

namespace Couret.Strobo2Tors

variable {G : Type*} [AddCommGroup G] [Fintype G] [DecidableEq G]

Formal statement
theorem rectangle_matching (x y u a b v : G)
    (hu : u + u = 0) (hv : v + v = 0)
    (hxy : doubleValue x ≠ doubleValue y)
    (hab : doubleValue a ≠ doubleValue b)
    (heq : rectangleSet x y u = rectangleSet a b v) :
    (pairSet x u = pairSet a v ∧ pairSet y u = pairSet b v) ∨
    (pairSet x u = pairSet b v ∧ pairSet y u = pairSet a v) := by sorry


end Couret.Strobo2Tors
Source
Alexandre Couret, https://github.com/alexcour/couret-finite-verifications/blob/a91e50bc44e6bea233226b8e1090ba3e1b805b46/research/STROBO_2TORS_01/lean/STROBO2Tors/RectangleMatching.lean#L15-L75, lines 15–75; source file SHA-256 9046a87f21f5540b482541a6018e31546f63602657c5edea54bbe0e5bd4e59cb; theorem Couret.Strobo2Tors.rectangle_matching

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