Metamath Proof Explorer


Theorem dnival

Description: Value of the "distance to nearest integer" function. (Contributed by Asger C. Ipsen, 4-Apr-2021)

Ref Expression
Hypothesis dnival.1 T = x x + 1 2 x
Assertion dnival A T A = A + 1 2 A

Proof

Step Hyp Ref Expression
1 dnival.1 T = x x + 1 2 x
2 fvoveq1 x = A x + 1 2 = A + 1 2
3 id x = A x = A
4 2 3 oveq12d x = A x + 1 2 x = A + 1 2 A
5 4 fveq2d x = A x + 1 2 x = A + 1 2 A
6 fvex A + 1 2 A V
7 5 1 6 fvmpt A T A = A + 1 2 A