The areas / V30. Combinatorics
Mathlib.Combinatorics.Additive.FreimanHom
94 declarations. Mathlib docs · Source
Freiman homomorphisms
In this file, we define Freiman homomorphisms and isomorphisms.
An n-Freiman homomorphism from A to B is a function f : α → β such that f '' A ⊆ B and
f x₁ * ... * f xₙ = f y₁ * ... * f yₙ for all x₁, ..., xₙ, y₁, ..., yₙ ∈ A such that
x₁ * ... * xₙ = y₁ * ... * yₙ. In particular, any MulHom is a Freiman homomorphism.
Note a 0- or 1-Freiman homomorphism is simply a map, thus a 2-Freiman homomorphism is the
first interesting case (and the most common). As n increases further, the property of being
an n-Freiman homomorphism between abelian groups becomes increasingly stronger.
An n-Freiman isomorphism from A to B is a function f : α → β bijective between A and B
such that f x₁ * ... * f xₙ = f y₁ * ... * f yₙ ↔ x₁ * ... * xₙ = y₁ * ... * yₙ for all
x₁, ..., xₙ, y₁, ..., yₙ ∈ A. In particular, any MulEquiv is a Freiman isomorphism.
They are of interest in additive combinatorics.
Main declarations
IsMulFreimanHom: Predicate for a function to be a multiplicative Freiman homomorphism.IsAddFreimanHom: Predicate for a function to be an additive Freiman homomorphism.IsMulFreimanIso: Predicate for a function to be a multiplicative Freiman isomorphism.IsAddFreimanIso: Predicate for a function to be an additive Freiman isomorphism.
Main results
isMulFreimanHom_two: Characterisation of2-Freiman homomorphisms.IsMulFreimanHom.mono: Ifm ≤ nandfis ann-Freiman homomorphism, then it is also anm-Freiman homomorphism.
Implementation notes
In the context of combinatorics, we are interested in Freiman homomorphisms over sets which are not
necessarily closed under addition/multiplication. This means we must parametrize them with a set in
an AddMonoid/Monoid instead of the AddMonoid/Monoid itself.
References
Yufei Zhao, 18.225: Graph Theory and Additive Combinatorics
TODO
MonoidHomClass.isMulFreimanHomcould be relaxed toMulHom.toFreimanHomby proving(s.map f).prod = (t.map f).proddirectly by induction instead of going throughf s.prod.- Affine maps are Freiman homomorphisms.
structure IsAddFreimanHom E3 #
{α : Type u_2} → {β : Type u_3} → [AddCommMonoid α] → [AddCommMonoid β] → ℕ → Set α → Set β → (α → β) → Prop
An additive n-Freiman homomorphism from a set A to a set B is a map which preserves sums
of n elements.
ctor IsAddFreimanHom.mk E0 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {n : ℕ} {A : Set α} {B : Set β}
{f : α → β},
Set.MapsTo f A B →
(∀ ⦃s t : Multiset α⦄,
(∀ ⦃x : α⦄, x ∈ s → x ∈ A) →
(∀ ⦃x : α⦄, x ∈ t → x ∈ A) →
s.card = n → t.card = n → s.sum = t.sum → (Multiset.map f s).sum = (Multiset.map f t).sum) →
IsAddFreimanHom n A B f
theorem IsAddFreimanHom.mapsTo E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {n : ℕ} {A : Set α} {B : Set β}
{f : α → β}, IsAddFreimanHom n A B f → Set.MapsTo f A B
theorem IsAddFreimanHom.map_sum_eq_map_sum E0 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {n : ℕ} {A : Set α} {B : Set β}
{f : α → β},
IsAddFreimanHom n A B f →
∀ ⦃s t : Multiset α⦄,
(∀ ⦃x : α⦄, x ∈ s → x ∈ A) →
(∀ ⦃x : α⦄, x ∈ t → x ∈ A) →
s.card = n → t.card = n → s.sum = t.sum → (Multiset.map f s).sum = (Multiset.map f t).sum
An additive n-Freiman homomorphism preserves sums of n elements.
structure IsMulFreimanHom E3 #
{α : Type u_2} → {β : Type u_3} → [CommMonoid α] → [CommMonoid β] → ℕ → Set α → Set β → (α → β) → Prop
An n-Freiman homomorphism from a set A to a set B is a map which preserves products of n
elements.
ctor IsMulFreimanHom.mk E0 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {n : ℕ} {A : Set α} {B : Set β}
{f : α → β},
Set.MapsTo f A B →
(∀ ⦃s t : Multiset α⦄,
(∀ ⦃x : α⦄, x ∈ s → x ∈ A) →
(∀ ⦃x : α⦄, x ∈ t → x ∈ A) →
s.card = n → t.card = n → s.prod = t.prod → (Multiset.map f s).prod = (Multiset.map f t).prod) →
IsMulFreimanHom n A B f
theorem IsMulFreimanHom.mapsTo E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {n : ℕ} {A : Set α} {B : Set β}
{f : α → β}, IsMulFreimanHom n A B f → Set.MapsTo f A B
theorem IsMulFreimanHom.map_prod_eq_map_prod E0 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {n : ℕ} {A : Set α} {B : Set β}
{f : α → β},
IsMulFreimanHom n A B f →
∀ ⦃s t : Multiset α⦄,
(∀ ⦃x : α⦄, x ∈ s → x ∈ A) →
(∀ ⦃x : α⦄, x ∈ t → x ∈ A) →
s.card = n → t.card = n → s.prod = t.prod → (Multiset.map f s).prod = (Multiset.map f t).prod
An n-Freiman homomorphism preserves products of n elements.
structure IsAddFreimanIso E3 #
{α : Type u_2} → {β : Type u_3} → [AddCommMonoid α] → [AddCommMonoid β] → ℕ → Set α → Set β → (α → β) → Prop
An additive n-Freiman homomorphism from a set A to a set B is a bijective map which
preserves sums of n elements.
ctor IsAddFreimanIso.mk E0 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {n : ℕ} {A : Set α} {B : Set β}
{f : α → β},
Set.BijOn f A B →
(∀ ⦃s t : Multiset α⦄,
(∀ ⦃x : α⦄, x ∈ s → x ∈ A) →
(∀ ⦃x : α⦄, x ∈ t → x ∈ A) →
s.card = n → t.card = n → ((Multiset.map f s).sum = (Multiset.map f t).sum ↔ s.sum = t.sum)) →
IsAddFreimanIso n A B f
theorem IsAddFreimanIso.bijOn E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {n : ℕ} {A : Set α} {B : Set β}
{f : α → β}, IsAddFreimanIso n A B f → Set.BijOn f A B
theorem IsAddFreimanIso.map_sum_eq_map_sum E0 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {n : ℕ} {A : Set α} {B : Set β}
{f : α → β},
IsAddFreimanIso n A B f →
∀ ⦃s t : Multiset α⦄,
(∀ ⦃x : α⦄, x ∈ s → x ∈ A) →
(∀ ⦃x : α⦄, x ∈ t → x ∈ A) →
s.card = n → t.card = n → ((Multiset.map f s).sum = (Multiset.map f t).sum ↔ s.sum = t.sum)
An additive n-Freiman homomorphism preserves sums of n elements.
structure IsMulFreimanIso E3 #
{α : Type u_2} → {β : Type u_3} → [CommMonoid α] → [CommMonoid β] → ℕ → Set α → Set β → (α → β) → Prop
An n-Freiman homomorphism from a set A to a set B is a map which preserves products of n
elements.
ctor IsMulFreimanIso.mk E0 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {n : ℕ} {A : Set α} {B : Set β}
{f : α → β},
Set.BijOn f A B →
(∀ ⦃s t : Multiset α⦄,
(∀ ⦃x : α⦄, x ∈ s → x ∈ A) →
(∀ ⦃x : α⦄, x ∈ t → x ∈ A) →
s.card = n → t.card = n → ((Multiset.map f s).prod = (Multiset.map f t).prod ↔ s.prod = t.prod)) →
IsMulFreimanIso n A B f
theorem IsMulFreimanIso.bijOn E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {n : ℕ} {A : Set α} {B : Set β}
{f : α → β}, IsMulFreimanIso n A B f → Set.BijOn f A B
theorem IsMulFreimanIso.map_prod_eq_map_prod E0 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {n : ℕ} {A : Set α} {B : Set β}
{f : α → β},
IsMulFreimanIso n A B f →
∀ ⦃s t : Multiset α⦄,
(∀ ⦃x : α⦄, x ∈ s → x ∈ A) →
(∀ ⦃x : α⦄, x ∈ t → x ∈ A) →
s.card = n → t.card = n → ((Multiset.map f s).prod = (Multiset.map f t).prod ↔ s.prod = t.prod)
An n-Freiman homomorphism preserves products of n elements.
theorem IsAddFreimanIso.isAddFreimanHom E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {A : Set α} {B : Set β} {f : α → β}
{n : ℕ}, IsAddFreimanIso n A B f → IsAddFreimanHom n A B f
theorem IsMulFreimanIso.isMulFreimanHom E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {A : Set α} {B : Set β} {f : α → β}
{n : ℕ}, IsMulFreimanIso n A B f → IsMulFreimanHom n A B f
theorem IsMulFreimanHom.congr E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {A : Set α} {B : Set β} {f₁ f₂ : α → β}
{n : ℕ}, IsMulFreimanHom n A B f₁ → Set.EqOn f₁ f₂ A → IsMulFreimanHom n A B f₂
theorem IsMulFreimanIso.congr E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {A : Set α} {B : Set β} {f₁ f₂ : α → β}
{n : ℕ}, IsMulFreimanIso n A B f₁ → Set.EqOn f₁ f₂ A → IsMulFreimanIso n A B f₂
theorem IsMulFreimanIso.symm E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {A : Set α} {B : Set β} {f : α → β}
{n : ℕ} {g : β → α}, Set.MapsTo g B A → Set.RightInvOn g f B → IsMulFreimanIso n A B f → IsMulFreimanIso n B A g
Given a Freiman isomorphism f from A to B, if g maps B into A, and is a right inverse
to f on B, then g is a Freiman isomorphism from B to A.
theorem IsAddFreimanIso.symm E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {A : Set α} {B : Set β} {f : α → β}
{n : ℕ} {g : β → α}, Set.MapsTo g B A → Set.RightInvOn g f B → IsAddFreimanIso n A B f → IsAddFreimanIso n B A g
Given an additive Freiman isomorphism f from A to B, if g maps B into A, and is a
right inverse to f on B, then g is an additive Freiman isomorphism from B to A.
theorem IsMulFreimanHom.to_isMulFreimanIso E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {A : Set α} {B : Set β} {f : α → β}
{n : ℕ} {g : β → α}, Set.InvOn g f A B → IsMulFreimanHom n A B f → IsMulFreimanHom n B A g → IsMulFreimanIso n A B f
If the inverse of a Freiman homomorphism is itself a Freiman homomorphism, then it is a Freiman isomorphism.
theorem IsAddFreimanHom.to_isAddFreimanIso E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {A : Set α} {B : Set β} {f : α → β}
{n : ℕ} {g : β → α}, Set.InvOn g f A B → IsAddFreimanHom n A B f → IsAddFreimanHom n B A g → IsAddFreimanIso n A B f
If the inverse of a Freiman homomorphism is itself a Freiman homomorphism, then it is a Freiman isomorphism.
theorem IsMulFreimanIso.invFunOn E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {A : Set α} {B : Set β} {f : α → β}
{n : ℕ}, IsMulFreimanIso n A B f → IsMulFreimanIso n B A (Function.invFunOn f A)
If f is a multiplicative Freiman isomorphism from A to B, then f.invFunOn A is
a multiplicative Freiman isomorphism from B to A.
theorem IsAddFreimanIso.invFunOn E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {A : Set α} {B : Set β} {f : α → β}
{n : ℕ}, IsAddFreimanIso n A B f → IsAddFreimanIso n B A (Function.invFunOn f A)
If f is an additive Freiman isomorphism from A to B, then f.invFunOn A is
an additive Freiman isomorphism from B to A.
theorem IsMulFreimanHom.prod_apply E0 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {A : Set α} {B : Set β} {f : α → β}
{n : ℕ},
IsMulFreimanHom n A B f →
∀ {s t : Finset α} {hsA : ↑s ⊆ A} {htA : ↑t ⊆ A},
s.card = n → t.card = n → ∏ i ∈ s, i = ∏ i ∈ t, i → ∏ i ∈ s, f i = ∏ i ∈ t, f i
A version of the Freiman homomorphism condition expressed using Finsets, for practicality.
theorem IsAddFreimanHom.sum_apply E0 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {A : Set α} {B : Set β} {f : α → β}
{n : ℕ},
IsAddFreimanHom n A B f →
∀ {s t : Finset α} {hsA : ↑s ⊆ A} {htA : ↑t ⊆ A},
s.card = n → t.card = n → ∑ i ∈ s, i = ∑ i ∈ t, i → ∑ i ∈ s, f i = ∑ i ∈ t, f i
A version of the Freiman homomorphism condition expressed using Finsets,
for practicality.
theorem IsMulFreimanHom.mul_eq_mul E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {A : Set α} {B : Set β} {f : α → β},
IsMulFreimanHom 2 A B f → ∀ {a b c d : α}, a ∈ A → b ∈ A → c ∈ A → d ∈ A → a * b = c * d → f a * f b = f c * f d
theorem IsAddFreimanHom.add_eq_add E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {A : Set α} {B : Set β} {f : α → β},
IsAddFreimanHom 2 A B f → ∀ {a b c d : α}, a ∈ A → b ∈ A → c ∈ A → d ∈ A → a + b = c + d → f a + f b = f c + f d
theorem IsMulFreimanIso.mul_eq_mul E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {A : Set α} {B : Set β} {f : α → β},
IsMulFreimanIso 2 A B f → ∀ {a b c d : α}, a ∈ A → b ∈ A → c ∈ A → d ∈ A → (f a * f b = f c * f d ↔ a * b = c * d)
theorem IsAddFreimanIso.add_eq_add E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {A : Set α} {B : Set β} {f : α → β},
IsAddFreimanIso 2 A B f → ∀ {a b c d : α}, a ∈ A → b ∈ A → c ∈ A → d ∈ A → (f a + f b = f c + f d ↔ a + b = c + d)
theorem isMulFreimanHom_two E3 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {A : Set α} {B : Set β} {f : α → β},
IsMulFreimanHom 2 A B f ↔ Set.MapsTo f A B ∧ ∀ a ∈ A, ∀ b ∈ A, ∀ c ∈ A, ∀ d ∈ A, a * b = c * d → f a * f b = f c * f d
Characterisation of 2-Freiman homomorphisms.
theorem isAddFreimanHom_two E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {A : Set α} {B : Set β} {f : α → β},
IsAddFreimanHom 2 A B f ↔ Set.MapsTo f A B ∧ ∀ a ∈ A, ∀ b ∈ A, ∀ c ∈ A, ∀ d ∈ A, a + b = c + d → f a + f b = f c + f d
Characterisation of 2-Freiman homomorphisms.
theorem isMulFreimanIso_two E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {A : Set α} {B : Set β} {f : α → β},
IsMulFreimanIso 2 A B f ↔ Set.BijOn f A B ∧ ∀ a ∈ A, ∀ b ∈ A, ∀ c ∈ A, ∀ d ∈ A, f a * f b = f c * f d ↔ a * b = c * d
Characterisation of 2-Freiman homs.
theorem isAddFreimanIso_two E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {A : Set α} {B : Set β} {f : α → β},
IsAddFreimanIso 2 A B f ↔ Set.BijOn f A B ∧ ∀ a ∈ A, ∀ b ∈ A, ∀ c ∈ A, ∀ d ∈ A, f a + f b = f c + f d ↔ a + b = c + d
Characterisation of 2-Freiman isomorphisms.
theorem isAddFreimanHom_id E1 #
∀ {α : Type u_2} [inst : AddCommMonoid α] {A₁ A₂ : Set α} {n : ℕ}, A₁ ⊆ A₂ → IsAddFreimanHom n A₁ A₂ id
theorem isMulFreimanHom_id E1 #
∀ {α : Type u_2} [inst : CommMonoid α] {A₁ A₂ : Set α} {n : ℕ}, A₁ ⊆ A₂ → IsMulFreimanHom n A₁ A₂ id
theorem isMulFreimanIso_id E1 #
∀ {α : Type u_2} [inst : CommMonoid α] {A : Set α} {n : ℕ}, IsMulFreimanIso n A A id
theorem isAddFreimanIso_id E1 #
∀ {α : Type u_2} [inst : AddCommMonoid α] {A : Set α} {n : ℕ}, IsAddFreimanIso n A A id
theorem IsMulFreimanHom.comp E1 #
∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : CommMonoid α] [inst_1 : CommMonoid β] [inst_2 : CommMonoid γ]
{A : Set α} {B : Set β} {C : Set γ} {f : α → β} {g : β → γ} {n : ℕ},
IsMulFreimanHom n B C g → IsMulFreimanHom n A B f → IsMulFreimanHom n A C (g ∘ f)
theorem IsAddFreimanHom.comp E1 #
∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β]
[inst_2 : AddCommMonoid γ] {A : Set α} {B : Set β} {C : Set γ} {f : α → β} {g : β → γ} {n : ℕ},
IsAddFreimanHom n B C g → IsAddFreimanHom n A B f → IsAddFreimanHom n A C (g ∘ f)
theorem IsMulFreimanIso.comp E1 #
∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : CommMonoid α] [inst_1 : CommMonoid β] [inst_2 : CommMonoid γ]
{A : Set α} {B : Set β} {C : Set γ} {f : α → β} {g : β → γ} {n : ℕ},
IsMulFreimanIso n B C g → IsMulFreimanIso n A B f → IsMulFreimanIso n A C (g ∘ f)
theorem IsAddFreimanIso.comp E1 #
∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β]
[inst_2 : AddCommMonoid γ] {A : Set α} {B : Set β} {C : Set γ} {f : α → β} {g : β → γ} {n : ℕ},
IsAddFreimanIso n B C g → IsAddFreimanIso n A B f → IsAddFreimanIso n A C (g ∘ f)
theorem IsMulFreimanHom.subset E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {A₁ A₂ : Set α} {B₁ B₂ : Set β}
{f : α → β} {n : ℕ}, A₁ ⊆ A₂ → IsMulFreimanHom n A₂ B₂ f → Set.MapsTo f A₁ B₁ → IsMulFreimanHom n A₁ B₁ f
theorem IsAddFreimanHom.subset E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {A₁ A₂ : Set α} {B₁ B₂ : Set β}
{f : α → β} {n : ℕ}, A₁ ⊆ A₂ → IsAddFreimanHom n A₂ B₂ f → Set.MapsTo f A₁ B₁ → IsAddFreimanHom n A₁ B₁ f
theorem IsAddFreimanHom.superset E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {A : Set α} {B₁ B₂ : Set β}
{f : α → β} {n : ℕ}, B₁ ⊆ B₂ → IsAddFreimanHom n A B₁ f → IsAddFreimanHom n A B₂ f
theorem IsMulFreimanHom.superset E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {A : Set α} {B₁ B₂ : Set β} {f : α → β}
{n : ℕ}, B₁ ⊆ B₂ → IsMulFreimanHom n A B₁ f → IsMulFreimanHom n A B₂ f
theorem IsAddFreimanIso.subset E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {A₁ A₂ : Set α} {B₁ B₂ : Set β}
{f : α → β} {n : ℕ}, A₁ ⊆ A₂ → IsAddFreimanIso n A₂ B₂ f → Set.BijOn f A₁ B₁ → IsAddFreimanIso n A₁ B₁ f
theorem IsMulFreimanIso.subset E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {A₁ A₂ : Set α} {B₁ B₂ : Set β}
{f : α → β} {n : ℕ}, A₁ ⊆ A₂ → IsMulFreimanIso n A₂ B₂ f → Set.BijOn f A₁ B₁ → IsMulFreimanIso n A₁ B₁ f
theorem isAddFreimanHom_const E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {A : Set α} {B : Set β} {n : ℕ}
{b : β}, b ∈ B → IsAddFreimanHom n A B fun x ↦ b
theorem isMulFreimanHom_const E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {A : Set α} {B : Set β} {n : ℕ} {b : β},
b ∈ B → IsMulFreimanHom n A B fun x ↦ b
theorem isMulFreimanHom_zero_iff E0 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {A : Set α} {B : Set β} {f : α → β},
IsMulFreimanHom 0 A B f ↔ Set.MapsTo f A B
theorem isAddFreimanHom_zero_iff E0 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {A : Set α} {B : Set β} {f : α → β},
IsAddFreimanHom 0 A B f ↔ Set.MapsTo f A B
theorem isAddFreimanIso_zero_iff E0 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {A : Set α} {B : Set β} {f : α → β},
IsAddFreimanIso 0 A B f ↔ Set.BijOn f A B
theorem isMulFreimanIso_zero_iff E0 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {A : Set α} {B : Set β} {f : α → β},
IsMulFreimanIso 0 A B f ↔ Set.BijOn f A B
theorem isMulFreimanHom_one_iff E0 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {A : Set α} {B : Set β} {f : α → β},
IsMulFreimanHom 1 A B f ↔ Set.MapsTo f A B
theorem isAddFreimanHom_one_iff E0 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {A : Set α} {B : Set β} {f : α → β},
IsAddFreimanHom 1 A B f ↔ Set.MapsTo f A B
theorem isAddFreimanIso_one_iff E0 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {A : Set α} {B : Set β} {f : α → β},
IsAddFreimanIso 1 A B f ↔ Set.BijOn f A B
theorem isMulFreimanIso_one_iff E0 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {A : Set α} {B : Set β} {f : α → β},
IsMulFreimanIso 1 A B f ↔ Set.BijOn f A B
theorem isAddFreimanHom_empty E0 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {B : Set β} {f : α → β} {n : ℕ},
IsAddFreimanHom n ∅ B f
theorem isMulFreimanHom_empty E0 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {B : Set β} {f : α → β} {n : ℕ},
IsMulFreimanHom n ∅ B f
theorem isAddFreimanIso_empty E0 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {f : α → β} {n : ℕ},
IsAddFreimanIso n ∅ ∅ f
theorem isMulFreimanIso_empty E0 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {f : α → β} {n : ℕ},
IsMulFreimanIso n ∅ ∅ f
theorem IsAddFreimanHom.add E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {A : Set α} {B₁ B₂ : Set β}
{f₁ f₂ : α → β} {n : ℕ},
IsAddFreimanHom n A B₁ f₁ → IsAddFreimanHom n A B₂ f₂ → IsAddFreimanHom n A (B₁ + B₂) (f₁ + f₂)
theorem IsMulFreimanHom.mul E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {A : Set α} {B₁ B₂ : Set β}
{f₁ f₂ : α → β} {n : ℕ},
IsMulFreimanHom n A B₁ f₁ → IsMulFreimanHom n A B₂ f₂ → IsMulFreimanHom n A (B₁ * B₂) (f₁ * f₂)
theorem AddHomClass.isAddFreimanHom E1 #
∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {A : Set α}
{B : Set β} {n : ℕ} [inst_2 : FunLike F α β] [AddHomClass F α β] (f : F),
Set.MapsTo (⇑f) A B → IsAddFreimanHom n A B ⇑f
theorem MulHomClass.isMulFreimanHom E1 #
∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {A : Set α} {B : Set β}
{n : ℕ} [inst_2 : FunLike F α β] [MulHomClass F α β] (f : F), Set.MapsTo (⇑f) A B → IsMulFreimanHom n A B ⇑f
theorem MulEquivClass.isMulFreimanIso E1 #
∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {A : Set α} {B : Set β}
{n : ℕ} [inst_2 : EquivLike F α β] [MulEquivClass F α β] (f : F), Set.BijOn (⇑f) A B → IsMulFreimanIso n A B ⇑f
theorem AddEquivClass.isAddFreimanIso E1 #
∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {A : Set α}
{B : Set β} {n : ℕ} [inst_2 : EquivLike F α β] [AddEquivClass F α β] (f : F),
Set.BijOn (⇑f) A B → IsAddFreimanIso n A B ⇑f
theorem IsAddFreimanHom.subtypeVal E1 #
∀ {α : Type u_2} [inst : AddCommMonoid α] {n : ℕ} {S : Type u_5} [inst_1 : SetLike S α] [inst_2 : AddSubmonoidClass S α]
{s : S}, IsAddFreimanHom n Set.univ Set.univ Subtype.val
theorem IsMulFreimanHom.subtypeVal E1 #
∀ {α : Type u_2} [inst : CommMonoid α] {n : ℕ} {S : Type u_5} [inst_1 : SetLike S α] [inst_2 : SubmonoidClass S α]
{s : S}, IsMulFreimanHom n Set.univ Set.univ Subtype.val
theorem isAddFreimanHom_antitone E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCancelCommMonoid β] {A : Set α} {B : Set β}
{f : α → β}, Antitone fun x ↦ IsAddFreimanHom x A B f
theorem isMulFreimanHom_antitone E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CancelCommMonoid β] {A : Set α} {B : Set β} {f : α → β},
Antitone fun x ↦ IsMulFreimanHom x A B f
theorem IsMulFreimanHom.mono E3 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CancelCommMonoid β] {A : Set α} {B : Set β} {f : α → β}
{m n : ℕ}, m ≤ n → IsMulFreimanHom n A B f → IsMulFreimanHom m A B f
theorem IsAddFreimanHom.mono E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCancelCommMonoid β] {A : Set α} {B : Set β}
{f : α → β} {m n : ℕ}, m ≤ n → IsAddFreimanHom n A B f → IsAddFreimanHom m A B f
theorem IsAddFreimanIso.mono E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCancelCommMonoid α] [inst_1 : AddCancelCommMonoid β] {A : Set α} {B : Set β}
{f : α → β} {m n : ℕ} {hmn : m ≤ n}, IsAddFreimanIso n A B f → IsAddFreimanIso m A B f
theorem IsMulFreimanIso.mono E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CancelCommMonoid α] [inst_1 : CancelCommMonoid β] {A : Set α} {B : Set β}
{f : α → β} {m n : ℕ} {hmn : m ≤ n}, IsMulFreimanIso n A B f → IsMulFreimanIso m A B f
theorem IsAddFreimanHom.neg E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : SubtractionCommMonoid β] {A : Set α} {B : Set β}
{f : α → β} {n : ℕ}, IsAddFreimanHom n A B f → IsAddFreimanHom n A (-B) (-f)
theorem IsMulFreimanHom.inv E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : DivisionCommMonoid β] {A : Set α} {B : Set β}
{f : α → β} {n : ℕ}, IsMulFreimanHom n A B f → IsMulFreimanHom n A B⁻¹ f⁻¹
theorem IsAddFreimanHom.sub E1 #
∀ {α : Type u_2} [inst : AddCommMonoid α] {A : Set α} {n : ℕ} {β : Type u_5} [inst_1 : SubtractionCommMonoid β]
{B₁ B₂ : Set β} {f₁ f₂ : α → β},
IsAddFreimanHom n A B₁ f₁ → IsAddFreimanHom n A B₂ f₂ → IsAddFreimanHom n A (B₁ - B₂) (f₁ - f₂)
theorem IsMulFreimanHom.div E1 #
∀ {α : Type u_2} [inst : CommMonoid α] {A : Set α} {n : ℕ} {β : Type u_5} [inst_1 : DivisionCommMonoid β]
{B₁ B₂ : Set β} {f₁ f₂ : α → β},
IsMulFreimanHom n A B₁ f₁ → IsMulFreimanHom n A B₂ f₂ → IsMulFreimanHom n A (B₁ / B₂) (f₁ / f₂)
theorem IsAddFreimanHom.fst E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {A : Set α} {B : Set β} {n : ℕ},
IsAddFreimanHom n (A ×ˢ B) A Prod.fst
theorem IsMulFreimanHom.fst E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {A : Set α} {B : Set β} {n : ℕ},
IsMulFreimanHom n (A ×ˢ B) A Prod.fst
theorem IsAddFreimanHom.snd E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] {A : Set α} {B : Set β} {n : ℕ},
IsAddFreimanHom n (A ×ˢ B) B Prod.snd
theorem IsMulFreimanHom.snd E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] {A : Set α} {B : Set β} {n : ℕ},
IsMulFreimanHom n (A ×ˢ B) B Prod.snd
theorem IsAddFreimanHom.prodMk E1 #
∀ {α : Type u_5} {β₁ : Type u_6} {β₂ : Type u_7} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β₁]
[inst_2 : AddCommMonoid β₂] {A : Set α} {B₁ : Set β₁} {B₂ : Set β₂} {f₁ : α → β₁} {f₂ : α → β₂} {n : ℕ},
IsAddFreimanHom n A B₁ f₁ → IsAddFreimanHom n A B₂ f₂ → IsAddFreimanHom n A (B₁ ×ˢ B₂) fun x ↦ (f₁ x, f₂ x)
theorem IsMulFreimanHom.prodMk E1 #
∀ {α : Type u_5} {β₁ : Type u_6} {β₂ : Type u_7} [inst : CommMonoid α] [inst_1 : CommMonoid β₁] [inst_2 : CommMonoid β₂]
{A : Set α} {B₁ : Set β₁} {B₂ : Set β₂} {f₁ : α → β₁} {f₂ : α → β₂} {n : ℕ},
IsMulFreimanHom n A B₁ f₁ → IsMulFreimanHom n A B₂ f₂ → IsMulFreimanHom n A (B₁ ×ˢ B₂) fun x ↦ (f₁ x, f₂ x)
theorem IsAddFreimanHom.prodMap E1 #
∀ {α₁ : Type u_5} {α₂ : Type u_6} {β₁ : Type u_7} {β₂ : Type u_8} [inst : AddCommMonoid α₁] [inst_1 : AddCommMonoid α₂]
[inst_2 : AddCommMonoid β₁] [inst_3 : AddCommMonoid β₂] {A₁ : Set α₁} {A₂ : Set α₂} {B₁ : Set β₁} {B₂ : Set β₂}
{f₁ : α₁ → β₁} {f₂ : α₂ → β₂} {n : ℕ},
IsAddFreimanHom n A₁ B₁ f₁ → IsAddFreimanHom n A₂ B₂ f₂ → IsAddFreimanHom n (A₁ ×ˢ A₂) (B₁ ×ˢ B₂) (Prod.map f₁ f₂)
theorem IsMulFreimanHom.prodMap E1 #
∀ {α₁ : Type u_5} {α₂ : Type u_6} {β₁ : Type u_7} {β₂ : Type u_8} [inst : CommMonoid α₁] [inst_1 : CommMonoid α₂]
[inst_2 : CommMonoid β₁] [inst_3 : CommMonoid β₂] {A₁ : Set α₁} {A₂ : Set α₂} {B₁ : Set β₁} {B₂ : Set β₂}
{f₁ : α₁ → β₁} {f₂ : α₂ → β₂} {n : ℕ},
IsMulFreimanHom n A₁ B₁ f₁ → IsMulFreimanHom n A₂ B₂ f₂ → IsMulFreimanHom n (A₁ ×ˢ A₂) (B₁ ×ˢ B₂) (Prod.map f₁ f₂)
theorem IsAddFreimanIso.prodMap E1 #
∀ {α₁ : Type u_5} {α₂ : Type u_6} {β₁ : Type u_7} {β₂ : Type u_8} [inst : AddCommMonoid α₁] [inst_1 : AddCommMonoid α₂]
[inst_2 : AddCommMonoid β₁] [inst_3 : AddCommMonoid β₂] {A₁ : Set α₁} {A₂ : Set α₂} {B₁ : Set β₁} {B₂ : Set β₂}
{f₁ : α₁ → β₁} {f₂ : α₂ → β₂} {n : ℕ},
IsAddFreimanIso n A₁ B₁ f₁ → IsAddFreimanIso n A₂ B₂ f₂ → IsAddFreimanIso n (A₁ ×ˢ A₂) (B₁ ×ˢ B₂) (Prod.map f₁ f₂)
theorem IsMulFreimanIso.prodMap E1 #
∀ {α₁ : Type u_5} {α₂ : Type u_6} {β₁ : Type u_7} {β₂ : Type u_8} [inst : CommMonoid α₁] [inst_1 : CommMonoid α₂]
[inst_2 : CommMonoid β₁] [inst_3 : CommMonoid β₂] {A₁ : Set α₁} {A₂ : Set α₂} {B₁ : Set β₁} {B₂ : Set β₂}
{f₁ : α₁ → β₁} {f₂ : α₂ → β₂} {n : ℕ},
IsMulFreimanIso n A₁ B₁ f₁ → IsMulFreimanIso n A₂ B₂ f₂ → IsMulFreimanIso n (A₁ ×ˢ A₂) (B₁ ×ˢ B₂) (Prod.map f₁ f₂)
theorem Fin.isAddFreimanIso_Iic E1 #
∀ {k m n : ℕ}, m ≠ 0 → m * k ≤ n → IsAddFreimanIso m (Set.Iic ↑k) (Set.Iic k) Fin.val
No wrap-around principle.
The first k + 1 elements of Fin (n + 1) are m-Freiman isomorphic to the first k + 1 elements
of ℕ assuming there is no wrap-around.
theorem Fin.isAddFreimanIso_Iio E1 #
∀ {k m n : ℕ}, m ≠ 0 → m * k ≤ n → IsAddFreimanIso m (Set.Iio ↑k) (Set.Iio k) Fin.val
No wrap-around principle.
The first k elements of Fin (n + 1) are m-Freiman isomorphic to the first k elements of ℕ
assuming there is no wrap-around.