| 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 7437 | . . . 4 ⊢ (𝑥 = 𝐴 → (⌊‘(𝑥 + (1 / 2))) = (⌊‘(𝐴 + (1 / 2)))) | |
| 2 | id 23 | . . . 4 ⊢ (𝑥 = 𝐴 → 𝑥 = 𝐴) | |
| 3 | 1, 2 | oveq12d 7432 | . . 3 ⊢ (𝑥 = 𝐴 → ((⌊‘(𝑥 + (1 / 2))) − 𝑥) = ((⌊‘(𝐴 + (1 / 2))) − 𝐴)) |
| 4 | 3 | fveq2d 6889 | . 2 ⊢ (𝑥 = 𝐴 → (abs‘((⌊‘(𝑥 + (1 / 2))) − 𝑥)) = (abs‘((⌊‘(𝐴 + (1 / 2))) − 𝐴))) |
| 5 | dnival.1 | . 2 ⊢ 𝑇 = (𝑥 ∈ ℝ ↦ (abs‘((⌊‘(𝑥 + (1 / 2))) − 𝑥))) | |
| 6 | fvex 6898 | . 2 ⊢ (abs‘((⌊‘(𝐴 + (1 / 2))) − 𝐴)) ∈ V | |
| 7 | 4, 5, 6 | fvmpt 6993 | 1 ⊢ (𝐴 ∈ ℝ → (𝑇‘𝐴) = (abs‘((⌊‘(𝐴 + (1 / 2))) − 𝐴))) |
| Colors of variables: wff setvar class |
| Syntax hints: → wi 4 = wceq 1568 ∈ wcel 2150 ↦ cmpt 5197 ‘cfv 6540 (class class class)co 7414 ℝcr 11102 1c1 11104 + caddc 11106 − cmin 11444 / cdiv 11874 2c2 12298 ⌊cfl 13826 abscabs 15288 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1823 ax-4 1837 ax-5 1938 ax-6 1995 ax-7 2036 ax-8 2152 ax-9 2160 ax-10 2183 ax-11 2199 ax-12 2220 ax-ext 2742 ax-sep 5262 ax-nul 5274 ax-pr 5408 |
| This theorem depends on definitions: df-bi 210 df-an 401 df-or 861 df-3an 1103 df-tru 1571 df-fal 1581 df-ex 1808 df-nf 1812 df-sb 2099 df-mo 2574 df-eu 2604 df-clab 2749 df-cleq 2762 df-clel 2845 df-nfc 2919 df-ne 2966 df-ral 3087 df-rex 3097 df-rab 3424 df-v 3464 df-dif 3916 df-un 3918 df-in 3920 df-ss 3930 df-nul 4295 df-if 4493 df-sn 4595 df-pr 4597 df-op 4601 df-uni 4878 df-br 5115 df-opab 5179 df-mpt 5198 df-id 5560 df-xp 5671 df-rel 5672 df-cnv 5673 df-co 5674 df-dm 5675 df-iota 6496 df-fun 6542 df-fv 6548 df-ov 7417 |
| This theorem is referenced by: dnicld2 37010 dnizeq0 37012 dnizphlfeqhlf 37013 dnibndlem1 37015 knoppcnlem4 37033 |
| Copyright terms: Public domain | W3C validator |