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.Algebra.Order.Antidiag.Nat

16 declarations. Mathlib docs · Source

instance PNat.instHasAntidiagonal E0 #

Finset.HasAntidiagonal (Additive ℕ+)

def Nat.finMulAntidiag E1 #

(d : ℕ) → ℕ → Finset (Fin d → ℕ)

The Finset of all d-tuples of natural numbers whose product is n. Defined to be ∅ when n = 0.

theorem Nat.mem_finMulAntidiag E0 #

∀ {d n : ℕ} {f : Fin d → ℕ}, f ∈ d.finMulAntidiag n ↔ ∏ i, f i = n ∧ n ≠ 0

theorem Nat.finMulAntidiag_zero_right E0 #

∀ (d : ℕ), d.finMulAntidiag 0 = ∅

theorem Nat.finMulAntidiag_one E1 #

∀ {d : ℕ}, d.finMulAntidiag 1 = {fun x ↦ 1}

theorem Nat.finMulAntidiag_zero_left E1 #

∀ {n : ℕ}, n ≠ 1 → Nat.finMulAntidiag 0 n = ∅

theorem Nat.dvd_of_mem_finMulAntidiag E1 #

∀ {n d : ℕ} {f : Fin d → ℕ}, f ∈ d.finMulAntidiag n → ∀ (i : Fin d), f i ∣ n

theorem Nat.ne_zero_of_mem_finMulAntidiag E1 #

∀ {d n : ℕ} {f : Fin d → ℕ}, f ∈ d.finMulAntidiag n → ∀ (i : Fin d), f i ≠ 0

theorem Nat.prod_eq_of_mem_finMulAntidiag E1 #

∀ {d n : ℕ} {f : Fin d → ℕ}, f ∈ d.finMulAntidiag n → ∏ i, f i = n

theorem Nat.finMulAntidiag_eq_piFinset_divisors_filter E1 #

∀ {d m n : ℕ}, m ∣ n → n ≠ 0 → d.finMulAntidiag m = {f ∈ Fintype.piFinset fun x ↦ n.divisors | ∏ i, f i = m}

theorem Nat.image_apply_finMulAntidiag E1 #

∀ {d n : ℕ} {i : Fin d}, d ≠ 1 → Finset.image (fun f ↦ f i) (d.finMulAntidiag n) = n.divisors

theorem Nat.image_piFinTwoEquiv_finMulAntidiag E1 #

∀ {n : ℕ}, Finset.image (⇑(piFinTwoEquiv fun x ↦ ℕ)) (Nat.finMulAntidiag 2 n) = n.divisorsAntidiagonal

theorem Nat.finMulAntidiag_existsUnique_prime_dvd E1 #

∀ {d n p : ℕ}, Squarefree n → p ∈ n.primeFactorsList → ∀ f ∈ d.finMulAntidiag n, ∃! i, p ∣ f i

theorem Nat.card_finMulAntidiag_of_squarefree E1 #

∀ {d n : ℕ}, Squarefree n → (d.finMulAntidiag n).card = d ^ ArithmeticFunction.cardDistinctFactors n

theorem Nat.finMulAntidiag_three E1 #

∀ {n : ℕ}, ∀ a ∈ Nat.finMulAntidiag 3 n, a 0 * a 1 * a 2 = n

theorem Nat.card_pair_lcm_eq E0 #

∀ {n : ℕ},
  Squarefree n → {p ∈ n.divisors ×ˢ n.divisors | p.1.lcm p.2 = n}.card = 3 ^ ArithmeticFunction.cardDistinctFactors n