| Mathbox for Asger C. Ipsen |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > Mathboxes > dnival | Structured version Visualization version GIF version | ||
| Description: Value of the "distance to nearest integer" function. (Contributed by Asger C. Ipsen, 4-Apr-2021.) |
| Ref | Expression |
|---|---|
| dnival.1 | ⊢ 𝑇 = (𝑥 ∈ ℝ ↦ (abs‘((⌊‘(𝑥 + (1 / 2))) − 𝑥))) |
| Ref | Expression |
|---|---|
| dnival | ⊢ (𝐴 ∈ ℝ → (𝑇‘𝐴) = (abs‘((⌊‘(𝐴 + (1 / 2))) − 𝐴))) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | fvoveq1 7417 | . . . 4 ⊢ (𝑥 = 𝐴 → (⌊‘(𝑥 + (1 / 2))) = (⌊‘(𝐴 + (1 / 2)))) | |
| 2 | id 22 | . . . 4 ⊢ (𝑥 = 𝐴 → 𝑥 = 𝐴) | |
| 3 | 1, 2 | oveq12d 7412 | . . 3 ⊢ (𝑥 = 𝐴 → ((⌊‘(𝑥 + (1 / 2))) − 𝑥) = ((⌊‘(𝐴 + (1 / 2))) − 𝐴)) |
| 4 | 3 | fveq2d 6869 | . 2 ⊢ (𝑥 = 𝐴 → (abs‘((⌊‘(𝑥 + (1 / 2))) − 𝑥)) = (abs‘((⌊‘(𝐴 + (1 / 2))) − 𝐴))) |
| 5 | dnival.1 | . 2 ⊢ 𝑇 = (𝑥 ∈ ℝ ↦ (abs‘((⌊‘(𝑥 + (1 / 2))) − 𝑥))) | |
| 6 | fvex 6878 | . 2 ⊢ (abs‘((⌊‘(𝐴 + (1 / 2))) − 𝐴)) ∈ V | |
| 7 | 4, 5, 6 | fvmpt 6975 | 1 ⊢ (𝐴 ∈ ℝ → (𝑇‘𝐴) = (abs‘((⌊‘(𝐴 + (1 / 2))) − 𝐴))) |
| Colors of variables: wff setvar class |
| Syntax hints: → wi 4 = wceq 1540 ∈ wcel 2109 ↦ cmpt 5196 ‘cfv 6519 (class class class)co 7394 ℝcr 11085 1c1 11087 + caddc 11089 − cmin 11423 / cdiv 11851 2c2 12252 ⌊cfl 13764 abscabs 15210 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1795 ax-4 1809 ax-5 1910 ax-6 1967 ax-7 2008 ax-8 2111 ax-9 2119 ax-10 2142 ax-11 2158 ax-12 2178 ax-ext 2702 ax-sep 5259 ax-nul 5269 ax-pr 5395 |
| This theorem depends on definitions: df-bi 207 df-an 396 df-or 848 df-3an 1088 df-tru 1543 df-fal 1553 df-ex 1780 df-nf 1784 df-sb 2066 df-mo 2534 df-eu 2563 df-clab 2709 df-cleq 2722 df-clel 2804 df-nfc 2880 df-ne 2928 df-ral 3047 df-rex 3056 df-rab 3412 df-v 3457 df-dif 3925 df-un 3927 df-ss 3939 df-nul 4305 df-if 4497 df-sn 4598 df-pr 4600 df-op 4604 df-uni 4880 df-br 5116 df-opab 5178 df-mpt 5197 df-id 5541 df-xp 5652 df-rel 5653 df-cnv 5654 df-co 5655 df-dm 5656 df-iota 6472 df-fun 6521 df-fv 6527 df-ov 7397 |
| This theorem is referenced by: dnicld2 36458 dnizeq0 36460 dnizphlfeqhlf 36461 dnibndlem1 36463 knoppcnlem4 36481 |
| Copyright terms: Public domain | W3C validator |