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

Theorem adderpqlem 9720
Description: Lemma for adderpq 9722. (Contributed by Mario Carneiro, 8-May-2013.) (New usage is discouraged.)
Assertion
Ref Expression
adderpqlem ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (𝐴 ~Q 𝐵 ↔ (𝐴 +pQ 𝐶) ~Q (𝐵 +pQ 𝐶)))

Proof of Theorem adderpqlem
Dummy variables 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 xp1st 7143 . . . . . 6 (𝐴 ∈ (N × N) → (1st𝐴) ∈ N)
213ad2ant1 1080 . . . . 5 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (1st𝐴) ∈ N)
3 xp2nd 7144 . . . . . 6 (𝐶 ∈ (N × N) → (2nd𝐶) ∈ N)
433ad2ant3 1082 . . . . 5 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (2nd𝐶) ∈ N)
5 mulclpi 9659 . . . . 5 (((1st𝐴) ∈ N ∧ (2nd𝐶) ∈ N) → ((1st𝐴) ·N (2nd𝐶)) ∈ N)
62, 4, 5syl2anc 692 . . . 4 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → ((1st𝐴) ·N (2nd𝐶)) ∈ N)
7 xp1st 7143 . . . . . 6 (𝐶 ∈ (N × N) → (1st𝐶) ∈ N)
873ad2ant3 1082 . . . . 5 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (1st𝐶) ∈ N)
9 xp2nd 7144 . . . . . 6 (𝐴 ∈ (N × N) → (2nd𝐴) ∈ N)
1093ad2ant1 1080 . . . . 5 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (2nd𝐴) ∈ N)
11 mulclpi 9659 . . . . 5 (((1st𝐶) ∈ N ∧ (2nd𝐴) ∈ N) → ((1st𝐶) ·N (2nd𝐴)) ∈ N)
128, 10, 11syl2anc 692 . . . 4 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → ((1st𝐶) ·N (2nd𝐴)) ∈ N)
13 addclpi 9658 . . . 4 ((((1st𝐴) ·N (2nd𝐶)) ∈ N ∧ ((1st𝐶) ·N (2nd𝐴)) ∈ N) → (((1st𝐴) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐴))) ∈ N)
146, 12, 13syl2anc 692 . . 3 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (((1st𝐴) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐴))) ∈ N)
15 mulclpi 9659 . . . 4 (((2nd𝐴) ∈ N ∧ (2nd𝐶) ∈ N) → ((2nd𝐴) ·N (2nd𝐶)) ∈ N)
1610, 4, 15syl2anc 692 . . 3 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → ((2nd𝐴) ·N (2nd𝐶)) ∈ N)
17 xp1st 7143 . . . . . 6 (𝐵 ∈ (N × N) → (1st𝐵) ∈ N)
18173ad2ant2 1081 . . . . 5 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (1st𝐵) ∈ N)
19 mulclpi 9659 . . . . 5 (((1st𝐵) ∈ N ∧ (2nd𝐶) ∈ N) → ((1st𝐵) ·N (2nd𝐶)) ∈ N)
2018, 4, 19syl2anc 692 . . . 4 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → ((1st𝐵) ·N (2nd𝐶)) ∈ N)
21 xp2nd 7144 . . . . . 6 (𝐵 ∈ (N × N) → (2nd𝐵) ∈ N)
22213ad2ant2 1081 . . . . 5 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (2nd𝐵) ∈ N)
23 mulclpi 9659 . . . . 5 (((1st𝐶) ∈ N ∧ (2nd𝐵) ∈ N) → ((1st𝐶) ·N (2nd𝐵)) ∈ N)
248, 22, 23syl2anc 692 . . . 4 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → ((1st𝐶) ·N (2nd𝐵)) ∈ N)
25 addclpi 9658 . . . 4 ((((1st𝐵) ·N (2nd𝐶)) ∈ N ∧ ((1st𝐶) ·N (2nd𝐵)) ∈ N) → (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))) ∈ N)
2620, 24, 25syl2anc 692 . . 3 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))) ∈ N)
27 mulclpi 9659 . . . 4 (((2nd𝐵) ∈ N ∧ (2nd𝐶) ∈ N) → ((2nd𝐵) ·N (2nd𝐶)) ∈ N)
2822, 4, 27syl2anc 692 . . 3 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → ((2nd𝐵) ·N (2nd𝐶)) ∈ N)
29 enqbreq 9685 . . 3 ((((((1st𝐴) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐴))) ∈ N ∧ ((2nd𝐴) ·N (2nd𝐶)) ∈ N) ∧ ((((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))) ∈ N ∧ ((2nd𝐵) ·N (2nd𝐶)) ∈ N)) → (⟨(((1st𝐴) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐴))), ((2nd𝐴) ·N (2nd𝐶))⟩ ~Q ⟨(((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))), ((2nd𝐵) ·N (2nd𝐶))⟩ ↔ ((((1st𝐴) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐴))) ·N ((2nd𝐵) ·N (2nd𝐶))) = (((2nd𝐴) ·N (2nd𝐶)) ·N (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))))))
3014, 16, 26, 28, 29syl22anc 1324 . 2 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (⟨(((1st𝐴) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐴))), ((2nd𝐴) ·N (2nd𝐶))⟩ ~Q ⟨(((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))), ((2nd𝐵) ·N (2nd𝐶))⟩ ↔ ((((1st𝐴) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐴))) ·N ((2nd𝐵) ·N (2nd𝐶))) = (((2nd𝐴) ·N (2nd𝐶)) ·N (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))))))
31 addpipq2 9702 . . . 4 ((𝐴 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (𝐴 +pQ 𝐶) = ⟨(((1st𝐴) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐴))), ((2nd𝐴) ·N (2nd𝐶))⟩)
32313adant2 1078 . . 3 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (𝐴 +pQ 𝐶) = ⟨(((1st𝐴) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐴))), ((2nd𝐴) ·N (2nd𝐶))⟩)
33 addpipq2 9702 . . . 4 ((𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (𝐵 +pQ 𝐶) = ⟨(((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))), ((2nd𝐵) ·N (2nd𝐶))⟩)
34333adant1 1077 . . 3 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (𝐵 +pQ 𝐶) = ⟨(((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))), ((2nd𝐵) ·N (2nd𝐶))⟩)
3532, 34breq12d 4626 . 2 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → ((𝐴 +pQ 𝐶) ~Q (𝐵 +pQ 𝐶) ↔ ⟨(((1st𝐴) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐴))), ((2nd𝐴) ·N (2nd𝐶))⟩ ~Q ⟨(((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))), ((2nd𝐵) ·N (2nd𝐶))⟩))
36 enqbreq2 9686 . . . 4 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N)) → (𝐴 ~Q 𝐵 ↔ ((1st𝐴) ·N (2nd𝐵)) = ((1st𝐵) ·N (2nd𝐴))))
37363adant3 1079 . . 3 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (𝐴 ~Q 𝐵 ↔ ((1st𝐴) ·N (2nd𝐵)) = ((1st𝐵) ·N (2nd𝐴))))
38 mulclpi 9659 . . . . 5 (((2nd𝐶) ∈ N ∧ (2nd𝐶) ∈ N) → ((2nd𝐶) ·N (2nd𝐶)) ∈ N)
394, 4, 38syl2anc 692 . . . 4 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → ((2nd𝐶) ·N (2nd𝐶)) ∈ N)
40 mulclpi 9659 . . . . 5 (((1st𝐴) ∈ N ∧ (2nd𝐵) ∈ N) → ((1st𝐴) ·N (2nd𝐵)) ∈ N)
412, 22, 40syl2anc 692 . . . 4 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → ((1st𝐴) ·N (2nd𝐵)) ∈ N)
42 mulcanpi 9666 . . . 4 ((((2nd𝐶) ·N (2nd𝐶)) ∈ N ∧ ((1st𝐴) ·N (2nd𝐵)) ∈ N) → ((((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐴) ·N (2nd𝐵))) = (((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐵) ·N (2nd𝐴))) ↔ ((1st𝐴) ·N (2nd𝐵)) = ((1st𝐵) ·N (2nd𝐴))))
4339, 41, 42syl2anc 692 . . 3 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → ((((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐴) ·N (2nd𝐵))) = (((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐵) ·N (2nd𝐴))) ↔ ((1st𝐴) ·N (2nd𝐵)) = ((1st𝐵) ·N (2nd𝐴))))
44 mulcompi 9662 . . . . . . . 8 (((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐴) ·N (2nd𝐵))) = (((1st𝐴) ·N (2nd𝐵)) ·N ((2nd𝐶) ·N (2nd𝐶)))
45 fvex 6158 . . . . . . . . 9 (1st𝐴) ∈ V
46 fvex 6158 . . . . . . . . 9 (2nd𝐵) ∈ V
47 fvex 6158 . . . . . . . . 9 (2nd𝐶) ∈ V
48 mulcompi 9662 . . . . . . . . 9 (𝑥 ·N 𝑦) = (𝑦 ·N 𝑥)
49 mulasspi 9663 . . . . . . . . 9 ((𝑥 ·N 𝑦) ·N 𝑧) = (𝑥 ·N (𝑦 ·N 𝑧))
5045, 46, 47, 48, 49, 47caov4 6818 . . . . . . . 8 (((1st𝐴) ·N (2nd𝐵)) ·N ((2nd𝐶) ·N (2nd𝐶))) = (((1st𝐴) ·N (2nd𝐶)) ·N ((2nd𝐵) ·N (2nd𝐶)))
5144, 50eqtri 2643 . . . . . . 7 (((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐴) ·N (2nd𝐵))) = (((1st𝐴) ·N (2nd𝐶)) ·N ((2nd𝐵) ·N (2nd𝐶)))
52 fvex 6158 . . . . . . . . 9 (2nd𝐴) ∈ V
53 fvex 6158 . . . . . . . . 9 (1st𝐶) ∈ V
5452, 47, 53, 48, 49, 46caov4 6818 . . . . . . . 8 (((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐶) ·N (2nd𝐵))) = (((2nd𝐴) ·N (1st𝐶)) ·N ((2nd𝐶) ·N (2nd𝐵)))
55 mulcompi 9662 . . . . . . . . 9 ((2nd𝐴) ·N (1st𝐶)) = ((1st𝐶) ·N (2nd𝐴))
56 mulcompi 9662 . . . . . . . . 9 ((2nd𝐶) ·N (2nd𝐵)) = ((2nd𝐵) ·N (2nd𝐶))
5755, 56oveq12i 6616 . . . . . . . 8 (((2nd𝐴) ·N (1st𝐶)) ·N ((2nd𝐶) ·N (2nd𝐵))) = (((1st𝐶) ·N (2nd𝐴)) ·N ((2nd𝐵) ·N (2nd𝐶)))
5854, 57eqtri 2643 . . . . . . 7 (((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐶) ·N (2nd𝐵))) = (((1st𝐶) ·N (2nd𝐴)) ·N ((2nd𝐵) ·N (2nd𝐶)))
5951, 58oveq12i 6616 . . . . . 6 ((((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐴) ·N (2nd𝐵))) +N (((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐶) ·N (2nd𝐵)))) = ((((1st𝐴) ·N (2nd𝐶)) ·N ((2nd𝐵) ·N (2nd𝐶))) +N (((1st𝐶) ·N (2nd𝐴)) ·N ((2nd𝐵) ·N (2nd𝐶))))
60 addcompi 9660 . . . . . 6 ((((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐶) ·N (2nd𝐵))) +N (((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐴) ·N (2nd𝐵)))) = ((((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐴) ·N (2nd𝐵))) +N (((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐶) ·N (2nd𝐵))))
61 ovex 6632 . . . . . . 7 ((1st𝐴) ·N (2nd𝐶)) ∈ V
62 ovex 6632 . . . . . . 7 ((1st𝐶) ·N (2nd𝐴)) ∈ V
63 ovex 6632 . . . . . . 7 ((2nd𝐵) ·N (2nd𝐶)) ∈ V
64 distrpi 9664 . . . . . . 7 (𝑥 ·N (𝑦 +N 𝑧)) = ((𝑥 ·N 𝑦) +N (𝑥 ·N 𝑧))
6561, 62, 63, 48, 64caovdir 6821 . . . . . 6 ((((1st𝐴) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐴))) ·N ((2nd𝐵) ·N (2nd𝐶))) = ((((1st𝐴) ·N (2nd𝐶)) ·N ((2nd𝐵) ·N (2nd𝐶))) +N (((1st𝐶) ·N (2nd𝐴)) ·N ((2nd𝐵) ·N (2nd𝐶))))
6659, 60, 653eqtr4i 2653 . . . . 5 ((((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐶) ·N (2nd𝐵))) +N (((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐴) ·N (2nd𝐵)))) = ((((1st𝐴) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐴))) ·N ((2nd𝐵) ·N (2nd𝐶)))
67 addcompi 9660 . . . . . 6 ((((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐶) ·N (2nd𝐵))) +N (((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐵) ·N (2nd𝐶)))) = ((((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐵) ·N (2nd𝐶))) +N (((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐶) ·N (2nd𝐵))))
68 mulasspi 9663 . . . . . . . 8 (((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐵) ·N (2nd𝐴))) = ((2nd𝐶) ·N ((2nd𝐶) ·N ((1st𝐵) ·N (2nd𝐴))))
69 mulcompi 9662 . . . . . . . . . 10 ((2nd𝐶) ·N ((2nd𝐶) ·N ((1st𝐵) ·N (2nd𝐴)))) = (((2nd𝐶) ·N ((1st𝐵) ·N (2nd𝐴))) ·N (2nd𝐶))
70 mulasspi 9663 . . . . . . . . . . . 12 (((2nd𝐴) ·N (2nd𝐶)) ·N (1st𝐵)) = ((2nd𝐴) ·N ((2nd𝐶) ·N (1st𝐵)))
71 mulcompi 9662 . . . . . . . . . . . 12 ((2nd𝐴) ·N ((2nd𝐶) ·N (1st𝐵))) = (((2nd𝐶) ·N (1st𝐵)) ·N (2nd𝐴))
72 mulasspi 9663 . . . . . . . . . . . 12 (((2nd𝐶) ·N (1st𝐵)) ·N (2nd𝐴)) = ((2nd𝐶) ·N ((1st𝐵) ·N (2nd𝐴)))
7370, 71, 723eqtrri 2648 . . . . . . . . . . 11 ((2nd𝐶) ·N ((1st𝐵) ·N (2nd𝐴))) = (((2nd𝐴) ·N (2nd𝐶)) ·N (1st𝐵))
7473oveq1i 6614 . . . . . . . . . 10 (((2nd𝐶) ·N ((1st𝐵) ·N (2nd𝐴))) ·N (2nd𝐶)) = ((((2nd𝐴) ·N (2nd𝐶)) ·N (1st𝐵)) ·N (2nd𝐶))
7569, 74eqtri 2643 . . . . . . . . 9 ((2nd𝐶) ·N ((2nd𝐶) ·N ((1st𝐵) ·N (2nd𝐴)))) = ((((2nd𝐴) ·N (2nd𝐶)) ·N (1st𝐵)) ·N (2nd𝐶))
76 mulasspi 9663 . . . . . . . . 9 ((((2nd𝐴) ·N (2nd𝐶)) ·N (1st𝐵)) ·N (2nd𝐶)) = (((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐵) ·N (2nd𝐶)))
7775, 76eqtri 2643 . . . . . . . 8 ((2nd𝐶) ·N ((2nd𝐶) ·N ((1st𝐵) ·N (2nd𝐴)))) = (((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐵) ·N (2nd𝐶)))
7868, 77eqtri 2643 . . . . . . 7 (((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐵) ·N (2nd𝐴))) = (((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐵) ·N (2nd𝐶)))
7978oveq2i 6615 . . . . . 6 ((((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐶) ·N (2nd𝐵))) +N (((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐵) ·N (2nd𝐴)))) = ((((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐶) ·N (2nd𝐵))) +N (((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐵) ·N (2nd𝐶))))
80 distrpi 9664 . . . . . 6 (((2nd𝐴) ·N (2nd𝐶)) ·N (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵)))) = ((((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐵) ·N (2nd𝐶))) +N (((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐶) ·N (2nd𝐵))))
8167, 79, 803eqtr4i 2653 . . . . 5 ((((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐶) ·N (2nd𝐵))) +N (((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐵) ·N (2nd𝐴)))) = (((2nd𝐴) ·N (2nd𝐶)) ·N (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))))
8266, 81eqeq12i 2635 . . . 4 (((((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐶) ·N (2nd𝐵))) +N (((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐴) ·N (2nd𝐵)))) = ((((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐶) ·N (2nd𝐵))) +N (((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐵) ·N (2nd𝐴)))) ↔ ((((1st𝐴) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐴))) ·N ((2nd𝐵) ·N (2nd𝐶))) = (((2nd𝐴) ·N (2nd𝐶)) ·N (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵)))))
83 mulclpi 9659 . . . . . 6 ((((2nd𝐴) ·N (2nd𝐶)) ∈ N ∧ ((1st𝐶) ·N (2nd𝐵)) ∈ N) → (((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐶) ·N (2nd𝐵))) ∈ N)
8416, 24, 83syl2anc 692 . . . . 5 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐶) ·N (2nd𝐵))) ∈ N)
85 mulclpi 9659 . . . . . 6 ((((2nd𝐶) ·N (2nd𝐶)) ∈ N ∧ ((1st𝐴) ·N (2nd𝐵)) ∈ N) → (((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐴) ·N (2nd𝐵))) ∈ N)
8639, 41, 85syl2anc 692 . . . . 5 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐴) ·N (2nd𝐵))) ∈ N)
87 addcanpi 9665 . . . . 5 (((((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐶) ·N (2nd𝐵))) ∈ N ∧ (((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐴) ·N (2nd𝐵))) ∈ N) → (((((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐶) ·N (2nd𝐵))) +N (((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐴) ·N (2nd𝐵)))) = ((((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐶) ·N (2nd𝐵))) +N (((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐵) ·N (2nd𝐴)))) ↔ (((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐴) ·N (2nd𝐵))) = (((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐵) ·N (2nd𝐴)))))
8884, 86, 87syl2anc 692 . . . 4 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (((((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐶) ·N (2nd𝐵))) +N (((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐴) ·N (2nd𝐵)))) = ((((2nd𝐴) ·N (2nd𝐶)) ·N ((1st𝐶) ·N (2nd𝐵))) +N (((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐵) ·N (2nd𝐴)))) ↔ (((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐴) ·N (2nd𝐵))) = (((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐵) ·N (2nd𝐴)))))
8982, 88syl5rbbr 275 . . 3 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → ((((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐴) ·N (2nd𝐵))) = (((2nd𝐶) ·N (2nd𝐶)) ·N ((1st𝐵) ·N (2nd𝐴))) ↔ ((((1st𝐴) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐴))) ·N ((2nd𝐵) ·N (2nd𝐶))) = (((2nd𝐴) ·N (2nd𝐶)) ·N (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))))))
9037, 43, 893bitr2d 296 . 2 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (𝐴 ~Q 𝐵 ↔ ((((1st𝐴) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐴))) ·N ((2nd𝐵) ·N (2nd𝐶))) = (((2nd𝐴) ·N (2nd𝐶)) ·N (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))))))
9130, 35, 903bitr4rd 301 1 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (𝐴 ~Q 𝐵 ↔ (𝐴 +pQ 𝐶) ~Q (𝐵 +pQ 𝐶)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  w3a 1036   = wceq 1480  wcel 1987  cop 4154   class class class wbr 4613   × cxp 5072  cfv 5847  (class class class)co 6604  1st c1st 7111  2nd c2nd 7112  Ncnpi 9610   +N cpli 9611   ·N cmi 9612   +pQ cplpq 9614   ~Q ceq 9617
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-8 1989  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-sep 4741  ax-nul 4749  ax-pow 4803  ax-pr 4867  ax-un 6902
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1037  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-ral 2912  df-rex 2913  df-reu 2914  df-rab 2916  df-v 3188  df-sbc 3418  df-csb 3515  df-dif 3558  df-un 3560  df-in 3562  df-ss 3569  df-pss 3571  df-nul 3892  df-if 4059  df-pw 4132  df-sn 4149  df-pr 4151  df-tp 4153  df-op 4155  df-uni 4403  df-iun 4487  df-br 4614  df-opab 4674  df-mpt 4675  df-tr 4713  df-eprel 4985  df-id 4989  df-po 4995  df-so 4996  df-fr 5033  df-we 5035  df-xp 5080  df-rel 5081  df-cnv 5082  df-co 5083  df-dm 5084  df-rn 5085  df-res 5086  df-ima 5087  df-pred 5639  df-ord 5685  df-on 5686  df-lim 5687  df-suc 5688  df-iota 5810  df-fun 5849  df-fn 5850  df-f 5851  df-f1 5852  df-fo 5853  df-f1o 5854  df-fv 5855  df-ov 6607  df-oprab 6608  df-mpt2 6609  df-om 7013  df-1st 7113  df-2nd 7114  df-wrecs 7352  df-recs 7413  df-rdg 7451  df-oadd 7509  df-omul 7510  df-ni 9638  df-pli 9639  df-mi 9640  df-plpq 9674  df-enq 9677
This theorem is referenced by:  adderpq  9722
  Copyright terms: Public domain W3C validator