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 / V03. Sets, finite structures and big operators

Mathlib.Data.Set.MulAntidiagonal

18 declarations. Mathlib docs · Source

def Set.mulAntidiagonal E1 #

{α : Type u_1} → [Mul α] → Set α → Set α → α → Set (α × α)

Set.mulAntidiagonal s t a is the set of all pairs of an element in s and an element in t that multiply to a.

def Set.antidiagonal E1 #

{α : Type u_1} → [Add α] → Set α → Set α → α → Set (α × α)

Set.addAntidiagonal s t a is the set of all pairs of an element in s and an element in t that add to a.

theorem Set.mem_antidiagonal E0 #

∀ {α : Type u_1} [inst : Add α] {s t : Set α} {a : α} {x : α × α},
  x ∈ s.antidiagonal t a ↔ x.1 ∈ s ∧ x.2 ∈ t ∧ x.1 + x.2 = a

theorem Set.mem_mulAntidiagonal E0 #

∀ {α : Type u_1} [inst : Mul α] {s t : Set α} {a : α} {x : α × α},
  x ∈ s.mulAntidiagonal t a ↔ x.1 ∈ s ∧ x.2 ∈ t ∧ x.1 * x.2 = a

theorem Set.mulAntidiagonal_mono_left E1 #

∀ {α : Type u_1} [inst : Mul α] {s₁ s₂ t : Set α} {a : α}, s₁ ⊆ s₂ → s₁.mulAntidiagonal t a ⊆ s₂.mulAntidiagonal t a

theorem Set.antidiagonal_mono_left E1 #

∀ {α : Type u_1} [inst : Add α] {s₁ s₂ t : Set α} {a : α}, s₁ ⊆ s₂ → s₁.antidiagonal t a ⊆ s₂.antidiagonal t a

theorem Set.antidiagonal_mono_right E1 #

∀ {α : Type u_1} [inst : Add α] {s t₁ t₂ : Set α} {a : α}, t₁ ⊆ t₂ → s.antidiagonal t₁ a ⊆ s.antidiagonal t₂ a

theorem Set.mulAntidiagonal_mono_right E1 #

∀ {α : Type u_1} [inst : Mul α] {s t₁ t₂ : Set α} {a : α}, t₁ ⊆ t₂ → s.mulAntidiagonal t₁ a ⊆ s.mulAntidiagonal t₂ a

theorem Set.swap_mem_antidiagonal E1 #

∀ {α : Type u_1} [inst : AddCommMagma α] {s t : Set α} {a : α} {x : α × α},
  x.swap ∈ s.antidiagonal t a ↔ x ∈ t.antidiagonal s a

theorem Set.swap_mem_mulAntidiagonal E1 #

∀ {α : Type u_1} [inst : CommMagma α] {s t : Set α} {a : α} {x : α × α},
  x.swap ∈ s.mulAntidiagonal t a ↔ x ∈ t.mulAntidiagonal s a

theorem Set.swap_mem_mulAntidiagonal_aux E0 #

∀ {α : Type u_1} [inst : CommMagma α] {s t : Set α} {a : α} {x : α × α},
  x.2 ∈ s ∧ x.1 ∈ t ∧ x.2 * x.1 = a ↔ x ∈ t.mulAntidiagonal s a

theorem Set.swap_mem_antidiagonal_aux E0 #

∀ {α : Type u_1} [inst : AddCommMagma α] {s t : Set α} {a : α} {x : α × α},
  x.2 ∈ s ∧ x.1 ∈ t ∧ x.2 + x.1 = a ↔ x ∈ t.antidiagonal s a

theorem Set.MulAntidiagonal.fst_eq_fst_iff_snd_eq_snd E1 #

∀ {α : Type u_1} [inst : CommMonoid α] [IsCancelMul α] {s t : Set α} {a : α} {x y : ↑(s.mulAntidiagonal t a)},
  (↑x).1 = (↑y).1 ↔ (↑x).2 = (↑y).2

theorem Set.AddAntidiagonal.fst_eq_fst_iff_snd_eq_snd E1 #

∀ {α : Type u_1} [inst : AddCommMonoid α] [IsCancelAdd α] {s t : Set α} {a : α} {x y : ↑(s.antidiagonal t a)},
  (↑x).1 = (↑y).1 ↔ (↑x).2 = (↑y).2

theorem Set.MulAntidiagonal.finite_of_isPWO E1 #

∀ {α : Type u_1} [inst : CommMonoid α] [inst_1 : PartialOrder α] [IsCancelMul α] [MulLeftMono α] {s t : Set α},
  s.IsPWO → t.IsPWO → ∀ (a : α), (s.mulAntidiagonal t a).Finite

theorem Set.AddAntidiagonal.finite_of_isPWO E1 #

∀ {α : Type u_1} [inst : AddCommMonoid α] [inst_1 : PartialOrder α] [IsCancelAdd α] [AddLeftMono α] {s t : Set α},
  s.IsPWO → t.IsPWO → ∀ (a : α), (s.antidiagonal t a).Finite

theorem Set.AddAntidiagonal.finite_of_isWF E1 #

∀ {α : Type u_1} [inst : AddCancelCommMonoid α] [inst_1 : LinearOrder α] [AddLeftMono α] {s t : Set α},
  s.IsWF → t.IsWF → ∀ (a : α), (s.antidiagonal t a).Finite

theorem Set.MulAntidiagonal.finite_of_isWF E1 #

∀ {α : Type u_1} [inst : CancelCommMonoid α] [inst_1 : LinearOrder α] [MulLeftMono α] {s t : Set α},
  s.IsWF → t.IsWF → ∀ (a : α), (s.mulAntidiagonal t a).Finite