Metamath Proof Explorer


Theorem modfrac

Description: The fractional part of a number is the number modulo 1. (Contributed by NM, 11-Nov-2008)

Ref Expression
Assertion modfrac A A mod 1 = A A

Proof

Step Hyp Ref Expression
1 1rp 1 +
2 modval A 1 + A mod 1 = A 1 A 1
3 1 2 mpan2 A A mod 1 = A 1 A 1
4 recn A A
5 4 div1d A A 1 = A
6 5 fveq2d A A 1 = A
7 6 oveq2d A 1 A 1 = 1 A
8 reflcl A A
9 8 recnd A A
10 9 mulid2d A 1 A = A
11 7 10 eqtrd A 1 A 1 = A
12 11 oveq2d A A 1 A 1 = A A
13 3 12 eqtrd A A mod 1 = A A