Metamath Proof Explorer


Theorem ax5seglem8

Description: Lemma for ax5seg . Use the weak deduction theorem to eliminate the hypotheses from ax5seglem7 . (Contributed by Scott Fenton, 11-Jun-2013)

Ref Expression
Assertion ax5seglem8 A T C D T C D 2 = 1 T A + T C - D 2 + 1 T T A C 2 A D 2

Proof

Step Hyp Ref Expression
1 oveq2 A = if A A 0 1 T A = 1 T if A A 0
2 1 oveq1d A = if A A 0 1 T A + T C = 1 T if A A 0 + T C
3 2 oveq1d A = if A A 0 1 T A + T C - D = 1 T if A A 0 + T C - D
4 3 oveq1d A = if A A 0 1 T A + T C - D 2 = 1 T if A A 0 + T C - D 2
5 oveq1 A = if A A 0 A C = if A A 0 C
6 5 oveq1d A = if A A 0 A C 2 = if A A 0 C 2
7 6 oveq2d A = if A A 0 T A C 2 = T if A A 0 C 2
8 oveq1 A = if A A 0 A D = if A A 0 D
9 8 oveq1d A = if A A 0 A D 2 = if A A 0 D 2
10 7 9 oveq12d A = if A A 0 T A C 2 A D 2 = T if A A 0 C 2 if A A 0 D 2
11 10 oveq2d A = if A A 0 1 T T A C 2 A D 2 = 1 T T if A A 0 C 2 if A A 0 D 2
12 4 11 oveq12d A = if A A 0 1 T A + T C - D 2 + 1 T T A C 2 A D 2 = 1 T if A A 0 + T C - D 2 + 1 T T if A A 0 C 2 if A A 0 D 2
13 12 eqeq2d A = if A A 0 T C D 2 = 1 T A + T C - D 2 + 1 T T A C 2 A D 2 T C D 2 = 1 T if A A 0 + T C - D 2 + 1 T T if A A 0 C 2 if A A 0 D 2
14 oveq1 T = if T T 0 T C D 2 = if T T 0 C D 2
15 oveq2 T = if T T 0 1 T = 1 if T T 0
16 15 oveq1d T = if T T 0 1 T if A A 0 = 1 if T T 0 if A A 0
17 oveq1 T = if T T 0 T C = if T T 0 C
18 16 17 oveq12d T = if T T 0 1 T if A A 0 + T C = 1 if T T 0 if A A 0 + if T T 0 C
19 18 oveq1d T = if T T 0 1 T if A A 0 + T C - D = 1 if T T 0 if A A 0 + if T T 0 C - D
20 19 oveq1d T = if T T 0 1 T if A A 0 + T C - D 2 = 1 if T T 0 if A A 0 + if T T 0 C - D 2
21 oveq1 T = if T T 0 T if A A 0 C 2 = if T T 0 if A A 0 C 2
22 21 oveq1d T = if T T 0 T if A A 0 C 2 if A A 0 D 2 = if T T 0 if A A 0 C 2 if A A 0 D 2
23 15 22 oveq12d T = if T T 0 1 T T if A A 0 C 2 if A A 0 D 2 = 1 if T T 0 if T T 0 if A A 0 C 2 if A A 0 D 2
24 20 23 oveq12d T = if T T 0 1 T if A A 0 + T C - D 2 + 1 T T if A A 0 C 2 if A A 0 D 2 = 1 if T T 0 if A A 0 + if T T 0 C - D 2 + 1 if T T 0 if T T 0 if A A 0 C 2 if A A 0 D 2
25 14 24 eqeq12d T = if T T 0 T C D 2 = 1 T if A A 0 + T C - D 2 + 1 T T if A A 0 C 2 if A A 0 D 2 if T T 0 C D 2 = 1 if T T 0 if A A 0 + if T T 0 C - D 2 + 1 if T T 0 if T T 0 if A A 0 C 2 if A A 0 D 2
26 oveq1 C = if C C 0 C D = if C C 0 D
27 26 oveq1d C = if C C 0 C D 2 = if C C 0 D 2
28 27 oveq2d C = if C C 0 if T T 0 C D 2 = if T T 0 if C C 0 D 2
29 oveq2 C = if C C 0 if T T 0 C = if T T 0 if C C 0
30 29 oveq2d C = if C C 0 1 if T T 0 if A A 0 + if T T 0 C = 1 if T T 0 if A A 0 + if T T 0 if C C 0
31 30 oveq1d C = if C C 0 1 if T T 0 if A A 0 + if T T 0 C - D = 1 if T T 0 if A A 0 + if T T 0 if C C 0 - D
32 31 oveq1d C = if C C 0 1 if T T 0 if A A 0 + if T T 0 C - D 2 = 1 if T T 0 if A A 0 + if T T 0 if C C 0 - D 2
33 oveq2 C = if C C 0 if A A 0 C = if A A 0 if C C 0
34 33 oveq1d C = if C C 0 if A A 0 C 2 = if A A 0 if C C 0 2
35 34 oveq2d C = if C C 0 if T T 0 if A A 0 C 2 = if T T 0 if A A 0 if C C 0 2
36 35 oveq1d C = if C C 0 if T T 0 if A A 0 C 2 if A A 0 D 2 = if T T 0 if A A 0 if C C 0 2 if A A 0 D 2
37 36 oveq2d C = if C C 0 1 if T T 0 if T T 0 if A A 0 C 2 if A A 0 D 2 = 1 if T T 0 if T T 0 if A A 0 if C C 0 2 if A A 0 D 2
38 32 37 oveq12d C = if C C 0 1 if T T 0 if A A 0 + if T T 0 C - D 2 + 1 if T T 0 if T T 0 if A A 0 C 2 if A A 0 D 2 = 1 if T T 0 if A A 0 + if T T 0 if C C 0 - D 2 + 1 if T T 0 if T T 0 if A A 0 if C C 0 2 if A A 0 D 2
39 28 38 eqeq12d C = if C C 0 if T T 0 C D 2 = 1 if T T 0 if A A 0 + if T T 0 C - D 2 + 1 if T T 0 if T T 0 if A A 0 C 2 if A A 0 D 2 if T T 0 if C C 0 D 2 = 1 if T T 0 if A A 0 + if T T 0 if C C 0 - D 2 + 1 if T T 0 if T T 0 if A A 0 if C C 0 2 if A A 0 D 2
40 oveq2 D = if D D 0 if C C 0 D = if C C 0 if D D 0
41 40 oveq1d D = if D D 0 if C C 0 D 2 = if C C 0 if D D 0 2
42 41 oveq2d D = if D D 0 if T T 0 if C C 0 D 2 = if T T 0 if C C 0 if D D 0 2
43 oveq2 D = if D D 0 1 if T T 0 if A A 0 + if T T 0 if C C 0 - D = 1 if T T 0 if A A 0 + if T T 0 if C C 0 - if D D 0
44 43 oveq1d D = if D D 0 1 if T T 0 if A A 0 + if T T 0 if C C 0 - D 2 = 1 if T T 0 if A A 0 + if T T 0 if C C 0 - if D D 0 2
45 oveq2 D = if D D 0 if A A 0 D = if A A 0 if D D 0
46 45 oveq1d D = if D D 0 if A A 0 D 2 = if A A 0 if D D 0 2
47 46 oveq2d D = if D D 0 if T T 0 if A A 0 if C C 0 2 if A A 0 D 2 = if T T 0 if A A 0 if C C 0 2 if A A 0 if D D 0 2
48 47 oveq2d D = if D D 0 1 if T T 0 if T T 0 if A A 0 if C C 0 2 if A A 0 D 2 = 1 if T T 0 if T T 0 if A A 0 if C C 0 2 if A A 0 if D D 0 2
49 44 48 oveq12d D = if D D 0 1 if T T 0 if A A 0 + if T T 0 if C C 0 - D 2 + 1 if T T 0 if T T 0 if A A 0 if C C 0 2 if A A 0 D 2 = 1 if T T 0 if A A 0 + if T T 0 if C C 0 - if D D 0 2 + 1 if T T 0 if T T 0 if A A 0 if C C 0 2 if A A 0 if D D 0 2
50 42 49 eqeq12d D = if D D 0 if T T 0 if C C 0 D 2 = 1 if T T 0 if A A 0 + if T T 0 if C C 0 - D 2 + 1 if T T 0 if T T 0 if A A 0 if C C 0 2 if A A 0 D 2 if T T 0 if C C 0 if D D 0 2 = 1 if T T 0 if A A 0 + if T T 0 if C C 0 - if D D 0 2 + 1 if T T 0 if T T 0 if A A 0 if C C 0 2 if A A 0 if D D 0 2
51 0cn 0
52 51 elimel if A A 0
53 51 elimel if T T 0
54 51 elimel if C C 0
55 51 elimel if D D 0
56 52 53 54 55 ax5seglem7 if T T 0 if C C 0 if D D 0 2 = 1 if T T 0 if A A 0 + if T T 0 if C C 0 - if D D 0 2 + 1 if T T 0 if T T 0 if A A 0 if C C 0 2 if A A 0 if D D 0 2
57 13 25 39 50 56 dedth4h A T C D T C D 2 = 1 T A + T C - D 2 + 1 T T A C 2 A D 2