| 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 7383 | . . . 4 ⊢ (𝑥 = 𝐴 → (⌊‘(𝑥 + (1 / 2))) = (⌊‘(𝐴 + (1 / 2)))) | |
| 2 | id 22 | . . . 4 ⊢ (𝑥 = 𝐴 → 𝑥 = 𝐴) | |
| 3 | 1, 2 | oveq12d 7378 | . . 3 ⊢ (𝑥 = 𝐴 → ((⌊‘(𝑥 + (1 / 2))) − 𝑥) = ((⌊‘(𝐴 + (1 / 2))) − 𝐴)) |
| 4 | 3 | fveq2d 6839 | . 2 ⊢ (𝑥 = 𝐴 → (abs‘((⌊‘(𝑥 + (1 / 2))) − 𝑥)) = (abs‘((⌊‘(𝐴 + (1 / 2))) − 𝐴))) |
| 5 | dnival.1 | . 2 ⊢ 𝑇 = (𝑥 ∈ ℝ ↦ (abs‘((⌊‘(𝑥 + (1 / 2))) − 𝑥))) | |
| 6 | fvex 6848 | . 2 ⊢ (abs‘((⌊‘(𝐴 + (1 / 2))) − 𝐴)) ∈ V | |
| 7 | 4, 5, 6 | fvmpt 6942 | 1 ⊢ (𝐴 ∈ ℝ → (𝑇‘𝐴) = (abs‘((⌊‘(𝐴 + (1 / 2))) − 𝐴))) |
| Colors of variables: wff setvar class |
| Syntax hints: → wi 4 = wceq 1542 ∈ wcel 2114 ↦ cmpt 5180 ‘cfv 6493 (class class class)co 7360 ℝcr 11029 1c1 11031 + caddc 11033 − cmin 11368 / cdiv 11798 2c2 12204 ⌊cfl 13714 abscabs 15161 |
| 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 1912 ax-6 1969 ax-7 2010 ax-8 2116 ax-9 2124 ax-10 2147 ax-11 2163 ax-12 2185 ax-ext 2709 ax-sep 5242 ax-nul 5252 ax-pr 5378 |
| This theorem depends on definitions: df-bi 207 df-an 396 df-or 849 df-3an 1089 df-tru 1545 df-fal 1555 df-ex 1782 df-nf 1786 df-sb 2069 df-mo 2540 df-eu 2570 df-clab 2716 df-cleq 2729 df-clel 2812 df-nfc 2886 df-ne 2934 df-ral 3053 df-rex 3062 df-rab 3401 df-v 3443 df-dif 3905 df-un 3907 df-ss 3919 df-nul 4287 df-if 4481 df-sn 4582 df-pr 4584 df-op 4588 df-uni 4865 df-br 5100 df-opab 5162 df-mpt 5181 df-id 5520 df-xp 5631 df-rel 5632 df-cnv 5633 df-co 5634 df-dm 5635 df-iota 6449 df-fun 6495 df-fv 6501 df-ov 7363 |
| This theorem is referenced by: dnicld2 36675 dnizeq0 36677 dnizphlfeqhlf 36678 dnibndlem1 36680 knoppcnlem4 36698 |
| Copyright terms: Public domain | W3C validator |