Mathlib.Data.Nat.DvdSequence
12 declarations and 3 deprecated aliases. Mathlib docs · Source
Divisibility sequences
A sequence f : ℕ → ℕ is a divisibility sequence if it satisfies f a ∣ f b whenever a ∣ b.
A sequence f : ℕ → ℕ is a strong divisibility sequence if gcd (f a) (f b) = f (gcd a b).
This file defines divisibility sequences and strong divisibility sequences, and provides some basic API for these definitions.
Main definitions
IsDvdSeq: A functionfis a divisibility sequence ifa ∣ bimpliesf a ∣ f b.Nat.IsStrongDvdSeq: A functionf : ℕ → ℕis a strong divisibility sequence iffsatisfiesgcd (f a) (f b) = f (gcd a b).
theorem smul_dvd_smul E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Monoid α] [inst_1 : Monoid β] [inst_2 : SMul α β] [IsScalarTower α β β]
[IsScalarTower α α β] [SMulCommClass α β β] {a b : α} {c d : β}, a ∣ b → c ∣ d → a • c ∣ b • d
def IsDvdSequence E1 #
{α : Type u_1} → {β : Type u_2} → [Dvd α] → [Dvd β] → (α → β) → Prop
A function f : α → β is a divisibility sequence if a ∣ b implies f a ∣ f b.
theorem IsDvdSequence.id E1 #
∀ (α : Type u_1) [inst : Dvd α], IsDvdSequence id
theorem IsDvdSequence.const E1 #
∀ (α : Type u_1) {β : Type u_2} [inst : Dvd α] [inst_1 : Monoid β] (b : β), IsDvdSequence fun x ↦ b
theorem IsDvdSequence.smul' E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} [inst : Dvd α] [inst_1 : Monoid β] [inst_2 : Monoid γ] {f : α → β}
{g : α → γ} [inst_3 : SMul β γ] [IsScalarTower β γ γ] [IsScalarTower β β γ] [SMulCommClass β γ γ],
IsDvdSequence f → IsDvdSequence g → IsDvdSequence (f • g)
theorem IsDvdSequence.mul E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Dvd α] [inst_1 : CommMonoid β] {f g : α → β},
IsDvdSequence f → IsDvdSequence g → IsDvdSequence (f * g)
theorem IsDvdSequence.smul E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} [inst : Dvd α] [inst_1 : Monoid β] [inst_2 : Monoid γ] {f : α → γ}
[inst_3 : SMul β γ] [IsScalarTower β γ γ] [IsScalarTower β β γ] [SMulCommClass β γ γ] (b : β),
IsDvdSequence f → IsDvdSequence (b • f)
theorem IsDvdSequence.comp E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} [inst : Dvd α] [inst_1 : Dvd β] [inst_2 : Dvd γ] {f : α → β} {g : β → γ},
IsDvdSequence f → IsDvdSequence g → IsDvdSequence (g ∘ f)
def Nat.IsStrongDvdSequence E1 #
(ℕ → ℕ) → Prop
A function f : ℕ → ℕ is a strong divisibility sequence if gcd (f a) (f b) = f (gcd a b).
theorem Nat.IsStrongDvdSequence.isDvdSequence E1 #
∀ {f : ℕ → ℕ}, Nat.IsStrongDvdSequence f → IsDvdSequence f
theorem Nat.IsStrongDvdSequence.id E1 #
Nat.IsStrongDvdSequence id
theorem Nat.IsStrongDvdSequence.const E1 #
∀ (n : ℕ), Nat.IsStrongDvdSequence fun x ↦ n
Deprecated aliases
| Name | New name | Since |
|---|---|---|
IsDivSequence | IsDvdSequence | 2026-06-30 |
IsDivSequence.smul | IsDvdSequence.smul | 2026-06-30 |
isDivSequence_id | IsDvdSequence.id | 2026-06-30 |