Mathbox for Alexander van der Vekens |
< Previous
Next >
Nearby theorems |
||
Mirrors > Home > MPE Home > Th. List > Mathboxes > digfval | Structured version Visualization version GIF version |
Description: Operation to obtain the 𝑘 th digit of a nonnegative real number 𝑟 in the positional system with base 𝐵. (Contributed by AV, 23-May-2020.) |
Ref | Expression |
---|---|
digfval | ⊢ (𝐵 ∈ ℕ → (digit‘𝐵) = (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝐵↑-𝑘) · 𝑟)) mod 𝐵))) |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | df-dig 45403 | . 2 ⊢ digit = (𝑏 ∈ ℕ ↦ (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝑏↑-𝑘) · 𝑟)) mod 𝑏))) | |
2 | oveq1 7162 | . . . . 5 ⊢ (𝑏 = 𝐵 → (𝑏↑-𝑘) = (𝐵↑-𝑘)) | |
3 | 2 | fvoveq1d 7177 | . . . 4 ⊢ (𝑏 = 𝐵 → (⌊‘((𝑏↑-𝑘) · 𝑟)) = (⌊‘((𝐵↑-𝑘) · 𝑟))) |
4 | id 22 | . . . 4 ⊢ (𝑏 = 𝐵 → 𝑏 = 𝐵) | |
5 | 3, 4 | oveq12d 7173 | . . 3 ⊢ (𝑏 = 𝐵 → ((⌊‘((𝑏↑-𝑘) · 𝑟)) mod 𝑏) = ((⌊‘((𝐵↑-𝑘) · 𝑟)) mod 𝐵)) |
6 | 5 | mpoeq3dv 7232 | . 2 ⊢ (𝑏 = 𝐵 → (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝑏↑-𝑘) · 𝑟)) mod 𝑏)) = (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝐵↑-𝑘) · 𝑟)) mod 𝐵))) |
7 | id 22 | . 2 ⊢ (𝐵 ∈ ℕ → 𝐵 ∈ ℕ) | |
8 | zex 12034 | . . . 4 ⊢ ℤ ∈ V | |
9 | ovex 7188 | . . . 4 ⊢ (0[,)+∞) ∈ V | |
10 | 8, 9 | pm3.2i 474 | . . 3 ⊢ (ℤ ∈ V ∧ (0[,)+∞) ∈ V) |
11 | eqid 2758 | . . . 4 ⊢ (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝐵↑-𝑘) · 𝑟)) mod 𝐵)) = (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝐵↑-𝑘) · 𝑟)) mod 𝐵)) | |
12 | 11 | mpoexg 7784 | . . 3 ⊢ ((ℤ ∈ V ∧ (0[,)+∞) ∈ V) → (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝐵↑-𝑘) · 𝑟)) mod 𝐵)) ∈ V) |
13 | 10, 12 | mp1i 13 | . 2 ⊢ (𝐵 ∈ ℕ → (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝐵↑-𝑘) · 𝑟)) mod 𝐵)) ∈ V) |
14 | 1, 6, 7, 13 | fvmptd3 6786 | 1 ⊢ (𝐵 ∈ ℕ → (digit‘𝐵) = (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝐵↑-𝑘) · 𝑟)) mod 𝐵))) |
Colors of variables: wff setvar class |
Syntax hints: → wi 4 ∧ wa 399 = wceq 1538 ∈ wcel 2111 Vcvv 3409 ‘cfv 6339 (class class class)co 7155 ∈ cmpo 7157 0cc0 10580 · cmul 10585 +∞cpnf 10715 -cneg 10914 ℕcn 11679 ℤcz 12025 [,)cico 12786 ⌊cfl 13214 mod cmo 13291 ↑cexp 13484 digitcdig 45402 |
This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1797 ax-4 1811 ax-5 1911 ax-6 1970 ax-7 2015 ax-8 2113 ax-9 2121 ax-10 2142 ax-11 2158 ax-12 2175 ax-ext 2729 ax-rep 5159 ax-sep 5172 ax-nul 5179 ax-pow 5237 ax-pr 5301 ax-un 7464 ax-cnex 10636 ax-resscn 10637 |
This theorem depends on definitions: df-bi 210 df-an 400 df-or 845 df-3or 1085 df-3an 1086 df-tru 1541 df-fal 1551 df-ex 1782 df-nf 1786 df-sb 2070 df-mo 2557 df-eu 2588 df-clab 2736 df-cleq 2750 df-clel 2830 df-nfc 2901 df-ne 2952 df-ral 3075 df-rex 3076 df-reu 3077 df-rab 3079 df-v 3411 df-sbc 3699 df-csb 3808 df-dif 3863 df-un 3865 df-in 3867 df-ss 3877 df-nul 4228 df-if 4424 df-pw 4499 df-sn 4526 df-pr 4528 df-op 4532 df-uni 4802 df-iun 4888 df-br 5036 df-opab 5098 df-mpt 5116 df-id 5433 df-xp 5533 df-rel 5534 df-cnv 5535 df-co 5536 df-dm 5537 df-rn 5538 df-res 5539 df-ima 5540 df-iota 6298 df-fun 6341 df-fn 6342 df-f 6343 df-f1 6344 df-fo 6345 df-f1o 6346 df-fv 6347 df-ov 7158 df-oprab 7159 df-mpo 7160 df-1st 7698 df-2nd 7699 df-neg 10916 df-z 12026 df-dig 45403 |
This theorem is referenced by: digval 45405 |
Copyright terms: Public domain | W3C validator |