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 33293
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 7282 . . . . . . . . 9 (𝑟 = 𝑅 → (𝑟 − 1) = (𝑅 − 1))
21oveq2d 7291 . . . . . . . 8 (𝑟 = 𝑅 → (0...(𝑟 − 1)) = (0...(𝑅 − 1)))
3 oveq1 7282 . . . . . . . . . . . . . . . 16 (𝑟 = 𝑅 → (𝑟𝑘) = (𝑅𝑘))
43oveq2d 7291 . . . . . . . . . . . . . . 15 (𝑟 = 𝑅 → (𝑥 · (𝑟𝑘)) = (𝑥 · (𝑅𝑘)))
5 id 22 . . . . . . . . . . . . . . 15 (𝑟 = 𝑅𝑟 = 𝑅)
64, 5oveq12d 7293 . . . . . . . . . . . . . 14 (𝑟 = 𝑅 → ((𝑥 · (𝑟𝑘)) mod 𝑟) = ((𝑥 · (𝑅𝑘)) mod 𝑅))
76fveqeq2d 6782 . . . . . . . . . . . . 13 (𝑟 = 𝑅 → ((⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏 ↔ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏))
87rabbidv 3414 . . . . . . . . . . . 12 (𝑟 = 𝑅 → {𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏} = {𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏})
98fveq2d 6778 . . . . . . . . . . 11 (𝑟 = 𝑅 → (♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏}) = (♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}))
109oveq1d 7290 . . . . . . . . . 10 (𝑟 = 𝑅 → ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏}) / 𝑛) = ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛))
1110mpteq2dv 5176 . . . . . . . . 9 (𝑟 = 𝑅 → (𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏}) / 𝑛)) = (𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)))
12 oveq2 7283 . . . . . . . . 9 (𝑟 = 𝑅 → (1 / 𝑟) = (1 / 𝑅))
1311, 12breq12d 5087 . . . . . . . 8 (𝑟 = 𝑅 → ((𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑟) ↔ (𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)))
142, 13raleqbidv 3336 . . . . . . 7 (𝑟 = 𝑅 → (∀𝑏 ∈ (0...(𝑟 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑟) ↔ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)))
1514rabbidv 3414 . . . . . 6 (𝑟 = 𝑅 → {𝑥 ∈ ℝ ∣ ∀𝑏 ∈ (0...(𝑟 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑟)} = {𝑥 ∈ ℝ ∣ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)})
16 snml.s . . . . . 6 𝑆 = (𝑟 ∈ (ℤ‘2) ↦ {𝑥 ∈ ℝ ∣ ∀𝑏 ∈ (0...(𝑟 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑟𝑘)) mod 𝑟)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑟)})
17 reex 10962 . . . . . . 7 ℝ ∈ V
1817rabex 5256 . . . . . 6 {𝑥 ∈ ℝ ∣ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)} ∈ V
1915, 16, 18fvmpt 6875 . . . . 5 (𝑅 ∈ (ℤ‘2) → (𝑆𝑅) = {𝑥 ∈ ℝ ∣ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)})
2019eleq2d 2824 . . . 4 (𝑅 ∈ (ℤ‘2) → (𝐴 ∈ (𝑆𝑅) ↔ 𝐴 ∈ {𝑥 ∈ ℝ ∣ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)}))
21 oveq1 7282 . . . . . . . . . . . . 13 (𝑥 = 𝐴 → (𝑥 · (𝑅𝑘)) = (𝐴 · (𝑅𝑘)))
2221fvoveq1d 7297 . . . . . . . . . . . 12 (𝑥 = 𝐴 → (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)))
2322eqeq1d 2740 . . . . . . . . . . 11 (𝑥 = 𝐴 → ((⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏 ↔ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏))
2423rabbidv 3414 . . . . . . . . . 10 (𝑥 = 𝐴 → {𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏} = {𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏})
2524fveq2d 6778 . . . . . . . . 9 (𝑥 = 𝐴 → (♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) = (♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}))
2625oveq1d 7290 . . . . . . . 8 (𝑥 = 𝐴 → ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛) = ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛))
2726mpteq2dv 5176 . . . . . . 7 (𝑥 = 𝐴 → (𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) = (𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)))
2827breq1d 5084 . . . . . 6 (𝑥 = 𝐴 → ((𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅) ↔ (𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)))
2928ralbidv 3112 . . . . 5 (𝑥 = 𝐴 → (∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅) ↔ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)))
3029elrab 3624 . . . 4 (𝐴 ∈ {𝑥 ∈ ℝ ∣ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝑥 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)} ↔ (𝐴 ∈ ℝ ∧ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅)))
3120, 30bitrdi 287 . . 3 (𝑅 ∈ (ℤ‘2) → (𝐴 ∈ (𝑆𝑅) ↔ (𝐴 ∈ ℝ ∧ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅))))
3231pm5.32i 575 . 2 ((𝑅 ∈ (ℤ‘2) ∧ 𝐴 ∈ (𝑆𝑅)) ↔ (𝑅 ∈ (ℤ‘2) ∧ (𝐴 ∈ ℝ ∧ ∀𝑏 ∈ (0...(𝑅 − 1))(𝑛 ∈ ℕ ↦ ((♯‘{𝑘 ∈ (1...𝑛) ∣ (⌊‘((𝐴 · (𝑅𝑘)) mod 𝑅)) = 𝑏}) / 𝑛)) ⇝ (1 / 𝑅))))
3316dmmptss 6144 . . . 4 dom 𝑆 ⊆ (ℤ‘2)
34 elfvdm 6806 . . . 4 (𝐴 ∈ (𝑆𝑅) → 𝑅 ∈ dom 𝑆)
3533, 34sselid 3919 . . 3 (𝐴 ∈ (𝑆𝑅) → 𝑅 ∈ (ℤ‘2))
3635pm4.71ri 561 . 2 (𝐴 ∈ (𝑆𝑅) ↔ (𝑅 ∈ (ℤ‘2) ∧ 𝐴 ∈ (𝑆𝑅)))
37 3anass 1094 . 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 396  w3a 1086   = wceq 1539  wcel 2106  wral 3064  {crab 3068   class class class wbr 5074  cmpt 5157  dom cdm 5589  cfv 6433  (class class class)co 7275  cr 10870  0cc0 10871  1c1 10872   · cmul 10876  cmin 11205   / cdiv 11632  cn 11973  2c2 12028  cuz 12582  ...cfz 13239  cfl 13510   mod cmo 13589  cexp 13782  chash 14044  cli 15193
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 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352  ax-cnex 10927  ax-resscn 10928
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-br 5075  df-opab 5137  df-mpt 5158  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-iota 6391  df-fun 6435  df-fv 6441  df-ov 7278
This theorem is referenced by:  snmlflim  33294
  Copyright terms: Public domain W3C validator