Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  digfval Structured version   Visualization version   GIF version

Theorem digfval 44650
Description: Operation to obtain the 𝑘 th digit of a nonnegative real number 𝑟 in the positional system with base 𝐵. (Contributed by AV, 23-May-2020.)
Assertion
Ref Expression
digfval (𝐵 ∈ ℕ → (digit‘𝐵) = (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝐵↑-𝑘) · 𝑟)) mod 𝐵)))
Distinct variable group:   𝑘,𝑟,𝐵

Proof of Theorem digfval
Dummy variable 𝑏 is distinct from all other variables.
StepHypRef Expression
1 df-dig 44649 . 2 digit = (𝑏 ∈ ℕ ↦ (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝑏↑-𝑘) · 𝑟)) mod 𝑏)))
2 oveq1 7157 . . . . 5 (𝑏 = 𝐵 → (𝑏↑-𝑘) = (𝐵↑-𝑘))
32fvoveq1d 7172 . . . 4 (𝑏 = 𝐵 → (⌊‘((𝑏↑-𝑘) · 𝑟)) = (⌊‘((𝐵↑-𝑘) · 𝑟)))
4 id 22 . . . 4 (𝑏 = 𝐵𝑏 = 𝐵)
53, 4oveq12d 7168 . . 3 (𝑏 = 𝐵 → ((⌊‘((𝑏↑-𝑘) · 𝑟)) mod 𝑏) = ((⌊‘((𝐵↑-𝑘) · 𝑟)) mod 𝐵))
65mpoeq3dv 7227 . 2 (𝑏 = 𝐵 → (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝑏↑-𝑘) · 𝑟)) mod 𝑏)) = (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝐵↑-𝑘) · 𝑟)) mod 𝐵)))
7 id 22 . 2 (𝐵 ∈ ℕ → 𝐵 ∈ ℕ)
8 zex 11984 . . . 4 ℤ ∈ V
9 ovex 7183 . . . 4 (0[,)+∞) ∈ V
108, 9pm3.2i 473 . . 3 (ℤ ∈ V ∧ (0[,)+∞) ∈ V)
11 eqid 2821 . . . 4 (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝐵↑-𝑘) · 𝑟)) mod 𝐵)) = (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝐵↑-𝑘) · 𝑟)) mod 𝐵))
1211mpoexg 7768 . . 3 ((ℤ ∈ V ∧ (0[,)+∞) ∈ V) → (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝐵↑-𝑘) · 𝑟)) mod 𝐵)) ∈ V)
1310, 12mp1i 13 . 2 (𝐵 ∈ ℕ → (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝐵↑-𝑘) · 𝑟)) mod 𝐵)) ∈ V)
141, 6, 7, 13fvmptd3 6786 1 (𝐵 ∈ ℕ → (digit‘𝐵) = (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝐵↑-𝑘) · 𝑟)) mod 𝐵)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 398   = wceq 1533  wcel 2110  Vcvv 3495  cfv 6350  (class class class)co 7150  cmpo 7152  0cc0 10531   · cmul 10536  +∞cpnf 10666  -cneg 10865  cn 11632  cz 11975  [,)cico 12734  cfl 13154   mod cmo 13231  cexp 13423  digitcdig 44648
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2156  ax-12 2172  ax-ext 2793  ax-rep 5183  ax-sep 5196  ax-nul 5203  ax-pow 5259  ax-pr 5322  ax-un 7455  ax-cnex 10587  ax-resscn 10588
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-ral 3143  df-rex 3144  df-reu 3145  df-rab 3147  df-v 3497  df-sbc 3773  df-csb 3884  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-nul 4292  df-if 4468  df-pw 4541  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4833  df-iun 4914  df-br 5060  df-opab 5122  df-mpt 5140  df-id 5455  df-xp 5556  df-rel 5557  df-cnv 5558  df-co 5559  df-dm 5560  df-rn 5561  df-res 5562  df-ima 5563  df-iota 6309  df-fun 6352  df-fn 6353  df-f 6354  df-f1 6355  df-fo 6356  df-f1o 6357  df-fv 6358  df-ov 7153  df-oprab 7154  df-mpo 7155  df-1st 7683  df-2nd 7684  df-neg 10867  df-z 11976  df-dig 44649
This theorem is referenced by:  digval  44651
  Copyright terms: Public domain W3C validator