The areas / V12. Number theory
Mathlib.NumberTheory.Rayleigh
8 declarations. Mathlib docs · Source
Rayleigh's theorem on Beatty sequences
This file proves Rayleigh's theorem on Beatty sequences. We start by proving compl_beattySeq,
which is a generalization of Rayleigh's theorem, and eventually prove
Irrational.beattySeq_symmDiff_beattySeq_pos, which is Rayleigh's theorem.
Main definitions
beattySeq: In the Beatty sequence for real numberr, thekth term is⌊k * r⌋.beattySeq': In this variant of the Beatty sequence forr, thekth term is⌈k * r⌉ - 1.
Main statements
Define the following Beatty sets, where r denotes a real number:
B_r := {⌊k * r⌋ | k ∈ ℤ}B'_r := {⌈k * r⌉ - 1 | k ∈ ℤ}B⁺_r := {⌊r⌋, ⌊2r⌋, ⌊3r⌋, ...}B⁺'_r := {⌈r⌉-1, ⌈2r⌉-1, ⌈3r⌉-1, ...}
The main statements are:
compl_beattySeq: Letrbe a real number greater than 1, and1/r + 1/s = 1. Then the complement ofB_risB'_s.beattySeq_symmDiff_beattySeq'_pos: Letrbe a real number greater than 1, and1/r + 1/s = 1. ThenB⁺_randB⁺'_spartition the positive integers.Irrational.beattySeq_symmDiff_beattySeq_pos: Letrbe an irrational number greater than 1, and1/r + 1/s = 1. ThenB⁺_randB⁺_spartition the positive integers.
References
Tags
beatty, sequence, rayleigh, irrational, floor, positive
def beattySeq E3 #
ℝ → ℤ → ℤ
In the Beatty sequence for real number r, the kth term is ⌊k * r⌋.
def beattySeq' E3 #
ℝ → ℤ → ℤ
In this variant of the Beatty sequence for r, the kth term is ⌈k * r⌉ - 1.
theorem compl_beattySeq E3 #
∀ {r s : ℝ}, r.HolderConjugate s → {x | ∃ k, beattySeq r k = x}ᶜ = {x | ∃ k, beattySeq' s k = x}
Generalization of Rayleigh's theorem on Beatty sequences. Let r be a real number greater
than 1, and 1/r + 1/s = 1. Then the complement of B_r is B'_s.
theorem compl_beattySeq' E1 #
∀ {r s : ℝ}, r.HolderConjugate s → {x | ∃ k, beattySeq' r k = x}ᶜ = {x | ∃ k, beattySeq s k = x}
theorem beattySeq_symmDiff_beattySeq'_pos E3 #
∀ {r s : ℝ},
r.HolderConjugate s → symmDiff {x | ∃ k > 0, beattySeq r k = x} {x | ∃ k > 0, beattySeq' s k = x} = {n | 0 < n}
Generalization of Rayleigh's theorem on Beatty sequences. Let r be a real number greater
than 1, and 1/r + 1/s = 1. Then B⁺_r and B⁺'_s partition the positive integers.
theorem beattySeq'_symmDiff_beattySeq_pos E1 #
∀ {r s : ℝ},
r.HolderConjugate s → symmDiff {x | ∃ k > 0, beattySeq' r k = x} {x | ∃ k > 0, beattySeq s k = x} = {n | 0 < n}
theorem Irrational.beattySeq'_pos_eq E0 #
∀ {r : ℝ}, Irrational r → {x | ∃ k > 0, beattySeq' r k = x} = {x | ∃ k > 0, beattySeq r k = x}
Let r be an irrational number. Then B⁺_r and B⁺'_r are equal.
theorem Irrational.beattySeq_symmDiff_beattySeq_pos E3 #
∀ {r s : ℝ},
r.HolderConjugate s →
Irrational r → symmDiff {x | ∃ k > 0, beattySeq r k = x} {x | ∃ k > 0, beattySeq s k = x} = {n | 0 < n}
Rayleigh's theorem on Beatty sequences. Let r be an irrational number greater than 1, and
1/r + 1/s = 1. Then B⁺_r and B⁺_s partition the positive integers.