MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  addassnq Structured version   Visualization version   GIF version

Theorem addassnq 10061
Description: Addition of positive fractions is associative. (Contributed by NM, 2-Sep-1995.) (Revised by Mario Carneiro, 28-Apr-2013.) (New usage is discouraged.)
Assertion
Ref Expression
addassnq ((𝐴 +Q 𝐵) +Q 𝐶) = (𝐴 +Q (𝐵 +Q 𝐶))

Proof of Theorem addassnq
Dummy variables 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 addasspi 9998 . . . . . . . 8 ((((1st𝐴) ·N ((2nd𝐵) ·N (2nd𝐶))) +N (((1st𝐵) ·N (2nd𝐴)) ·N (2nd𝐶))) +N ((1st𝐶) ·N ((2nd𝐴) ·N (2nd𝐵)))) = (((1st𝐴) ·N ((2nd𝐵) ·N (2nd𝐶))) +N ((((1st𝐵) ·N (2nd𝐴)) ·N (2nd𝐶)) +N ((1st𝐶) ·N ((2nd𝐴) ·N (2nd𝐵)))))
2 ovex 6902 . . . . . . . . . . 11 ((1st𝐴) ·N (2nd𝐵)) ∈ V
3 ovex 6902 . . . . . . . . . . 11 ((1st𝐵) ·N (2nd𝐴)) ∈ V
4 fvex 6417 . . . . . . . . . . 11 (2nd𝐶) ∈ V
5 mulcompi 9999 . . . . . . . . . . 11 (𝑥 ·N 𝑦) = (𝑦 ·N 𝑥)
6 distrpi 10001 . . . . . . . . . . 11 (𝑥 ·N (𝑦 +N 𝑧)) = ((𝑥 ·N 𝑦) +N (𝑥 ·N 𝑧))
72, 3, 4, 5, 6caovdir 7094 . . . . . . . . . 10 ((((1st𝐴) ·N (2nd𝐵)) +N ((1st𝐵) ·N (2nd𝐴))) ·N (2nd𝐶)) = ((((1st𝐴) ·N (2nd𝐵)) ·N (2nd𝐶)) +N (((1st𝐵) ·N (2nd𝐴)) ·N (2nd𝐶)))
8 mulasspi 10000 . . . . . . . . . . 11 (((1st𝐴) ·N (2nd𝐵)) ·N (2nd𝐶)) = ((1st𝐴) ·N ((2nd𝐵) ·N (2nd𝐶)))
98oveq1i 6880 . . . . . . . . . 10 ((((1st𝐴) ·N (2nd𝐵)) ·N (2nd𝐶)) +N (((1st𝐵) ·N (2nd𝐴)) ·N (2nd𝐶))) = (((1st𝐴) ·N ((2nd𝐵) ·N (2nd𝐶))) +N (((1st𝐵) ·N (2nd𝐴)) ·N (2nd𝐶)))
107, 9eqtri 2828 . . . . . . . . 9 ((((1st𝐴) ·N (2nd𝐵)) +N ((1st𝐵) ·N (2nd𝐴))) ·N (2nd𝐶)) = (((1st𝐴) ·N ((2nd𝐵) ·N (2nd𝐶))) +N (((1st𝐵) ·N (2nd𝐴)) ·N (2nd𝐶)))
1110oveq1i 6880 . . . . . . . 8 (((((1st𝐴) ·N (2nd𝐵)) +N ((1st𝐵) ·N (2nd𝐴))) ·N (2nd𝐶)) +N ((1st𝐶) ·N ((2nd𝐴) ·N (2nd𝐵)))) = ((((1st𝐴) ·N ((2nd𝐵) ·N (2nd𝐶))) +N (((1st𝐵) ·N (2nd𝐴)) ·N (2nd𝐶))) +N ((1st𝐶) ·N ((2nd𝐴) ·N (2nd𝐵))))
12 ovex 6902 . . . . . . . . . . 11 ((1st𝐵) ·N (2nd𝐶)) ∈ V
13 ovex 6902 . . . . . . . . . . 11 ((1st𝐶) ·N (2nd𝐵)) ∈ V
14 fvex 6417 . . . . . . . . . . 11 (2nd𝐴) ∈ V
1512, 13, 14, 5, 6caovdir 7094 . . . . . . . . . 10 ((((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))) ·N (2nd𝐴)) = ((((1st𝐵) ·N (2nd𝐶)) ·N (2nd𝐴)) +N (((1st𝐶) ·N (2nd𝐵)) ·N (2nd𝐴)))
16 fvex 6417 . . . . . . . . . . . 12 (1st𝐵) ∈ V
17 mulasspi 10000 . . . . . . . . . . . 12 ((𝑥 ·N 𝑦) ·N 𝑧) = (𝑥 ·N (𝑦 ·N 𝑧))
1816, 4, 14, 5, 17caov32 7087 . . . . . . . . . . 11 (((1st𝐵) ·N (2nd𝐶)) ·N (2nd𝐴)) = (((1st𝐵) ·N (2nd𝐴)) ·N (2nd𝐶))
19 mulasspi 10000 . . . . . . . . . . . 12 (((1st𝐶) ·N (2nd𝐵)) ·N (2nd𝐴)) = ((1st𝐶) ·N ((2nd𝐵) ·N (2nd𝐴)))
20 mulcompi 9999 . . . . . . . . . . . . 13 ((2nd𝐵) ·N (2nd𝐴)) = ((2nd𝐴) ·N (2nd𝐵))
2120oveq2i 6881 . . . . . . . . . . . 12 ((1st𝐶) ·N ((2nd𝐵) ·N (2nd𝐴))) = ((1st𝐶) ·N ((2nd𝐴) ·N (2nd𝐵)))
2219, 21eqtri 2828 . . . . . . . . . . 11 (((1st𝐶) ·N (2nd𝐵)) ·N (2nd𝐴)) = ((1st𝐶) ·N ((2nd𝐴) ·N (2nd𝐵)))
2318, 22oveq12i 6882 . . . . . . . . . 10 ((((1st𝐵) ·N (2nd𝐶)) ·N (2nd𝐴)) +N (((1st𝐶) ·N (2nd𝐵)) ·N (2nd𝐴))) = ((((1st𝐵) ·N (2nd𝐴)) ·N (2nd𝐶)) +N ((1st𝐶) ·N ((2nd𝐴) ·N (2nd𝐵))))
2415, 23eqtri 2828 . . . . . . . . 9 ((((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))) ·N (2nd𝐴)) = ((((1st𝐵) ·N (2nd𝐴)) ·N (2nd𝐶)) +N ((1st𝐶) ·N ((2nd𝐴) ·N (2nd𝐵))))
2524oveq2i 6881 . . . . . . . 8 (((1st𝐴) ·N ((2nd𝐵) ·N (2nd𝐶))) +N ((((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))) ·N (2nd𝐴))) = (((1st𝐴) ·N ((2nd𝐵) ·N (2nd𝐶))) +N ((((1st𝐵) ·N (2nd𝐴)) ·N (2nd𝐶)) +N ((1st𝐶) ·N ((2nd𝐴) ·N (2nd𝐵)))))
261, 11, 253eqtr4i 2838 . . . . . . 7 (((((1st𝐴) ·N (2nd𝐵)) +N ((1st𝐵) ·N (2nd𝐴))) ·N (2nd𝐶)) +N ((1st𝐶) ·N ((2nd𝐴) ·N (2nd𝐵)))) = (((1st𝐴) ·N ((2nd𝐵) ·N (2nd𝐶))) +N ((((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))) ·N (2nd𝐴)))
27 mulasspi 10000 . . . . . . 7 (((2nd𝐴) ·N (2nd𝐵)) ·N (2nd𝐶)) = ((2nd𝐴) ·N ((2nd𝐵) ·N (2nd𝐶)))
2826, 27opeq12i 4600 . . . . . 6 ⟨(((((1st𝐴) ·N (2nd𝐵)) +N ((1st𝐵) ·N (2nd𝐴))) ·N (2nd𝐶)) +N ((1st𝐶) ·N ((2nd𝐴) ·N (2nd𝐵)))), (((2nd𝐴) ·N (2nd𝐵)) ·N (2nd𝐶))⟩ = ⟨(((1st𝐴) ·N ((2nd𝐵) ·N (2nd𝐶))) +N ((((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))) ·N (2nd𝐴))), ((2nd𝐴) ·N ((2nd𝐵) ·N (2nd𝐶)))⟩
29 elpqn 10028 . . . . . . . . . 10 (𝐴Q𝐴 ∈ (N × N))
30293ad2ant1 1156 . . . . . . . . 9 ((𝐴Q𝐵Q𝐶Q) → 𝐴 ∈ (N × N))
31 elpqn 10028 . . . . . . . . . 10 (𝐵Q𝐵 ∈ (N × N))
32313ad2ant2 1157 . . . . . . . . 9 ((𝐴Q𝐵Q𝐶Q) → 𝐵 ∈ (N × N))
33 addpipq2 10039 . . . . . . . . 9 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N)) → (𝐴 +pQ 𝐵) = ⟨(((1st𝐴) ·N (2nd𝐵)) +N ((1st𝐵) ·N (2nd𝐴))), ((2nd𝐴) ·N (2nd𝐵))⟩)
3430, 32, 33syl2anc 575 . . . . . . . 8 ((𝐴Q𝐵Q𝐶Q) → (𝐴 +pQ 𝐵) = ⟨(((1st𝐴) ·N (2nd𝐵)) +N ((1st𝐵) ·N (2nd𝐴))), ((2nd𝐴) ·N (2nd𝐵))⟩)
35 relxp 5328 . . . . . . . . 9 Rel (N × N)
36 elpqn 10028 . . . . . . . . . 10 (𝐶Q𝐶 ∈ (N × N))
37363ad2ant3 1158 . . . . . . . . 9 ((𝐴Q𝐵Q𝐶Q) → 𝐶 ∈ (N × N))
38 1st2nd 7442 . . . . . . . . 9 ((Rel (N × N) ∧ 𝐶 ∈ (N × N)) → 𝐶 = ⟨(1st𝐶), (2nd𝐶)⟩)
3935, 37, 38sylancr 577 . . . . . . . 8 ((𝐴Q𝐵Q𝐶Q) → 𝐶 = ⟨(1st𝐶), (2nd𝐶)⟩)
4034, 39oveq12d 6888 . . . . . . 7 ((𝐴Q𝐵Q𝐶Q) → ((𝐴 +pQ 𝐵) +pQ 𝐶) = (⟨(((1st𝐴) ·N (2nd𝐵)) +N ((1st𝐵) ·N (2nd𝐴))), ((2nd𝐴) ·N (2nd𝐵))⟩ +pQ ⟨(1st𝐶), (2nd𝐶)⟩))
41 xp1st 7426 . . . . . . . . . . 11 (𝐴 ∈ (N × N) → (1st𝐴) ∈ N)
4230, 41syl 17 . . . . . . . . . 10 ((𝐴Q𝐵Q𝐶Q) → (1st𝐴) ∈ N)
43 xp2nd 7427 . . . . . . . . . . 11 (𝐵 ∈ (N × N) → (2nd𝐵) ∈ N)
4432, 43syl 17 . . . . . . . . . 10 ((𝐴Q𝐵Q𝐶Q) → (2nd𝐵) ∈ N)
45 mulclpi 9996 . . . . . . . . . 10 (((1st𝐴) ∈ N ∧ (2nd𝐵) ∈ N) → ((1st𝐴) ·N (2nd𝐵)) ∈ N)
4642, 44, 45syl2anc 575 . . . . . . . . 9 ((𝐴Q𝐵Q𝐶Q) → ((1st𝐴) ·N (2nd𝐵)) ∈ N)
47 xp1st 7426 . . . . . . . . . . 11 (𝐵 ∈ (N × N) → (1st𝐵) ∈ N)
4832, 47syl 17 . . . . . . . . . 10 ((𝐴Q𝐵Q𝐶Q) → (1st𝐵) ∈ N)
49 xp2nd 7427 . . . . . . . . . . 11 (𝐴 ∈ (N × N) → (2nd𝐴) ∈ N)
5030, 49syl 17 . . . . . . . . . 10 ((𝐴Q𝐵Q𝐶Q) → (2nd𝐴) ∈ N)
51 mulclpi 9996 . . . . . . . . . 10 (((1st𝐵) ∈ N ∧ (2nd𝐴) ∈ N) → ((1st𝐵) ·N (2nd𝐴)) ∈ N)
5248, 50, 51syl2anc 575 . . . . . . . . 9 ((𝐴Q𝐵Q𝐶Q) → ((1st𝐵) ·N (2nd𝐴)) ∈ N)
53 addclpi 9995 . . . . . . . . 9 ((((1st𝐴) ·N (2nd𝐵)) ∈ N ∧ ((1st𝐵) ·N (2nd𝐴)) ∈ N) → (((1st𝐴) ·N (2nd𝐵)) +N ((1st𝐵) ·N (2nd𝐴))) ∈ N)
5446, 52, 53syl2anc 575 . . . . . . . 8 ((𝐴Q𝐵Q𝐶Q) → (((1st𝐴) ·N (2nd𝐵)) +N ((1st𝐵) ·N (2nd𝐴))) ∈ N)
55 mulclpi 9996 . . . . . . . . 9 (((2nd𝐴) ∈ N ∧ (2nd𝐵) ∈ N) → ((2nd𝐴) ·N (2nd𝐵)) ∈ N)
5650, 44, 55syl2anc 575 . . . . . . . 8 ((𝐴Q𝐵Q𝐶Q) → ((2nd𝐴) ·N (2nd𝐵)) ∈ N)
57 xp1st 7426 . . . . . . . . 9 (𝐶 ∈ (N × N) → (1st𝐶) ∈ N)
5837, 57syl 17 . . . . . . . 8 ((𝐴Q𝐵Q𝐶Q) → (1st𝐶) ∈ N)
59 xp2nd 7427 . . . . . . . . 9 (𝐶 ∈ (N × N) → (2nd𝐶) ∈ N)
6037, 59syl 17 . . . . . . . 8 ((𝐴Q𝐵Q𝐶Q) → (2nd𝐶) ∈ N)
61 addpipq 10040 . . . . . . . 8 ((((((1st𝐴) ·N (2nd𝐵)) +N ((1st𝐵) ·N (2nd𝐴))) ∈ N ∧ ((2nd𝐴) ·N (2nd𝐵)) ∈ N) ∧ ((1st𝐶) ∈ N ∧ (2nd𝐶) ∈ N)) → (⟨(((1st𝐴) ·N (2nd𝐵)) +N ((1st𝐵) ·N (2nd𝐴))), ((2nd𝐴) ·N (2nd𝐵))⟩ +pQ ⟨(1st𝐶), (2nd𝐶)⟩) = ⟨(((((1st𝐴) ·N (2nd𝐵)) +N ((1st𝐵) ·N (2nd𝐴))) ·N (2nd𝐶)) +N ((1st𝐶) ·N ((2nd𝐴) ·N (2nd𝐵)))), (((2nd𝐴) ·N (2nd𝐵)) ·N (2nd𝐶))⟩)
6254, 56, 58, 60, 61syl22anc 858 . . . . . . 7 ((𝐴Q𝐵Q𝐶Q) → (⟨(((1st𝐴) ·N (2nd𝐵)) +N ((1st𝐵) ·N (2nd𝐴))), ((2nd𝐴) ·N (2nd𝐵))⟩ +pQ ⟨(1st𝐶), (2nd𝐶)⟩) = ⟨(((((1st𝐴) ·N (2nd𝐵)) +N ((1st𝐵) ·N (2nd𝐴))) ·N (2nd𝐶)) +N ((1st𝐶) ·N ((2nd𝐴) ·N (2nd𝐵)))), (((2nd𝐴) ·N (2nd𝐵)) ·N (2nd𝐶))⟩)
6340, 62eqtrd 2840 . . . . . 6 ((𝐴Q𝐵Q𝐶Q) → ((𝐴 +pQ 𝐵) +pQ 𝐶) = ⟨(((((1st𝐴) ·N (2nd𝐵)) +N ((1st𝐵) ·N (2nd𝐴))) ·N (2nd𝐶)) +N ((1st𝐶) ·N ((2nd𝐴) ·N (2nd𝐵)))), (((2nd𝐴) ·N (2nd𝐵)) ·N (2nd𝐶))⟩)
64 1st2nd 7442 . . . . . . . . 9 ((Rel (N × N) ∧ 𝐴 ∈ (N × N)) → 𝐴 = ⟨(1st𝐴), (2nd𝐴)⟩)
6535, 30, 64sylancr 577 . . . . . . . 8 ((𝐴Q𝐵Q𝐶Q) → 𝐴 = ⟨(1st𝐴), (2nd𝐴)⟩)
66 addpipq2 10039 . . . . . . . . 9 ((𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (𝐵 +pQ 𝐶) = ⟨(((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))), ((2nd𝐵) ·N (2nd𝐶))⟩)
6732, 37, 66syl2anc 575 . . . . . . . 8 ((𝐴Q𝐵Q𝐶Q) → (𝐵 +pQ 𝐶) = ⟨(((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))), ((2nd𝐵) ·N (2nd𝐶))⟩)
6865, 67oveq12d 6888 . . . . . . 7 ((𝐴Q𝐵Q𝐶Q) → (𝐴 +pQ (𝐵 +pQ 𝐶)) = (⟨(1st𝐴), (2nd𝐴)⟩ +pQ ⟨(((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))), ((2nd𝐵) ·N (2nd𝐶))⟩))
69 mulclpi 9996 . . . . . . . . . 10 (((1st𝐵) ∈ N ∧ (2nd𝐶) ∈ N) → ((1st𝐵) ·N (2nd𝐶)) ∈ N)
7048, 60, 69syl2anc 575 . . . . . . . . 9 ((𝐴Q𝐵Q𝐶Q) → ((1st𝐵) ·N (2nd𝐶)) ∈ N)
71 mulclpi 9996 . . . . . . . . . 10 (((1st𝐶) ∈ N ∧ (2nd𝐵) ∈ N) → ((1st𝐶) ·N (2nd𝐵)) ∈ N)
7258, 44, 71syl2anc 575 . . . . . . . . 9 ((𝐴Q𝐵Q𝐶Q) → ((1st𝐶) ·N (2nd𝐵)) ∈ N)
73 addclpi 9995 . . . . . . . . 9 ((((1st𝐵) ·N (2nd𝐶)) ∈ N ∧ ((1st𝐶) ·N (2nd𝐵)) ∈ N) → (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))) ∈ N)
7470, 72, 73syl2anc 575 . . . . . . . 8 ((𝐴Q𝐵Q𝐶Q) → (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))) ∈ N)
75 mulclpi 9996 . . . . . . . . 9 (((2nd𝐵) ∈ N ∧ (2nd𝐶) ∈ N) → ((2nd𝐵) ·N (2nd𝐶)) ∈ N)
7644, 60, 75syl2anc 575 . . . . . . . 8 ((𝐴Q𝐵Q𝐶Q) → ((2nd𝐵) ·N (2nd𝐶)) ∈ N)
77 addpipq 10040 . . . . . . . 8 ((((1st𝐴) ∈ N ∧ (2nd𝐴) ∈ N) ∧ ((((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))) ∈ N ∧ ((2nd𝐵) ·N (2nd𝐶)) ∈ N)) → (⟨(1st𝐴), (2nd𝐴)⟩ +pQ ⟨(((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))), ((2nd𝐵) ·N (2nd𝐶))⟩) = ⟨(((1st𝐴) ·N ((2nd𝐵) ·N (2nd𝐶))) +N ((((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))) ·N (2nd𝐴))), ((2nd𝐴) ·N ((2nd𝐵) ·N (2nd𝐶)))⟩)
7842, 50, 74, 76, 77syl22anc 858 . . . . . . 7 ((𝐴Q𝐵Q𝐶Q) → (⟨(1st𝐴), (2nd𝐴)⟩ +pQ ⟨(((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))), ((2nd𝐵) ·N (2nd𝐶))⟩) = ⟨(((1st𝐴) ·N ((2nd𝐵) ·N (2nd𝐶))) +N ((((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))) ·N (2nd𝐴))), ((2nd𝐴) ·N ((2nd𝐵) ·N (2nd𝐶)))⟩)
7968, 78eqtrd 2840 . . . . . 6 ((𝐴Q𝐵Q𝐶Q) → (𝐴 +pQ (𝐵 +pQ 𝐶)) = ⟨(((1st𝐴) ·N ((2nd𝐵) ·N (2nd𝐶))) +N ((((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))) ·N (2nd𝐴))), ((2nd𝐴) ·N ((2nd𝐵) ·N (2nd𝐶)))⟩)
8028, 63, 793eqtr4a 2866 . . . . 5 ((𝐴Q𝐵Q𝐶Q) → ((𝐴 +pQ 𝐵) +pQ 𝐶) = (𝐴 +pQ (𝐵 +pQ 𝐶)))
8180fveq2d 6408 . . . 4 ((𝐴Q𝐵Q𝐶Q) → ([Q]‘((𝐴 +pQ 𝐵) +pQ 𝐶)) = ([Q]‘(𝐴 +pQ (𝐵 +pQ 𝐶))))
82 adderpq 10059 . . . 4 (([Q]‘(𝐴 +pQ 𝐵)) +Q ([Q]‘𝐶)) = ([Q]‘((𝐴 +pQ 𝐵) +pQ 𝐶))
83 adderpq 10059 . . . 4 (([Q]‘𝐴) +Q ([Q]‘(𝐵 +pQ 𝐶))) = ([Q]‘(𝐴 +pQ (𝐵 +pQ 𝐶)))
8481, 82, 833eqtr4g 2865 . . 3 ((𝐴Q𝐵Q𝐶Q) → (([Q]‘(𝐴 +pQ 𝐵)) +Q ([Q]‘𝐶)) = (([Q]‘𝐴) +Q ([Q]‘(𝐵 +pQ 𝐶))))
85 addpqnq 10041 . . . . 5 ((𝐴Q𝐵Q) → (𝐴 +Q 𝐵) = ([Q]‘(𝐴 +pQ 𝐵)))
86853adant3 1155 . . . 4 ((𝐴Q𝐵Q𝐶Q) → (𝐴 +Q 𝐵) = ([Q]‘(𝐴 +pQ 𝐵)))
87 nqerid 10036 . . . . . 6 (𝐶Q → ([Q]‘𝐶) = 𝐶)
8887eqcomd 2812 . . . . 5 (𝐶Q𝐶 = ([Q]‘𝐶))
89883ad2ant3 1158 . . . 4 ((𝐴Q𝐵Q𝐶Q) → 𝐶 = ([Q]‘𝐶))
9086, 89oveq12d 6888 . . 3 ((𝐴Q𝐵Q𝐶Q) → ((𝐴 +Q 𝐵) +Q 𝐶) = (([Q]‘(𝐴 +pQ 𝐵)) +Q ([Q]‘𝐶)))
91 nqerid 10036 . . . . . 6 (𝐴Q → ([Q]‘𝐴) = 𝐴)
9291eqcomd 2812 . . . . 5 (𝐴Q𝐴 = ([Q]‘𝐴))
93923ad2ant1 1156 . . . 4 ((𝐴Q𝐵Q𝐶Q) → 𝐴 = ([Q]‘𝐴))
94 addpqnq 10041 . . . . 5 ((𝐵Q𝐶Q) → (𝐵 +Q 𝐶) = ([Q]‘(𝐵 +pQ 𝐶)))
95943adant1 1153 . . . 4 ((𝐴Q𝐵Q𝐶Q) → (𝐵 +Q 𝐶) = ([Q]‘(𝐵 +pQ 𝐶)))
9693, 95oveq12d 6888 . . 3 ((𝐴Q𝐵Q𝐶Q) → (𝐴 +Q (𝐵 +Q 𝐶)) = (([Q]‘𝐴) +Q ([Q]‘(𝐵 +pQ 𝐶))))
9784, 90, 963eqtr4d 2850 . 2 ((𝐴Q𝐵Q𝐶Q) → ((𝐴 +Q 𝐵) +Q 𝐶) = (𝐴 +Q (𝐵 +Q 𝐶)))
98 addnqf 10051 . . . 4 +Q :(Q × Q)⟶Q
9998fdmi 6262 . . 3 dom +Q = (Q × Q)
100 0nnq 10027 . . 3 ¬ ∅ ∈ Q
10199, 100ndmovass 7048 . 2 (¬ (𝐴Q𝐵Q𝐶Q) → ((𝐴 +Q 𝐵) +Q 𝐶) = (𝐴 +Q (𝐵 +Q 𝐶)))
10297, 101pm2.61i 176 1 ((𝐴 +Q 𝐵) +Q 𝐶) = (𝐴 +Q (𝐵 +Q 𝐶))
Colors of variables: wff setvar class
Syntax hints:  w3a 1100   = wceq 1637  wcel 2156  cop 4376   × cxp 5309  Rel wrel 5316  cfv 6097  (class class class)co 6870  1st c1st 7392  2nd c2nd 7393  Ncnpi 9947   +N cpli 9948   ·N cmi 9949   +pQ cplpq 9951  Qcnq 9955  [Q]cerq 9957   +Q cplq 9958
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1877  ax-4 1894  ax-5 2001  ax-6 2068  ax-7 2104  ax-8 2158  ax-9 2165  ax-10 2185  ax-11 2201  ax-12 2214  ax-13 2420  ax-ext 2784  ax-sep 4975  ax-nul 4983  ax-pow 5035  ax-pr 5096  ax-un 7175
This theorem depends on definitions:  df-bi 198  df-an 385  df-or 866  df-3or 1101  df-3an 1102  df-tru 1641  df-ex 1860  df-nf 1864  df-sb 2061  df-eu 2634  df-mo 2635  df-clab 2793  df-cleq 2799  df-clel 2802  df-nfc 2937  df-ne 2979  df-ral 3101  df-rex 3102  df-reu 3103  df-rmo 3104  df-rab 3105  df-v 3393  df-sbc 3634  df-csb 3729  df-dif 3772  df-un 3774  df-in 3776  df-ss 3783  df-pss 3785  df-nul 4117  df-if 4280  df-pw 4353  df-sn 4371  df-pr 4373  df-tp 4375  df-op 4377  df-uni 4631  df-iun 4714  df-br 4845  df-opab 4907  df-mpt 4924  df-tr 4947  df-id 5219  df-eprel 5224  df-po 5232  df-so 5233  df-fr 5270  df-we 5272  df-xp 5317  df-rel 5318  df-cnv 5319  df-co 5320  df-dm 5321  df-rn 5322  df-res 5323  df-ima 5324  df-pred 5893  df-ord 5939  df-on 5940  df-lim 5941  df-suc 5942  df-iota 6060  df-fun 6099  df-fn 6100  df-f 6101  df-f1 6102  df-fo 6103  df-f1o 6104  df-fv 6105  df-ov 6873  df-oprab 6874  df-mpt2 6875  df-om 7292  df-1st 7394  df-2nd 7395  df-wrecs 7638  df-recs 7700  df-rdg 7738  df-1o 7792  df-oadd 7796  df-omul 7797  df-er 7975  df-ni 9975  df-pli 9976  df-mi 9977  df-lti 9978  df-plpq 10011  df-enq 10014  df-nq 10015  df-erq 10016  df-plq 10017  df-1nq 10019
This theorem is referenced by:  ltaddnq  10077  addasspr  10125  prlem934  10136  ltexprlem7  10145
  Copyright terms: Public domain W3C validator