Users' Mathboxes Mathbox for Mario Carneiro < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  snmlval Structured version   Visualization version   GIF version

Theorem snmlval 33193
Description: The property "𝐴 is simply normal in base 𝑅". A number is simply normal if each digit 0 ≤ 𝑏 < 𝑅 occurs in the base- 𝑅 digit string of 𝐴 with frequency 1 / 𝑅 (which is consistent with the expectation in an infinite random string of numbers selected from 0...𝑅 − 1). (Contributed by Mario Carneiro, 6-Apr-2015.)
Hypothesis
Ref Expression
snml.s 𝑆 = (𝑟 ∈ (ℤ‘2) ↦ {𝑥 ∈ ℝ ∣ ∀𝑏 ∈ (0...(𝑟 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑟)})
Assertion
Ref Expression
snmlval (𝐴 ∈ (𝑆𝑅) ↔ (𝑅 ∈ (ℤ‘2) ∧ 𝐴 ∈ ℝ ∧ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)))
Distinct variable groups:   𝑘,𝑏,𝑛,𝑥,𝐴   𝑟,𝑏,𝑅,𝑘,𝑛,𝑥
Allowed substitution hints:   𝐴(𝑟)   𝑆(𝑥,𝑘,𝑛,𝑟,𝑏)

Proof of Theorem snmlval
StepHypRef Expression
1 oveq1 7262 . . . . . . . . 9 (𝑟 = 𝑅 → (𝑟 − 1) = (𝑅 − 1))
21oveq2d 7271 . . . . . . . 8 (𝑟 = 𝑅 → (0...(𝑟 − 1)) = (0...(𝑅 − 1)))
3 oveq1 7262 . . . . . . . . . . . . . . . 16 (𝑟 = 𝑅 → (𝑟𝑘) = (𝑅𝑘))
43oveq2d 7271 . . . . . . . . . . . . . . 15 (𝑟 = 𝑅 → (𝑥 · (𝑟𝑘)) = (𝑥 · (𝑅𝑘)))
5 id 22 . . . . . . . . . . . . . . 15 (𝑟 = 𝑅𝑟 = 𝑅)
64, 5oveq12d 7273 . . . . . . . . . . . . . 14 (𝑟 = 𝑅 → ((𝑥 · (𝑟𝑘)) mod 𝑟) = ((𝑥 · (𝑅𝑘)) mod 𝑅))
76fveqeq2d 6764 . . . . . . . . . . . . 13 (𝑟 = 𝑅 → ((⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏 ↔ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏))
87rabbidv 3404 . . . . . . . . . . . 12 (𝑟 = 𝑅 → {𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏} = {𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏})
98fveq2d 6760 . . . . . . . . . . 11 (𝑟 = 𝑅 → (♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏}) = (♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}))
109oveq1d 7270 . . . . . . . . . 10 (𝑟 = 𝑅 → ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏}) / 𝑛) = ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛))
1110mpteq2dv 5172 . . . . . . . . 9 (𝑟 = 𝑅 → (𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏}) / 𝑛)) = (𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)))
12 oveq2 7263 . . . . . . . . 9 (𝑟 = 𝑅 → (1 / 𝑟) = (1 / 𝑅))
1311, 12breq12d 5083 . . . . . . . 8 (𝑟 = 𝑅 → ((𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑟) ↔ (𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)))
142, 13raleqbidv 3327 . . . . . . 7 (𝑟 = 𝑅 → (∀𝑏 ∈ (0...(𝑟 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑟) ↔ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)))
1514rabbidv 3404 . . . . . 6 (𝑟 = 𝑅 → {𝑥 ∈ ℝ ∣ ∀𝑏 ∈ (0...(𝑟 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑟)} = {𝑥 ∈ ℝ ∣ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)})
16 snml.s . . . . . 6 𝑆 = (𝑟 ∈ (ℤ‘2) ↦ {𝑥 ∈ ℝ ∣ ∀𝑏 ∈ (0...(𝑟 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑟)})
17 reex 10893 . . . . . . 7 ℝ ∈ V
1817rabex 5251 . . . . . 6 {𝑥 ∈ ℝ ∣ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)} ∈ V
1915, 16, 18fvmpt 6857 . . . . 5 (𝑅 ∈ (ℤ‘2) → (𝑆𝑅) = {𝑥 ∈ ℝ ∣ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)})
2019eleq2d 2824 . . . 4 (𝑅 ∈ (ℤ‘2) → (𝐴 ∈ (𝑆𝑅) ↔ 𝐴 ∈ {𝑥 ∈ ℝ ∣ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)}))
21 oveq1 7262 . . . . . . . . . . . . 13 (𝑥 = 𝐴 → (𝑥 · (𝑅𝑘)) = (𝐴 · (𝑅𝑘)))
2221fvoveq1d 7277 . . . . . . . . . . . 12 (𝑥 = 𝐴 → (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)))
2322eqeq1d 2740 . . . . . . . . . . 11 (𝑥 = 𝐴 → ((⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏 ↔ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏))
2423rabbidv 3404 . . . . . . . . . 10 (𝑥 = 𝐴 → {𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏} = {𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏})
2524fveq2d 6760 . . . . . . . . 9 (𝑥 = 𝐴 → (♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) = (♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}))
2625oveq1d 7270 . . . . . . . 8 (𝑥 = 𝐴 → ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛) = ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛))
2726mpteq2dv 5172 . . . . . . 7 (𝑥 = 𝐴 → (𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) = (𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)))
2827breq1d 5080 . . . . . 6 (𝑥 = 𝐴 → ((𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅) ↔ (𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)))
2928ralbidv 3120 . . . . 5 (𝑥 = 𝐴 → (∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅) ↔ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)))
3029elrab 3617 . . . 4 (𝐴 ∈ {𝑥 ∈ ℝ ∣ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)} ↔ (𝐴 ∈ ℝ ∧ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)))
3120, 30bitrdi 286 . . 3 (𝑅 ∈ (ℤ‘2) → (𝐴 ∈ (𝑆𝑅) ↔ (𝐴 ∈ ℝ ∧ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅))))
3231pm5.32i 574 . 2 ((𝑅 ∈ (ℤ‘2) ∧ 𝐴 ∈ (𝑆𝑅)) ↔ (𝑅 ∈ (ℤ‘2) ∧ (𝐴 ∈ ℝ ∧ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅))))
3316dmmptss 6133 . . . 4 dom 𝑆 ⊆ (ℤ‘2)
34 elfvdm 6788 . . . 4 (𝐴 ∈ (𝑆𝑅) → 𝑅 ∈ dom 𝑆)
3533, 34sselid 3915 . . 3 (𝐴 ∈ (𝑆𝑅) → 𝑅 ∈ (ℤ‘2))
3635pm4.71ri 560 . 2 (𝐴 ∈ (𝑆𝑅) ↔ (𝑅 ∈ (ℤ‘2) ∧ 𝐴 ∈ (𝑆𝑅)))
37 3anass 1093 . 2 ((𝑅 ∈ (ℤ‘2) ∧ 𝐴 ∈ ℝ ∧ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)) ↔ (𝑅 ∈ (ℤ‘2) ∧ (𝐴 ∈ ℝ ∧ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅))))
3832, 36, 373bitr4i 302 1 (𝐴 ∈ (𝑆𝑅) ↔ (𝑅 ∈ (ℤ‘2) ∧ 𝐴 ∈ ℝ ∧ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)))
Colors of variables: wff setvar class
Syntax hints:  wb 205  wa 395  w3a 1085   = wceq 1539  wcel 2108  wral 3063  {crab 3067   class class class wbr 5070  cmpt 5153  dom cdm 5580  cfv 6418  (class class class)co 7255  cr 10801  0cc0 10802  1c1 10803   · cmul 10807  cmin 11135   / cdiv 11562  cn 11903  2c2 11958  cuz 12511  ...cfz 13168  cfl 13438   mod cmo 13517  cexp 13710  chash 13972  cli 15121
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347  ax-cnex 10858  ax-resscn 10859
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fv 6426  df-ov 7258
This theorem is referenced by:  snmlflim  33194
  Copyright terms: Public domain W3C validator