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 34322
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 7416 . . . . . . . . 9 (𝑟 = 𝑅 → (𝑟 − 1) = (𝑅 − 1))
21oveq2d 7425 . . . . . . . 8 (𝑟 = 𝑅 → (0...(𝑟 − 1)) = (0...(𝑅 − 1)))
3 oveq1 7416 . . . . . . . . . . . . . . . 16 (𝑟 = 𝑅 → (𝑟𝑘) = (𝑅𝑘))
43oveq2d 7425 . . . . . . . . . . . . . . 15 (𝑟 = 𝑅 → (𝑥 · (𝑟𝑘)) = (𝑥 · (𝑅𝑘)))
5 id 22 . . . . . . . . . . . . . . 15 (𝑟 = 𝑅𝑟 = 𝑅)
64, 5oveq12d 7427 . . . . . . . . . . . . . 14 (𝑟 = 𝑅 → ((𝑥 · (𝑟𝑘)) mod 𝑟) = ((𝑥 · (𝑅𝑘)) mod 𝑅))
76fveqeq2d 6900 . . . . . . . . . . . . 13 (𝑟 = 𝑅 → ((⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏 ↔ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏))
87rabbidv 3441 . . . . . . . . . . . 12 (𝑟 = 𝑅 → {𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏} = {𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏})
98fveq2d 6896 . . . . . . . . . . 11 (𝑟 = 𝑅 → (♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏}) = (♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}))
109oveq1d 7424 . . . . . . . . . 10 (𝑟 = 𝑅 → ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏}) / 𝑛) = ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛))
1110mpteq2dv 5251 . . . . . . . . 9 (𝑟 = 𝑅 → (𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏}) / 𝑛)) = (𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)))
12 oveq2 7417 . . . . . . . . 9 (𝑟 = 𝑅 → (1 / 𝑟) = (1 / 𝑅))
1311, 12breq12d 5162 . . . . . . . 8 (𝑟 = 𝑅 → ((𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑟) ↔ (𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)))
142, 13raleqbidv 3343 . . . . . . 7 (𝑟 = 𝑅 → (∀𝑏 ∈ (0...(𝑟 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑟) ↔ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)))
1514rabbidv 3441 . . . . . 6 (𝑟 = 𝑅 → {𝑥 ∈ ℝ ∣ ∀𝑏 ∈ (0...(𝑟 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑟)} = {𝑥 ∈ ℝ ∣ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)})
16 snml.s . . . . . 6 𝑆 = (𝑟 ∈ (ℤ‘2) ↦ {𝑥 ∈ ℝ ∣ ∀𝑏 ∈ (0...(𝑟 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑟)})
17 reex 11201 . . . . . . 7 ℝ ∈ V
1817rabex 5333 . . . . . 6 {𝑥 ∈ ℝ ∣ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)} ∈ V
1915, 16, 18fvmpt 6999 . . . . 5 (𝑅 ∈ (ℤ‘2) → (𝑆𝑅) = {𝑥 ∈ ℝ ∣ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)})
2019eleq2d 2820 . . . 4 (𝑅 ∈ (ℤ‘2) → (𝐴 ∈ (𝑆𝑅) ↔ 𝐴 ∈ {𝑥 ∈ ℝ ∣ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)}))
21 oveq1 7416 . . . . . . . . . . . . 13 (𝑥 = 𝐴 → (𝑥 · (𝑅𝑘)) = (𝐴 · (𝑅𝑘)))
2221fvoveq1d 7431 . . . . . . . . . . . 12 (𝑥 = 𝐴 → (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)))
2322eqeq1d 2735 . . . . . . . . . . 11 (𝑥 = 𝐴 → ((⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏 ↔ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏))
2423rabbidv 3441 . . . . . . . . . 10 (𝑥 = 𝐴 → {𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏} = {𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏})
2524fveq2d 6896 . . . . . . . . 9 (𝑥 = 𝐴 → (♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) = (♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}))
2625oveq1d 7424 . . . . . . . 8 (𝑥 = 𝐴 → ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛) = ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛))
2726mpteq2dv 5251 . . . . . . 7 (𝑥 = 𝐴 → (𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) = (𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)))
2827breq1d 5159 . . . . . 6 (𝑥 = 𝐴 → ((𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅) ↔ (𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)))
2928ralbidv 3178 . . . . 5 (𝑥 = 𝐴 → (∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅) ↔ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)))
3029elrab 3684 . . . 4 (𝐴 ∈ {𝑥 ∈ ℝ ∣ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)} ↔ (𝐴 ∈ ℝ ∧ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)))
3120, 30bitrdi 287 . . 3 (𝑅 ∈ (ℤ‘2) → (𝐴 ∈ (𝑆𝑅) ↔ (𝐴 ∈ ℝ ∧ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅))))
3231pm5.32i 576 . 2 ((𝑅 ∈ (ℤ‘2) ∧ 𝐴 ∈ (𝑆𝑅)) ↔ (𝑅 ∈ (ℤ‘2) ∧ (𝐴 ∈ ℝ ∧ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅))))
3316dmmptss 6241 . . . 4 dom 𝑆 ⊆ (ℤ‘2)
34 elfvdm 6929 . . . 4 (𝐴 ∈ (𝑆𝑅) → 𝑅 ∈ dom 𝑆)
3533, 34sselid 3981 . . 3 (𝐴 ∈ (𝑆𝑅) → 𝑅 ∈ (ℤ‘2))
3635pm4.71ri 562 . 2 (𝐴 ∈ (𝑆𝑅) ↔ (𝑅 ∈ (ℤ‘2) ∧ 𝐴 ∈ (𝑆𝑅)))
37 3anass 1096 . 2 ((𝑅 ∈ (ℤ‘2) ∧ 𝐴 ∈ ℝ ∧ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)) ↔ (𝑅 ∈ (ℤ‘2) ∧ (𝐴 ∈ ℝ ∧ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅))))
3832, 36, 373bitr4i 303 1 (𝐴 ∈ (𝑆𝑅) ↔ (𝑅 ∈ (ℤ‘2) ∧ 𝐴 ∈ ℝ ∧ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)))
Colors of variables: wff setvar class
Syntax hints:  wb 205  wa 397  w3a 1088   = wceq 1542  wcel 2107  wral 3062  {crab 3433   class class class wbr 5149  cmpt 5232  dom cdm 5677  cfv 6544  (class class class)co 7409  cr 11109  0cc0 11110  1c1 11111   · cmul 11115  cmin 11444   / cdiv 11871  cn 12212  2c2 12267  cuz 12822  ...cfz 13484  cfl 13755   mod cmo 13834  cexp 14027  chash 14290  cli 15428
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2109  ax-9 2117  ax-10 2138  ax-11 2155  ax-12 2172  ax-ext 2704  ax-sep 5300  ax-nul 5307  ax-pr 5428  ax-cnex 11166  ax-resscn 11167
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 847  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1783  df-nf 1787  df-sb 2069  df-mo 2535  df-eu 2564  df-clab 2711  df-cleq 2725  df-clel 2811  df-nfc 2886  df-ral 3063  df-rex 3072  df-rab 3434  df-v 3477  df-dif 3952  df-un 3954  df-in 3956  df-ss 3966  df-nul 4324  df-if 4530  df-sn 4630  df-pr 4632  df-op 4636  df-uni 4910  df-br 5150  df-opab 5212  df-mpt 5233  df-id 5575  df-xp 5683  df-rel 5684  df-cnv 5685  df-co 5686  df-dm 5687  df-rn 5688  df-res 5689  df-ima 5690  df-iota 6496  df-fun 6546  df-fv 6552  df-ov 7412
This theorem is referenced by:  snmlflim  34323
  Copyright terms: Public domain W3C validator