The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V05. Groups

Mathlib.Algebra.Group.UniqueProds.Basic

99 declarations. Mathlib docs · Source

Unique products and related notions

A group G has unique products if for any two non-empty finite subsets A, B ⊆ G, there is an element g ∈ A * B that can be written uniquely as a product of an element of A and an element of B. We call the formalization this property UniqueProds. Since the condition requires no property of the group operation, we define it for a Type simply satisfying Mul. We also introduce the analogous "additive" companion, UniqueSums, and link the two so that to_additive converts UniqueProds into UniqueSums.

A common way of proving that a group satisfies the UniqueProds/Sums property is by assuming the existence of some kind of ordering on the group that is well-behaved with respect to the group operation and showing that minima/maxima are the "unique products/sums". However, the order is just a convenience and is not part of the UniqueProds/Sums setup.

Here you can see several examples of Types that have UniqueSums/Prods (inferInstance uses Covariant.to_uniqueProds_left and Covariant.to_uniqueSums_left).

import Mathlib.Algebra.Group.UniqueProds.Basic
import Mathlib.Basic.Real.Basic
import Mathlib.Data.PNat.Basic

example : UniqueSums ℕ   := inferInstance
example : UniqueSums ℕ+  := inferInstance
example : UniqueSums ℤ   := inferInstance
example : UniqueSums ℚ   := inferInstance
example : UniqueSums ℝ   := inferInstance
example : UniqueProds ℕ+ := inferInstance

Use in (Add)MonoidAlgebras

UniqueProds/Sums allow to decouple certain arguments about (Add)MonoidAlgebras into an argument about the grading type and then a generic statement of the form "look at the coefficient of the 'unique product/sum'". The file Algebra/MonoidAlgebra/NoZeroDivisors contains several examples of this use.

Two theorems in [Andrzej Strojnowski, A note on u.p. groups][Strojnowski1980]

theorem MulHom.mk.congr_simp E1 #

∀ {M : Type u_10} {N : Type u_11} [inst : Mul M] [inst_1 : Mul N] (toFun toFun_1 : M → N) (e_toFun : toFun = toFun_1)
  (map_mul' : ∀ (x y : M), toFun (x * y) = toFun x * toFun y),
  { toFun := toFun, map_mul' := map_mul' } = { toFun := toFun_1, map_mul' := ⋯ }

def UniqueMul E1 #

{G : Type u_1} → [Mul G] → Finset G → Finset G → G → G → Prop

Let G be a Type with multiplication, let A B : Finset G be finite subsets and let a0 b0 : G be two elements. UniqueMul A B a0 b0 asserts a0 * b0 can be written in at most one way as a product of an element of A and an element of B.

def UniqueAdd E1 #

{G : Type u_1} → [Add G] → Finset G → Finset G → G → G → Prop

Let G be a Type with addition, let A B : Finset G be finite subsets and let a0 b0 : G be two elements. UniqueAdd A B a0 b0 asserts a0 + b0 can be written in at most one way as a sum of an element from A and an element from B.

theorem UniqueMul.mono E1 #

∀ {G : Type u_1} [inst : Mul G] {A B : Finset G} {a0 b0 : G} {A' B' : Finset G},
  A ⊆ A' → B ⊆ B' → UniqueMul A' B' a0 b0 → UniqueMul A B a0 b0

theorem UniqueAdd.mono E1 #

∀ {G : Type u_1} [inst : Add G] {A B : Finset G} {a0 b0 : G} {A' B' : Finset G},
  A ⊆ A' → B ⊆ B' → UniqueAdd A' B' a0 b0 → UniqueAdd A B a0 b0

theorem UniqueAdd.of_subsingleton E0 #

∀ {G : Type u_1} [inst : Add G] {A B : Finset G} {a0 b0 : G} [Subsingleton G], UniqueAdd A B a0 b0

theorem UniqueMul.of_subsingleton E0 #

∀ {G : Type u_1} [inst : Mul G] {A B : Finset G} {a0 b0 : G} [Subsingleton G], UniqueMul A B a0 b0

theorem UniqueMul.of_card_le_one E1 #

∀ {G : Type u_1} [inst : Mul G] {A B : Finset G},
  A.Nonempty → B.Nonempty → A.card ≤ 1 → B.card ≤ 1 → ∃ a ∈ A, ∃ b ∈ B, UniqueMul A B a b

theorem UniqueAdd.of_card_le_one E1 #

∀ {G : Type u_1} [inst : Add G] {A B : Finset G},
  A.Nonempty → B.Nonempty → A.card ≤ 1 → B.card ≤ 1 → ∃ a ∈ A, ∃ b ∈ B, UniqueAdd A B a b

theorem UniqueAdd.mt E1 #

∀ {G : Type u_1} [inst : Add G] {A B : Finset G} {a0 b0 : G},
  UniqueAdd A B a0 b0 → ∀ ⦃a b : G⦄, a ∈ A → b ∈ B → a ≠ a0 ∨ b ≠ b0 → a + b ≠ a0 + b0

theorem UniqueMul.mt E1 #

∀ {G : Type u_1} [inst : Mul G] {A B : Finset G} {a0 b0 : G},
  UniqueMul A B a0 b0 → ∀ ⦃a b : G⦄, a ∈ A → b ∈ B → a ≠ a0 ∨ b ≠ b0 → a * b ≠ a0 * b0

theorem UniqueAdd.subsingleton E1 #

∀ {G : Type u_1} [inst : Add G] {A B : Finset G} {a0 b0 : G},
  UniqueAdd A B a0 b0 → Subsingleton { ab // ab.1 ∈ A ∧ ab.2 ∈ B ∧ ab.1 + ab.2 = a0 + b0 }

theorem UniqueMul.subsingleton E1 #

∀ {G : Type u_1} [inst : Mul G] {A B : Finset G} {a0 b0 : G},
  UniqueMul A B a0 b0 → Subsingleton { ab // ab.1 ∈ A ∧ ab.2 ∈ B ∧ ab.1 * ab.2 = a0 * b0 }

theorem UniqueAdd.set_subsingleton E1 #

∀ {G : Type u_1} [inst : Add G] {A B : Finset G} {a0 b0 : G},
  UniqueAdd A B a0 b0 → {ab | ab.1 ∈ A ∧ ab.2 ∈ B ∧ ab.1 + ab.2 = a0 + b0}.Subsingleton

theorem UniqueMul.set_subsingleton E1 #

∀ {G : Type u_1} [inst : Mul G] {A B : Finset G} {a0 b0 : G},
  UniqueMul A B a0 b0 → {ab | ab.1 ∈ A ∧ ab.2 ∈ B ∧ ab.1 * ab.2 = a0 * b0}.Subsingleton

theorem UniqueMul.iff_existsUnique E1 #

∀ {G : Type u_1} [inst : Mul G] {A B : Finset G} {a0 b0 : G},
  a0 ∈ A → b0 ∈ B → (UniqueMul A B a0 b0 ↔ ∃! ab, ab ∈ A ×ˢ B ∧ ab.1 * ab.2 = a0 * b0)

theorem UniqueAdd.iff_existsUnique E1 #

∀ {G : Type u_1} [inst : Add G] {A B : Finset G} {a0 b0 : G},
  a0 ∈ A → b0 ∈ B → (UniqueAdd A B a0 b0 ↔ ∃! ab, ab ∈ A ×ˢ B ∧ ab.1 + ab.2 = a0 + b0)

theorem UniqueMul.iff_card_le_one E1 #

∀ {G : Type u_1} [inst : Mul G] {A B : Finset G} {a0 b0 : G} [inst_1 : DecidableEq G],
  a0 ∈ A → b0 ∈ B → (UniqueMul A B a0 b0 ↔ {p ∈ A ×ˢ B | p.1 * p.2 = a0 * b0}.card ≤ 1)

theorem UniqueAdd.iff_card_le_one E1 #

∀ {G : Type u_1} [inst : Add G] {A B : Finset G} {a0 b0 : G} [inst_1 : DecidableEq G],
  a0 ∈ A → b0 ∈ B → (UniqueAdd A B a0 b0 ↔ {p ∈ A ×ˢ B | p.1 + p.2 = a0 + b0}.card ≤ 1)

theorem UniqueMul.exists_iff_exists_existsUnique E1 #

∀ {G : Type u_1} [inst : Mul G] {A B : Finset G},
  (∃ a0 b0, a0 ∈ A ∧ b0 ∈ B ∧ UniqueMul A B a0 b0) ↔ ∃ g, ∃! ab, ab ∈ A ×ˢ B ∧ ab.1 * ab.2 = g

theorem UniqueAdd.exists_iff_exists_existsUnique E1 #

∀ {G : Type u_1} [inst : Add G] {A B : Finset G},
  (∃ a0 b0, a0 ∈ A ∧ b0 ∈ B ∧ UniqueAdd A B a0 b0) ↔ ∃ g, ∃! ab, ab ∈ A ×ˢ B ∧ ab.1 + ab.2 = g

theorem UniqueMul.mulHom_preimage E1 #

∀ {G : Type u_1} {H : Type u_2} [inst : Mul G] [inst_1 : Mul H] (f : G →ₙ* H) (hf : Function.Injective ⇑f) (a0 b0 : G)
  {A B : Finset H}, UniqueMul A B (f a0) (f b0) → UniqueMul (A.preimage ⇑f ⋯) (B.preimage ⇑f ⋯) a0 b0

UniqueMul is preserved by inverse images under injective, multiplicative maps.

theorem UniqueAdd.addHom_preimage E1 #

∀ {G : Type u_1} {H : Type u_2} [inst : Add G] [inst_1 : Add H] (f : G →ₙ+ H) (hf : Function.Injective ⇑f) (a0 b0 : G)
  {A B : Finset H}, UniqueAdd A B (f a0) (f b0) → UniqueAdd (A.preimage ⇑f ⋯) (B.preimage ⇑f ⋯) a0 b0

UniqueAdd is preserved by inverse images under injective, additive maps.

theorem UniqueMul.of_mulHom_image E1 #

∀ {G : Type u_1} {H : Type u_2} [inst : Mul G] [inst_1 : Mul H] {A B : Finset G} {a0 b0 : G} [inst_2 : DecidableEq H]
  (f : G →ₙ* H),
  (∀ ⦃a b c d : G⦄, a * b = c * d → f a = f c ∧ f b = f d → a = c ∧ b = d) →
    UniqueMul (Finset.image (⇑f) A) (Finset.image (⇑f) B) (f a0) (f b0) → UniqueMul A B a0 b0

theorem UniqueAdd.of_addHom_image E1 #

∀ {G : Type u_1} {H : Type u_2} [inst : Add G] [inst_1 : Add H] {A B : Finset G} {a0 b0 : G} [inst_2 : DecidableEq H]
  (f : G →ₙ+ H),
  (∀ ⦃a b c d : G⦄, a + b = c + d → f a = f c ∧ f b = f d → a = c ∧ b = d) →
    UniqueAdd (Finset.image (⇑f) A) (Finset.image (⇑f) B) (f a0) (f b0) → UniqueAdd A B a0 b0

theorem UniqueMul.mulHom_image_iff E0 #

∀ {G : Type u_1} {H : Type u_2} [inst : Mul G] [inst_1 : Mul H] {A B : Finset G} {a0 b0 : G} [inst_2 : DecidableEq H]
  (f : G →ₙ* H),
  Function.Injective ⇑f → (UniqueMul (Finset.image (⇑f) A) (Finset.image (⇑f) B) (f a0) (f b0) ↔ UniqueMul A B a0 b0)

Unique_Mul is preserved under multiplicative maps that are injective.

See UniqueMul.mulHom_map_iff for a version with swapped bundling.

theorem UniqueAdd.addHom_image_iff E0 #

∀ {G : Type u_1} {H : Type u_2} [inst : Add G] [inst_1 : Add H] {A B : Finset G} {a0 b0 : G} [inst_2 : DecidableEq H]
  (f : G →ₙ+ H),
  Function.Injective ⇑f → (UniqueAdd (Finset.image (⇑f) A) (Finset.image (⇑f) B) (f a0) (f b0) ↔ UniqueAdd A B a0 b0)

UniqueAdd is preserved under additive maps that are injective.

See UniqueAdd.addHom_map_iff for a version with swapped bundling.

theorem UniqueMul.mulHom_map_iff E0 #

∀ {G : Type u_1} {H : Type u_2} [inst : Mul G] [inst_1 : Mul H] {A B : Finset G} {a0 b0 : G} (f : G ↪ H),
  (∀ (x y : G), f (x * y) = f x * f y) →
    (UniqueMul (Finset.map f A) (Finset.map f B) (f a0) (f b0) ↔ UniqueMul A B a0 b0)

UniqueMul is preserved under embeddings that are multiplicative.

See UniqueMul.mulHom_image_iff for a version with swapped bundling.

theorem UniqueAdd.addHom_map_iff E0 #

∀ {G : Type u_1} {H : Type u_2} [inst : Add G] [inst_1 : Add H] {A B : Finset G} {a0 b0 : G} (f : G ↪ H),
  (∀ (x y : G), f (x + y) = f x + f y) →
    (UniqueAdd (Finset.map f A) (Finset.map f B) (f a0) (f b0) ↔ UniqueAdd A B a0 b0)

UniqueAdd is preserved under embeddings that are additive.

See UniqueAdd.addHom_image_iff for a version with swapped bundling.

theorem UniqueMul.of_mulOpposite E1 #

∀ {G : Type u_1} [inst : Mul G] {A B : Finset G} {a0 b0 : G},
  UniqueMul (Finset.map { toFun := MulOpposite.op, inj' := ⋯ } B) (Finset.map { toFun := MulOpposite.op, inj' := ⋯ } A)
      (MulOpposite.op b0) (MulOpposite.op a0) →
    UniqueMul A B a0 b0

theorem UniqueAdd.of_addOpposite E1 #

∀ {G : Type u_1} [inst : Add G] {A B : Finset G} {a0 b0 : G},
  UniqueAdd (Finset.map { toFun := AddOpposite.op, inj' := ⋯ } B) (Finset.map { toFun := AddOpposite.op, inj' := ⋯ } A)
      (AddOpposite.op b0) (AddOpposite.op a0) →
    UniqueAdd A B a0 b0

theorem UniqueMul.to_mulOpposite E1 #

∀ {G : Type u_1} [inst : Mul G] {A B : Finset G} {a0 b0 : G},
  UniqueMul A B a0 b0 →
    UniqueMul (Finset.map { toFun := MulOpposite.op, inj' := ⋯ } B)
      (Finset.map { toFun := MulOpposite.op, inj' := ⋯ } A) (MulOpposite.op b0) (MulOpposite.op a0)

theorem UniqueAdd.to_addOpposite E1 #

∀ {G : Type u_1} [inst : Add G] {A B : Finset G} {a0 b0 : G},
  UniqueAdd A B a0 b0 →
    UniqueAdd (Finset.map { toFun := AddOpposite.op, inj' := ⋯ } B)
      (Finset.map { toFun := AddOpposite.op, inj' := ⋯ } A) (AddOpposite.op b0) (AddOpposite.op a0)

theorem UniqueAdd.iff_addOpposite E1 #

∀ {G : Type u_1} [inst : Add G] {A B : Finset G} {a0 b0 : G},
  UniqueAdd (Finset.map { toFun := AddOpposite.op, inj' := ⋯ } B) (Finset.map { toFun := AddOpposite.op, inj' := ⋯ } A)
      (AddOpposite.op b0) (AddOpposite.op a0) ↔
    UniqueAdd A B a0 b0

theorem UniqueMul.iff_mulOpposite E1 #

∀ {G : Type u_1} [inst : Mul G] {A B : Finset G} {a0 b0 : G},
  UniqueMul (Finset.map { toFun := MulOpposite.op, inj' := ⋯ } B) (Finset.map { toFun := MulOpposite.op, inj' := ⋯ } A)
      (MulOpposite.op b0) (MulOpposite.op a0) ↔
    UniqueMul A B a0 b0

theorem UniqueMul.of_image_filter E1 #

∀ {G : Type u_1} {H : Type u_2} [inst : Mul G] [inst_1 : Mul H] [inst_2 : DecidableEq H] (f : G →ₙ* H) {A B : Finset G}
  {aG bG : G} {aH bH : H},
  f aG = aH →
    f bG = bH →
      UniqueMul (Finset.image (⇑f) A) (Finset.image (⇑f) B) aH bH →
        UniqueMul ({a ∈ A | f a = aH}) ({b ∈ B | f b = bH}) aG bG → UniqueMul A B aG bG

theorem UniqueAdd.of_image_filter E1 #

∀ {G : Type u_1} {H : Type u_2} [inst : Add G] [inst_1 : Add H] [inst_2 : DecidableEq H] (f : G →ₙ+ H) {A B : Finset G}
  {aG bG : G} {aH bH : H},
  f aG = aH →
    f bG = bH →
      UniqueAdd (Finset.image (⇑f) A) (Finset.image (⇑f) B) aH bH →
        UniqueAdd ({a ∈ A | f a = aH}) ({b ∈ B | f b = bH}) aG bG → UniqueAdd A B aG bG

class UniqueSums E1 #

(G : Type u_1) → [Add G] → Prop

Let G be a Type with addition. UniqueSums G asserts that any two non-empty finite subsets of G have the UniqueAdd property, with respect to some element of their sum A + B.

ctor UniqueSums.mk E0 #

∀ {G : Type u_1} [inst : Add G],
  (∀ {A B : Finset G}, A.Nonempty → B.Nonempty → ∃ a0 ∈ A, ∃ b0 ∈ B, UniqueAdd A B a0 b0) → UniqueSums G

theorem UniqueSums.uniqueAdd_of_nonempty E1 #

∀ {G : Type u_1} {inst : Add G} [self : UniqueSums G] {A B : Finset G},
  A.Nonempty → B.Nonempty → ∃ a0 ∈ A, ∃ b0 ∈ B, UniqueAdd A B a0 b0

For A B two nonempty finite sets, there always exist a0 ∈ A, b0 ∈ B such that UniqueAdd A B a0 b0

class UniqueProds E1 #

(G : Type u_1) → [Mul G] → Prop

Let G be a Type with multiplication. UniqueProds G asserts that any two non-empty finite subsets of G have the UniqueMul property, with respect to some element of their product A * B.

ctor UniqueProds.mk E0 #

∀ {G : Type u_1} [inst : Mul G],
  (∀ {A B : Finset G}, A.Nonempty → B.Nonempty → ∃ a0 ∈ A, ∃ b0 ∈ B, UniqueMul A B a0 b0) → UniqueProds G

theorem UniqueProds.uniqueMul_of_nonempty E1 #

∀ {G : Type u_1} {inst : Mul G} [self : UniqueProds G] {A B : Finset G},
  A.Nonempty → B.Nonempty → ∃ a0 ∈ A, ∃ b0 ∈ B, UniqueMul A B a0 b0

For A B two nonempty finite sets, there always exist a0 ∈ A, b0 ∈ B such that UniqueMul A B a0 b0

class TwoUniqueSums E1 #

(G : Type u_1) → [Add G] → Prop

Let G be a Type with addition. TwoUniqueSums G asserts that any two non-empty finite subsets of G, at least one of which is not a singleton, possesses at least two pairs of elements satisfying the UniqueAdd property.

ctor TwoUniqueSums.mk E0 #

∀ {G : Type u_1} [inst : Add G],
  (∀ {A B : Finset G},
      1 < A.card * B.card → ∃ p1 ∈ A ×ˢ B, ∃ p2 ∈ A ×ˢ B, p1 ≠ p2 ∧ UniqueAdd A B p1.1 p1.2 ∧ UniqueAdd A B p2.1 p2.2) →
    TwoUniqueSums G

theorem TwoUniqueSums.uniqueAdd_of_one_lt_card E1 #

∀ {G : Type u_1} {inst : Add G} [self : TwoUniqueSums G] {A B : Finset G},
  1 < A.card * B.card → ∃ p1 ∈ A ×ˢ B, ∃ p2 ∈ A ×ˢ B, p1 ≠ p2 ∧ UniqueAdd A B p1.1 p1.2 ∧ UniqueAdd A B p2.1 p2.2

For A B two finite sets whose product has cardinality at least 2, we can find at least two unique pairs.

class TwoUniqueProds E1 #

(G : Type u_1) → [Mul G] → Prop

Let G be a Type with multiplication. TwoUniqueProds G asserts that any two non-empty finite subsets of G, at least one of which is not a singleton, possesses at least two pairs of elements satisfying the UniqueMul property.

ctor TwoUniqueProds.mk E0 #

∀ {G : Type u_1} [inst : Mul G],
  (∀ {A B : Finset G},
      1 < A.card * B.card → ∃ p1 ∈ A ×ˢ B, ∃ p2 ∈ A ×ˢ B, p1 ≠ p2 ∧ UniqueMul A B p1.1 p1.2 ∧ UniqueMul A B p2.1 p2.2) →
    TwoUniqueProds G

theorem TwoUniqueProds.uniqueMul_of_one_lt_card E1 #

∀ {G : Type u_1} {inst : Mul G} [self : TwoUniqueProds G] {A B : Finset G},
  1 < A.card * B.card → ∃ p1 ∈ A ×ˢ B, ∃ p2 ∈ A ×ˢ B, p1 ≠ p2 ∧ UniqueMul A B p1.1 p1.2 ∧ UniqueMul A B p2.1 p2.2

For A B two finite sets whose product has cardinality at least 2, we can find at least two unique pairs.

theorem uniqueAdd_of_twoUniqueAdd E1 #

∀ {G : Type u_1} [inst : Add G] {A B : Finset G},
  (1 < A.card * B.card → ∃ p1 ∈ A ×ˢ B, ∃ p2 ∈ A ×ˢ B, p1 ≠ p2 ∧ UniqueAdd A B p1.1 p1.2 ∧ UniqueAdd A B p2.1 p2.2) →
    A.Nonempty → B.Nonempty → ∃ a ∈ A, ∃ b ∈ B, UniqueAdd A B a b

theorem uniqueMul_of_twoUniqueMul E1 #

∀ {G : Type u_1} [inst : Mul G] {A B : Finset G},
  (1 < A.card * B.card → ∃ p1 ∈ A ×ˢ B, ∃ p2 ∈ A ×ˢ B, p1 ≠ p2 ∧ UniqueMul A B p1.1 p1.2 ∧ UniqueMul A B p2.1 p2.2) →
    A.Nonempty → B.Nonempty → ∃ a ∈ A, ∃ b ∈ B, UniqueMul A B a b

instance TwoUniqueSums.toUniqueSums E0 #

∀ (G : Type u_1) [inst : Add G] [TwoUniqueSums G], UniqueSums G

instance TwoUniqueProds.toUniqueProds E0 #

∀ (G : Type u_1) [inst : Mul G] [TwoUniqueProds G], UniqueProds G

instance Multiplicative.instUniqueProdsOfUniqueSums E0 #

∀ {M : Type u_1} [inst : Add M] [UniqueSums M], UniqueProds (Multiplicative M)

instance Multiplicative.instTwoUniqueProdsOfTwoUniqueSums E0 #

∀ {M : Type u_1} [inst : Add M] [TwoUniqueSums M], TwoUniqueProds (Multiplicative M)

instance Additive.instUniqueSumsOfUniqueProds E0 #

∀ {M : Type u_1} [inst : Mul M] [UniqueProds M], UniqueSums (Additive M)

instance Additive.instTwoUniqueSumsOfTwoUniqueProds E0 #

∀ {M : Type u_1} [inst : Mul M] [TwoUniqueProds M], TwoUniqueSums (Additive M)

theorem UniqueProds.of_mulHom E1 #

∀ {G : Type u} {H : Type v} [inst : Mul G] [inst_1 : Mul H] (f : H →ₙ* G),
  (∀ ⦃a b c d : H⦄, a * b = c * d → f a = f c ∧ f b = f d → a = c ∧ b = d) → ∀ [UniqueProds G], UniqueProds H

theorem UniqueSums.of_addHom E1 #

∀ {G : Type u} {H : Type v} [inst : Add G] [inst_1 : Add H] (f : H →ₙ+ G),
  (∀ ⦃a b c d : H⦄, a + b = c + d → f a = f c ∧ f b = f d → a = c ∧ b = d) → ∀ [UniqueSums G], UniqueSums H

theorem UniqueProds.of_injective_mulHom E1 #

∀ {G : Type u} {H : Type v} [inst : Mul G] [inst_1 : Mul H] (f : H →ₙ* G),
  Function.Injective ⇑f → UniqueProds G → UniqueProds H

theorem UniqueSums.of_injective_addHom E1 #

∀ {G : Type u} {H : Type v} [inst : Add G] [inst_1 : Add H] (f : H →ₙ+ G),
  Function.Injective ⇑f → UniqueSums G → UniqueSums H

theorem MulEquiv.uniqueProds_iff E0 #

∀ {G : Type u} {H : Type v} [inst : Mul G] [inst_1 : Mul H] (f : G ≃* H), UniqueProds G ↔ UniqueProds H

UniqueProd is preserved under multiplicative equivalences.

theorem AddEquiv.uniqueSums_iff E0 #

∀ {G : Type u} {H : Type v} [inst : Add G] [inst_1 : Add H] (f : G ≃+ H), UniqueSums G ↔ UniqueSums H

UniqueSums is preserved under additive equivalences.

theorem UniqueProds.of_mulOpposite E1 #

∀ {G : Type u} [inst : Mul G], UniqueProds Gᵐᵒᵖ → UniqueProds G

theorem UniqueSums.of_addOpposite E1 #

∀ {G : Type u} [inst : Add G], UniqueSums Gᵃᵒᵖ → UniqueSums G

instance UniqueProds.instMulOpposite E0 #

∀ {G : Type u} [inst : Mul G] [h : UniqueProds G], UniqueProds Gᵐᵒᵖ

instance UniqueSums.instAddOpposite E0 #

∀ {G : Type u} [inst : Add G] [h : UniqueSums G], UniqueSums Gᵃᵒᵖ

theorem UniqueSums.toIsCancelAdd E1 #

∀ {G : Type u} [inst : Add G] [UniqueSums G], IsCancelAdd G

theorem UniqueProds.toIsCancelMul E1 #

∀ {G : Type u} [inst : Mul G] [UniqueProds G], IsCancelMul G

theorem UniqueProds.of_same E1 #

∀ {G : Type u_1} [inst : Semigroup G] [IsCancelMul G],
  (∀ {A : Finset G}, A.Nonempty → ∃ a1 ∈ A, ∃ a2 ∈ A, UniqueMul A A a1 a2) → UniqueProds G

UniqueProds G says that for any two nonempty Finsets A and B in G, A × B contains a unique pair with the UniqueMul property. Strojnowski showed that if G is a group, then we only need to check this when A = B. Here we generalize the result to cancellative semigroups. Non-cancellative counterexample: the AddMonoid {0,1} with 1+1=1.

theorem UniqueSums.of_same E1 #

∀ {G : Type u_1} [inst : AddSemigroup G] [IsCancelAdd G],
  (∀ {A : Finset G}, A.Nonempty → ∃ a1 ∈ A, ∃ a2 ∈ A, UniqueAdd A A a1 a2) → UniqueSums G

theorem UniqueProds.toTwoUniqueProds_of_group E1 #

∀ {G : Type u_1} [inst : Group G] [UniqueProds G], TwoUniqueProds G

If a group has UniqueProds, then it actually has TwoUniqueProds. For an example of a semigroup G embeddable into a group that has UniqueProds but not TwoUniqueProds, see Example 10.13 in [J. Okniński, Semigroup Algebras][Okninski1991].

theorem UniqueSums.toTwoUniqueSums_of_addGroup E1 #

∀ {G : Type u_1} [inst : AddGroup G] [UniqueSums G], TwoUniqueSums G

instance UniqueProds.instForall E0 #

∀ {ι : Type u_2} (G : ι → Type u_1) [inst : (i : ι) → Mul (G i)] [∀ (i : ι), UniqueProds (G i)],
  UniqueProds ((i : ι) → G i)

instance UniqueSums.instForall E0 #

∀ {ι : Type u_2} (G : ι → Type u_1) [inst : (i : ι) → Add (G i)] [∀ (i : ι), UniqueSums (G i)],
  UniqueSums ((i : ι) → G i)

instance Prod.instUniqueProds E0 #

∀ {G : Type u} {H : Type v} [inst : Mul G] [inst_1 : Mul H] [UniqueProds G] [UniqueProds H], UniqueProds (G × H)

instance Prod.instUniqueSums E0 #

∀ {G : Type u} {H : Type v} [inst : Add G] [inst_1 : Add H] [UniqueSums G] [UniqueSums H], UniqueSums (G × H)

instance instUniqueSumsDFinsupp E0 #

∀ {ι : Type u_2} (G : ι → Type u_1) [inst : (i : ι) → AddZeroClass (G i)] [∀ (i : ι), UniqueSums (G i)],
  UniqueSums (Π₀ (i : ι), G i)

instance instUniqueSumsFinsupp E0 #

∀ {ι : Type u_1} {G : Type u_2} [inst : AddZeroClass G] [UniqueSums G], UniqueSums (ι →₀ G)

theorem TwoUniqueSums.of_addHom E1 #

∀ {G : Type u} {H : Type v} [inst : Add G] [inst_1 : Add H] (f : H →ₙ+ G),
  (∀ ⦃a b c d : H⦄, a + b = c + d → f a = f c ∧ f b = f d → a = c ∧ b = d) → ∀ [TwoUniqueSums G], TwoUniqueSums H

theorem TwoUniqueProds.of_mulHom E1 #

∀ {G : Type u} {H : Type v} [inst : Mul G] [inst_1 : Mul H] (f : H →ₙ* G),
  (∀ ⦃a b c d : H⦄, a * b = c * d → f a = f c ∧ f b = f d → a = c ∧ b = d) → ∀ [TwoUniqueProds G], TwoUniqueProds H

theorem TwoUniqueProds.of_injective_mulHom E1 #

∀ {G : Type u} {H : Type v} [inst : Mul G] [inst_1 : Mul H] (f : H →ₙ* G),
  Function.Injective ⇑f → TwoUniqueProds G → TwoUniqueProds H

theorem TwoUniqueSums.of_injective_addHom E1 #

∀ {G : Type u} {H : Type v} [inst : Add G] [inst_1 : Add H] (f : H →ₙ+ G),
  Function.Injective ⇑f → TwoUniqueSums G → TwoUniqueSums H

theorem MulEquiv.twoUniqueProds_iff E0 #

∀ {G : Type u} {H : Type v} [inst : Mul G] [inst_1 : Mul H] (f : G ≃* H), TwoUniqueProds G ↔ TwoUniqueProds H

TwoUniqueProd is preserved under multiplicative equivalences.

theorem AddEquiv.twoUniqueSums_iff E0 #

∀ {G : Type u} {H : Type v} [inst : Add G] [inst_1 : Add H] (f : G ≃+ H), TwoUniqueSums G ↔ TwoUniqueSums H

TwoUniqueSums is preserved under additive equivalences.

instance TwoUniqueSums.instForall E0 #

∀ {ι : Type u_2} (G : ι → Type u_1) [inst : (i : ι) → Add (G i)] [∀ (i : ι), TwoUniqueSums (G i)],
  TwoUniqueSums ((i : ι) → G i)

instance TwoUniqueProds.instForall E0 #

∀ {ι : Type u_2} (G : ι → Type u_1) [inst : (i : ι) → Mul (G i)] [∀ (i : ι), TwoUniqueProds (G i)],
  TwoUniqueProds ((i : ι) → G i)

instance Prod.instTwoUniqueProds E0 #

∀ {G : Type u} {H : Type v} [inst : Mul G] [inst_1 : Mul H] [TwoUniqueProds G] [TwoUniqueProds H],
  TwoUniqueProds (G × H)

instance Prod.instTwoUniqueSums E0 #

∀ {G : Type u} {H : Type v} [inst : Add G] [inst_1 : Add H] [TwoUniqueSums G] [TwoUniqueSums H], TwoUniqueSums (G × H)

theorem TwoUniqueSums.of_addOpposite E1 #

∀ {G : Type u} [inst : Add G], TwoUniqueSums Gᵃᵒᵖ → TwoUniqueSums G

theorem TwoUniqueProds.of_mulOpposite E1 #

∀ {G : Type u} [inst : Mul G], TwoUniqueProds Gᵐᵒᵖ → TwoUniqueProds G

instance TwoUniqueProds.instMulOpposite E0 #

∀ {G : Type u} [inst : Mul G] [h : TwoUniqueProds G], TwoUniqueProds Gᵐᵒᵖ

instance TwoUniqueSums.instAddOpposite E0 #

∀ {G : Type u} [inst : Add G] [h : TwoUniqueSums G], TwoUniqueSums Gᵃᵒᵖ

instance TwoUniqueProds.of_covariant_right E0 #

∀ {G : Type u} [inst : Mul G] [IsRightCancelMul G] [inst_2 : LinearOrder G] [MulLeftStrictMono G], TwoUniqueProds G

This instance asserts that if G has a right-cancellative multiplication, a linear order, and multiplication is strictly monotone w.r.t. the second argument, then G has TwoUniqueProds.

instance TwoUniqueSums.of_covariant_right E0 #

∀ {G : Type u} [inst : Add G] [IsRightCancelAdd G] [inst_2 : LinearOrder G] [AddLeftStrictMono G], TwoUniqueSums G

This instance asserts that if G has a right-cancellative addition, a linear order, and addition is strictly monotone w.r.t. the second argument, then G has TwoUniqueSums.

instance TwoUniqueProds.of_covariant_left E0 #

∀ {G : Type u} [inst : Mul G] [IsLeftCancelMul G] [inst_2 : LinearOrder G] [MulRightStrictMono G], TwoUniqueProds G

This instance asserts that if G has a left-cancellative multiplication, a linear order, and multiplication is strictly monotone w.r.t. the first argument, then G has TwoUniqueProds.

instance TwoUniqueSums.of_covariant_left E0 #

∀ {G : Type u} [inst : Add G] [IsLeftCancelAdd G] [inst_2 : LinearOrder G] [AddRightStrictMono G], TwoUniqueSums G

This instance asserts that if G has a left-cancellative addition, a linear order, and addition is strictly monotone w.r.t. the first argument, then G has TwoUniqueSums.

instance instTwoUniqueSumsDFinsupp E0 #

∀ {ι : Type u_2} (G : ι → Type u_1) [inst : (i : ι) → AddZeroClass (G i)] [∀ (i : ι), TwoUniqueSums (G i)],
  TwoUniqueSums (Π₀ (i : ι), G i)

instance instTwoUniqueSumsFinsupp E0 #

∀ {ι : Type u_1} {G : Type u_2} [inst : AddZeroClass G] [TwoUniqueSums G], TwoUniqueSums (ι →₀ G)