Metamath Proof Explorer


Theorem xp1d2m1eqxm1d2

Description: A complex number increased by 1, then divided by 2, then decreased by 1 equals the complex number decreased by 1 and then divided by 2. (Contributed by AV, 24-May-2020)

Ref Expression
Assertion xp1d2m1eqxm1d2 X X + 1 2 1 = X 1 2

Proof

Step Hyp Ref Expression
1 peano2cn X X + 1
2 1 halfcld X X + 1 2
3 peano2cnm X + 1 2 X + 1 2 1
4 2 3 syl X X + 1 2 1
5 peano2cnm X X 1
6 5 halfcld X X 1 2
7 2cnd X 2
8 2ne0 2 0
9 8 a1i X 2 0
10 1cnd X 1
11 2 10 7 subdird X X + 1 2 1 2 = X + 1 2 2 1 2
12 1 7 9 divcan1d X X + 1 2 2 = X + 1
13 7 mulid2d X 1 2 = 2
14 12 13 oveq12d X X + 1 2 2 1 2 = X + 1 - 2
15 5 7 9 divcan1d X X 1 2 2 = X 1
16 2m1e1 2 1 = 1
17 16 a1i X 2 1 = 1
18 17 oveq2d X X 2 1 = X 1
19 id X X
20 19 7 10 subsub3d X X 2 1 = X + 1 - 2
21 15 18 20 3eqtr2rd X X + 1 - 2 = X 1 2 2
22 11 14 21 3eqtrd X X + 1 2 1 2 = X 1 2 2
23 4 6 7 9 22 mulcan2ad X X + 1 2 1 = X 1 2