| 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 49923 | . 2 ⊢ digit = (𝑏 ∈ ℕ ↦ (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝑏↑ -𝑘) · 𝑟)) mod 𝑏))) | |
| 2 | oveq1 7453 | . . . . 5 ⊢ (𝑏 = 𝐵 → (𝑏↑ -𝑘) = (𝐵↑ -𝑘)) | |
| 3 | 2 | fvoveq1d 7468 | . . . 4 ⊢ (𝑏 = 𝐵 → (⌊‘((𝑏↑ -𝑘) · 𝑟)) = (⌊‘((𝐵↑ -𝑘) · 𝑟))) |
| 4 | id 23 | . . . 4 ⊢ (𝑏 = 𝐵 → 𝑏 = 𝐵) | |
| 5 | 3, 4 | oveq12d 7464 | . . 3 ⊢ (𝑏 = 𝐵 → ((⌊‘((𝑏↑ -𝑘) · 𝑟)) mod 𝑏) = ((⌊‘((𝐵↑ -𝑘) · 𝑟)) mod 𝐵)) |
| 6 | 5 | mpoeq3dv 7525 | . 2 ⊢ (𝑏 = 𝐵 → (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝑏↑ -𝑘) · 𝑟)) mod 𝑏)) = (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝐵↑ -𝑘) · 𝑟)) mod 𝐵))) |
| 7 | id 23 | . 2 ⊢ (𝐵 ∈ ℕ → 𝐵 ∈ ℕ) | |
| 8 | zex 12732 | . . . 4 ⊢ ℤ ∈ V | |
| 9 | ovex 7479 | . . . 4 ⊢ (0[,)+∞) ∈ V | |
| 10 | 8, 9 | pm3.2i 476 | . . 3 ⊢ (ℤ ∈ V ∧ (0[,)+∞) ∈ V) |
| 11 | eqid 2763 | . . . 4 ⊢ (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝐵↑ -𝑘) · 𝑟)) mod 𝐵)) = (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝐵↑ -𝑘) · 𝑟)) mod 𝐵)) | |
| 12 | 11 | mpoexg 8117 | . . 3 ⊢ ((ℤ ∈ V ∧ (0[,)+∞) ∈ V) → (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝐵↑ -𝑘) · 𝑟)) mod 𝐵)) ∈ V) |
| 13 | 10, 12 | mp1i 14 | . 2 ⊢ (𝐵 ∈ ℕ → (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝐵↑ -𝑘) · 𝑟)) mod 𝐵)) ∈ V) |
| 14 | 1, 6, 7, 13 | fvmptd3 7043 | 1 ⊢ (𝐵 ∈ ℕ → (digit‘𝐵) = (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝐵↑ -𝑘) · 𝑟)) mod 𝐵))) |
| Colors of variables: wff setvar class |
| This proof depends on syntax axioms: → wi 4 ∧ wa 401 = wceq 1570 ∈ wcel 2147 Vcvv 3454 ‘cfv 6561 (class class class)co 7446 ∈ cmpo 7448 0cc0 11230 · cmul 11235 +∞cpnf 11370 -cneg 11572 ℕcn 12365 ℤcz 12723 [,)cico 13508 ⌊cfl 13960 mod cmo 14039 ↑cexp 14234 digitcdig 49922 |
| This proof depends on axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1828 ax-4 1842 ax-5 1945 ax-6 2002 ax-7 2043 ax-8 2149 ax-9 2157 ax-10 2180 ax-11 2197 ax-12 2216 ax-ext 2735 ax-rep 5236 ax-sep 5253 ax-nul 5264 ax-pow 5332 ax-pr 5396 ax-un 7778 ax-cnex 11286 ax-resscn 11287 |
| This proof depends on definitions: df-bi 210 df-an 402 df-or 862 df-3or 1104 df-3an 1105 df-tru 1573 df-fal 1583 df-ex 1813 df-nf 1817 df-sb 2102 df-mo 2567 df-eu 2597 df-clab 2742 df-cleq 2755 df-clel 2839 df-nfc 2913 df-ne 2960 df-ral 3081 df-rex 3091 df-reu 3370 df-rab 3417 df-v 3456 df-sbc 3743 df-csb 3852 df-ss 3901 df-dif 4050 df-in 4094 df-un 4154 df-nul 4282 df-if 4486 df-pw 4562 df-sn 4589 df-pr 4591 df-op 4839 df-uni 4871 df-iun 4956 df-br 5107 df-opab 5172 df-mpt 5191 df-id 5551 df-xp 5662 df-rel 5663 df-cnv 5664 df-co 5665 df-dm 5666 df-rn 5667 df-res 5668 df-ima 5669 df-iota 6515 df-fun 6563 df-fn 6564 df-f 6565 df-f1 6566 df-fo 6567 df-f1o 6568 df-fv 6569 df-ov 7449 df-oprab 7450 df-mpo 7451 df-1st 8028 df-2nd 8029 df-neg 11574 df-z 12724 df-dig 49923 |
| This theorem is used by: digval 49925 |
| Copyright terms: Public domain | W3C validator |