Beatty's theorem
ProvedFamousTheorems.beattyseq_symmdiff_beattyseq_posmathlibnumber-theory
Beatty's theorem. If and are positive irrationals with , the two Beatty sequences and partition the positive integers: every positive integer appears in exactly one, exactly once. Two interleaved arithmetic-like sequences tile with no overlaps and no gaps. Irrationality is essential — rational produces collisions — and the conjugacy condition is exactly what balances the densities and to sum to one. The theorem is the source of Wythoff's game, whose losing positions are the Beatty sequences for and . Formalization note. The conclusion is stated as the symmetric difference of the two sequences covering the positives. The result is Mathlib's Irrational.beattySeq_symmDiff_beattySeq_pos.
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
universe u_1 u_2 u_3 u_4 u_5 u_6 u_7 u_8 u_9 u_10 u_11 u_12 u_13 u_14 u_15 u_16 u_17 u_18 u_19 u_20 u_21 u_22 u_23 u_24 u_25
open Filter Set Topology DirectSum
theorem beattyseq_symmdiff_beattyseq_pos :
∀ {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} := by sorry
end FamousTheoremsSource
Listed in Mathlib's curated theorem manifests; formalized in Mathlib. Proof here reduces to the corresponding Mathlib result.