| 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 7393 | . . . 4 ⊢ (𝑥 = 𝐴 → (⌊‘(𝑥 + (1 / 2))) = (⌊‘(𝐴 + (1 / 2)))) | |
| 2 | id 22 | . . . 4 ⊢ (𝑥 = 𝐴 → 𝑥 = 𝐴) | |
| 3 | 1, 2 | oveq12d 7388 | . . 3 ⊢ (𝑥 = 𝐴 → ((⌊‘(𝑥 + (1 / 2))) − 𝑥) = ((⌊‘(𝐴 + (1 / 2))) − 𝐴)) |
| 4 | 3 | fveq2d 6848 | . 2 ⊢ (𝑥 = 𝐴 → (abs‘((⌊‘(𝑥 + (1 / 2))) − 𝑥)) = (abs‘((⌊‘(𝐴 + (1 / 2))) − 𝐴))) |
| 5 | dnival.1 | . 2 ⊢ 𝑇 = (𝑥 ∈ ℝ ↦ (abs‘((⌊‘(𝑥 + (1 / 2))) − 𝑥))) | |
| 6 | fvex 6857 | . 2 ⊢ (abs‘((⌊‘(𝐴 + (1 / 2))) − 𝐴)) ∈ V | |
| 7 | 4, 5, 6 | fvmpt 6951 | 1 ⊢ (𝐴 ∈ ℝ → (𝑇‘𝐴) = (abs‘((⌊‘(𝐴 + (1 / 2))) − 𝐴))) |
| Colors of variables: wff setvar class |
| Syntax hints: → wi 4 = wceq 1542 ∈ wcel 2114 ↦ cmpt 5181 ‘cfv 6502 (class class class)co 7370 ℝcr 11039 1c1 11041 + caddc 11043 − cmin 11378 / cdiv 11808 2c2 12214 ⌊cfl 13724 abscabs 15171 |
| 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 5245 ax-nul 5255 ax-pr 5381 |
| 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 3063 df-rab 3402 df-v 3444 df-dif 3906 df-un 3908 df-in 3910 df-ss 3920 df-nul 4288 df-if 4482 df-sn 4583 df-pr 4585 df-op 4589 df-uni 4866 df-br 5101 df-opab 5163 df-mpt 5182 df-id 5529 df-xp 5640 df-rel 5641 df-cnv 5642 df-co 5643 df-dm 5644 df-iota 6458 df-fun 6504 df-fv 6510 df-ov 7373 |
| This theorem is referenced by: dnicld2 36701 dnizeq0 36703 dnizphlfeqhlf 36704 dnibndlem1 36706 knoppcnlem4 36724 |
| Copyright terms: Public domain | W3C validator |