The areas / V30. Combinatorics
Mathlib.Combinatorics.Additive.Corner.Defs
21 declarations. Mathlib docs · Source
Corners
This file defines corners, namely triples of the form (x, y), (x, y + d), (x + d, y), and the
property of being corner-free.
References
- [Yaël Dillies, Bhavik Mehta, Formalising Szemerédi’s Regularity Lemma in Lean][srl_itp]
- Wikipedia, Corners theorem
structure IsCorner E1 #
{G : Type u_1} → [AddCommMonoid G] → Set (G × G) → G → G → G → G → Prop
A corner of a set A in an abelian group is a triple of points of the form
(x, y), (x + d, y), (x, y + d). It is nontrivial if d ≠ 0.
Here we define it as triples (x₁, y₁), (x₂, y₁), (x₁, y₂) where x₁ + y₂ = x₂ + y₁ in order for
the definition to make sense in commutative monoids, the motivating example being ℕ.
theorem isCorner_iff E0 #
∀ {G : Type u_1} [inst : AddCommMonoid G] (A : Set (G × G)) (x₁ y₁ x₂ y₂ : G),
IsCorner A x₁ y₁ x₂ y₂ ↔ (x₁, y₁) ∈ A ∧ (x₁, y₂) ∈ A ∧ (x₂, y₁) ∈ A ∧ x₁ + y₂ = x₂ + y₁
ctor IsCorner.mk E0 #
∀ {G : Type u_1} [inst : AddCommMonoid G] {A : Set (G × G)} {x₁ y₁ x₂ y₂ : G},
(x₁, y₁) ∈ A → (x₁, y₂) ∈ A → (x₂, y₁) ∈ A → x₁ + y₂ = x₂ + y₁ → IsCorner A x₁ y₁ x₂ y₂
theorem IsCorner.fst_fst_mem E1 #
∀ {G : Type u_1} [inst : AddCommMonoid G] {A : Set (G × G)} {x₁ y₁ x₂ y₂ : G}, IsCorner A x₁ y₁ x₂ y₂ → (x₁, y₁) ∈ A
theorem IsCorner.fst_snd_mem E1 #
∀ {G : Type u_1} [inst : AddCommMonoid G] {A : Set (G × G)} {x₁ y₁ x₂ y₂ : G}, IsCorner A x₁ y₁ x₂ y₂ → (x₁, y₂) ∈ A
theorem IsCorner.snd_fst_mem E1 #
∀ {G : Type u_1} [inst : AddCommMonoid G] {A : Set (G × G)} {x₁ y₁ x₂ y₂ : G}, IsCorner A x₁ y₁ x₂ y₂ → (x₂, y₁) ∈ A
theorem IsCorner.add_eq_add E1 #
∀ {G : Type u_1} [inst : AddCommMonoid G] {A : Set (G × G)} {x₁ y₁ x₂ y₂ : G},
IsCorner A x₁ y₁ x₂ y₂ → x₁ + y₂ = x₂ + y₁
def IsCornerFree E1 #
{G : Type u_1} → [AddCommMonoid G] → Set (G × G) → Prop
A corner-free set in an abelian group is a set containing no non-trivial corner.
theorem isCornerFree_iff E0 #
∀ {G : Type u_1} [inst : AddCommMonoid G] {A : Set (G × G)} {s : Set G},
A ⊆ s ×ˢ s →
(IsCornerFree A ↔
∀ ⦃x₁ : G⦄,
x₁ ∈ s → ∀ ⦃y₁ : G⦄, y₁ ∈ s → ∀ ⦃x₂ : G⦄, x₂ ∈ s → ∀ ⦃y₂ : G⦄, y₂ ∈ s → IsCorner A x₁ y₁ x₂ y₂ → x₁ = x₂)
A convenient restatement of corner-freeness in terms of an ambient product set.
theorem IsCorner.mono E1 #
∀ {G : Type u_1} [inst : AddCommMonoid G] {A B : Set (G × G)} {x₁ y₁ x₂ y₂ : G},
A ⊆ B → IsCorner A x₁ y₁ x₂ y₂ → IsCorner B x₁ y₁ x₂ y₂
theorem IsCornerFree.mono E1 #
∀ {G : Type u_1} [inst : AddCommMonoid G] {A B : Set (G × G)}, A ⊆ B → IsCornerFree B → IsCornerFree A
theorem not_isCorner_empty E0 #
∀ {G : Type u_1} [inst : AddCommMonoid G] {x₁ y₁ x₂ y₂ : G}, ¬IsCorner ∅ x₁ y₁ x₂ y₂
theorem Set.Subsingleton.isCornerFree E0 #
∀ {G : Type u_1} [inst : AddCommMonoid G] {A : Set (G × G)}, A.Subsingleton → IsCornerFree A
theorem isCornerFree_empty E1 #
∀ {G : Type u_1} [inst : AddCommMonoid G], IsCornerFree ∅
theorem isCornerFree_singleton E1 #
∀ {G : Type u_1} [inst : AddCommMonoid G] (x : G × G), IsCornerFree {x}
theorem IsCorner.image E1 #
∀ {G : Type u_1} {H : Type u_2} [inst : AddCommMonoid G] [inst_1 : AddCommMonoid H] {A : Set (G × G)} {s : Set G}
{t : Set H} {f : G → H} {x₁ y₁ x₂ y₂ : G},
IsAddFreimanHom 2 s t f →
A ⊆ s ×ˢ s → IsCorner A x₁ y₁ x₂ y₂ → IsCorner (Prod.map f f '' A) (f x₁) (f y₁) (f x₂) (f y₂)
Corners are preserved under 2-Freiman homomorphisms.
theorem IsCornerFree.of_image E1 #
∀ {G : Type u_1} {H : Type u_2} [inst : AddCommMonoid G] [inst_1 : AddCommMonoid H] {A : Set (G × G)} {s : Set G}
{t : Set H} {f : G → H},
IsAddFreimanHom 2 s t f → Set.InjOn f s → A ⊆ s ×ˢ s → IsCornerFree (Prod.map f f '' A) → IsCornerFree A
Corners are preserved under 2-Freiman homomorphisms.
theorem isCorner_image E1 #
∀ {G : Type u_1} {H : Type u_2} [inst : AddCommMonoid G] [inst_1 : AddCommMonoid H] {A : Set (G × G)} {s : Set G}
{t : Set H} {f : G → H} {x₁ y₁ x₂ y₂ : G},
IsAddFreimanIso 2 s t f →
A ⊆ s ×ˢ s →
x₁ ∈ s →
y₁ ∈ s → x₂ ∈ s → y₂ ∈ s → (IsCorner (Prod.map f f '' A) (f x₁) (f y₁) (f x₂) (f y₂) ↔ IsCorner A x₁ y₁ x₂ y₂)
theorem isCornerFree_image E1 #
∀ {G : Type u_1} {H : Type u_2} [inst : AddCommMonoid G] [inst_1 : AddCommMonoid H] {A : Set (G × G)} {s : Set G}
{t : Set H} {f : G → H}, IsAddFreimanIso 2 s t f → A ⊆ s ×ˢ s → (IsCornerFree (Prod.map f f '' A) ↔ IsCornerFree A)
theorem IsCorner.of_image E1 #
∀ {G : Type u_1} {H : Type u_2} [inst : AddCommMonoid G] [inst_1 : AddCommMonoid H] {A : Set (G × G)} {s : Set G}
{t : Set H} {f : G → H} {x₁ y₁ x₂ y₂ : G},
IsAddFreimanIso 2 s t f →
A ⊆ s ×ˢ s →
x₁ ∈ s →
y₁ ∈ s → x₂ ∈ s → y₂ ∈ s → IsCorner (Prod.map f f '' A) (f x₁) (f y₁) (f x₂) (f y₂) → IsCorner A x₁ y₁ x₂ y₂
Alias of the forward direction of isCorner_image.
theorem IsCornerFree.image E1 #
∀ {G : Type u_1} {H : Type u_2} [inst : AddCommMonoid G] [inst_1 : AddCommMonoid H] {A : Set (G × G)} {s : Set G}
{t : Set H} {f : G → H}, IsAddFreimanIso 2 s t f → A ⊆ s ×ˢ s → IsCornerFree A → IsCornerFree (Prod.map f f '' A)
Alias of the reverse direction of isCornerFree_image.