| Mathbox for Alexander van der Vekens |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > Mathboxes > digval | Structured version Visualization version GIF version | ||
| Description: The 𝐾 th digit of a nonnegative real number 𝑅 in the positional system with base 𝐵. (Contributed by AV, 23-May-2020.) |
| Ref | Expression |
|---|---|
| digval | ⊢ ((𝐵 ∈ ℕ ∧ 𝐾 ∈ ℤ ∧ 𝑅 ∈ (0[,)+∞)) → (𝐾(digit‘𝐵)𝑅) = ((⌊‘((𝐵↑ -𝐾) · 𝑅)) mod 𝐵)) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | digfval 49914 | . . 3 ⊢ (𝐵 ∈ ℕ → (digit‘𝐵) = (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝐵↑ -𝑘) · 𝑟)) mod 𝐵))) | |
| 2 | 1 | 3ad2ant1 1151 | . 2 ⊢ ((𝐵 ∈ ℕ ∧ 𝐾 ∈ ℤ ∧ 𝑅 ∈ (0[,)+∞)) → (digit‘𝐵) = (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝐵↑ -𝑘) · 𝑟)) mod 𝐵))) |
| 3 | negeq 11576 | . . . . . . . 8 ⊢ (𝑘 = 𝐾 → -𝑘 = -𝐾) | |
| 4 | 3 | oveq2d 7459 | . . . . . . 7 ⊢ (𝑘 = 𝐾 → (𝐵↑ -𝑘) = (𝐵↑ -𝐾)) |
| 5 | 4 | adantr 486 | . . . . . 6 ⊢ ((𝑘 = 𝐾 ∧ 𝑟 = 𝑅) → (𝐵↑ -𝑘) = (𝐵↑ -𝐾)) |
| 6 | simpr 490 | . . . . . 6 ⊢ ((𝑘 = 𝐾 ∧ 𝑟 = 𝑅) → 𝑟 = 𝑅) | |
| 7 | 5, 6 | oveq12d 7461 | . . . . 5 ⊢ ((𝑘 = 𝐾 ∧ 𝑟 = 𝑅) → ((𝐵↑ -𝑘) · 𝑟) = ((𝐵↑ -𝐾) · 𝑅)) |
| 8 | 7 | fveq2d 6912 | . . . 4 ⊢ ((𝑘 = 𝐾 ∧ 𝑟 = 𝑅) → (⌊‘((𝐵↑ -𝑘) · 𝑟)) = (⌊‘((𝐵↑ -𝐾) · 𝑅))) |
| 9 | 8 | oveq1d 7458 | . . 3 ⊢ ((𝑘 = 𝐾 ∧ 𝑟 = 𝑅) → ((⌊‘((𝐵↑ -𝑘) · 𝑟)) mod 𝐵) = ((⌊‘((𝐵↑ -𝐾) · 𝑅)) mod 𝐵)) |
| 10 | 9 | adantl 487 | . 2 ⊢ (((𝐵 ∈ ℕ ∧ 𝐾 ∈ ℤ ∧ 𝑅 ∈ (0[,)+∞)) ∧ (𝑘 = 𝐾 ∧ 𝑟 = 𝑅)) → ((⌊‘((𝐵↑ -𝑘) · 𝑟)) mod 𝐵) = ((⌊‘((𝐵↑ -𝐾) · 𝑅)) mod 𝐵)) |
| 11 | simp2 1155 | . 2 ⊢ ((𝐵 ∈ ℕ ∧ 𝐾 ∈ ℤ ∧ 𝑅 ∈ (0[,)+∞)) → 𝐾 ∈ ℤ) | |
| 12 | simp3 1156 | . 2 ⊢ ((𝐵 ∈ ℕ ∧ 𝐾 ∈ ℤ ∧ 𝑅 ∈ (0[,)+∞)) → 𝑅 ∈ (0[,)+∞)) | |
| 13 | ovexd 7478 | . 2 ⊢ ((𝐵 ∈ ℕ ∧ 𝐾 ∈ ℤ ∧ 𝑅 ∈ (0[,)+∞)) → ((⌊‘((𝐵↑ -𝐾) · 𝑅)) mod 𝐵) ∈ V) | |
| 14 | 2, 10, 11, 12, 13 | ovmpod 7596 | 1 ⊢ ((𝐵 ∈ ℕ ∧ 𝐾 ∈ ℤ ∧ 𝑅 ∈ (0[,)+∞)) → (𝐾(digit‘𝐵)𝑅) = ((⌊‘((𝐵↑ -𝐾) · 𝑅)) mod 𝐵)) |
| Colors of variables: wff setvar class |
| This proof depends on syntax axioms: → wi 4 ∧ wa 401 ∧ w3a 1103 = wceq 1570 ∈ wcel 2147 Vcvv 3454 ‘cfv 6558 (class class class)co 7443 ∈ cmpo 7445 0cc0 11227 · cmul 11232 +∞cpnf 11367 -cneg 11569 ℕcn 12362 ℤcz 12720 [,)cico 13505 ⌊cfl 13957 mod cmo 14036 ↑cexp 14231 digitcdig 49912 |
| 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 5235 ax-sep 5252 ax-nul 5263 ax-pow 5331 ax-pr 5395 ax-un 7775 ax-cnex 11283 ax-resscn 11284 |
| 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 5171 df-mpt 5190 df-id 5550 df-xp 5661 df-rel 5662 df-cnv 5663 df-co 5664 df-dm 5665 df-rn 5666 df-res 5667 df-ima 5668 df-iota 6512 df-fun 6560 df-fn 6561 df-f 6562 df-f1 6563 df-fo 6564 df-f1o 6565 df-fv 6566 df-ov 7446 df-oprab 7447 df-mpo 7448 df-1st 8025 df-2nd 8026 df-neg 11571 df-z 12721 df-dig 49913 |
| This theorem is used by: digvalnn0 49916 nn0digval 49917 dignn0fr 49918 dig0 49923 dig2nn0 49928 |
| Copyright terms: Public domain | W3C validator |