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

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

Proof of Theorem distrnq
Dummy variables 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 mulcompi 9920 . . . . . . . . . . . . 13 ((1st𝐴) ·N (1st𝐵)) = ((1st𝐵) ·N (1st𝐴))
21oveq1i 6803 . . . . . . . . . . . 12 (((1st𝐴) ·N (1st𝐵)) ·N ((2nd𝐴) ·N (2nd𝐶))) = (((1st𝐵) ·N (1st𝐴)) ·N ((2nd𝐴) ·N (2nd𝐶)))
3 fvex 6342 . . . . . . . . . . . . 13 (1st𝐵) ∈ V
4 fvex 6342 . . . . . . . . . . . . 13 (1st𝐴) ∈ V
5 fvex 6342 . . . . . . . . . . . . 13 (2nd𝐴) ∈ V
6 mulcompi 9920 . . . . . . . . . . . . 13 (𝑥 ·N 𝑦) = (𝑦 ·N 𝑥)
7 mulasspi 9921 . . . . . . . . . . . . 13 ((𝑥 ·N 𝑦) ·N 𝑧) = (𝑥 ·N (𝑦 ·N 𝑧))
8 fvex 6342 . . . . . . . . . . . . 13 (2nd𝐶) ∈ V
93, 4, 5, 6, 7, 8caov411 7013 . . . . . . . . . . . 12 (((1st𝐵) ·N (1st𝐴)) ·N ((2nd𝐴) ·N (2nd𝐶))) = (((2nd𝐴) ·N (1st𝐴)) ·N ((1st𝐵) ·N (2nd𝐶)))
102, 9eqtri 2793 . . . . . . . . . . 11 (((1st𝐴) ·N (1st𝐵)) ·N ((2nd𝐴) ·N (2nd𝐶))) = (((2nd𝐴) ·N (1st𝐴)) ·N ((1st𝐵) ·N (2nd𝐶)))
11 mulcompi 9920 . . . . . . . . . . . . 13 ((1st𝐴) ·N (1st𝐶)) = ((1st𝐶) ·N (1st𝐴))
1211oveq1i 6803 . . . . . . . . . . . 12 (((1st𝐴) ·N (1st𝐶)) ·N ((2nd𝐴) ·N (2nd𝐵))) = (((1st𝐶) ·N (1st𝐴)) ·N ((2nd𝐴) ·N (2nd𝐵)))
13 fvex 6342 . . . . . . . . . . . . 13 (1st𝐶) ∈ V
14 fvex 6342 . . . . . . . . . . . . 13 (2nd𝐵) ∈ V
1513, 4, 5, 6, 7, 14caov411 7013 . . . . . . . . . . . 12 (((1st𝐶) ·N (1st𝐴)) ·N ((2nd𝐴) ·N (2nd𝐵))) = (((2nd𝐴) ·N (1st𝐴)) ·N ((1st𝐶) ·N (2nd𝐵)))
1612, 15eqtri 2793 . . . . . . . . . . 11 (((1st𝐴) ·N (1st𝐶)) ·N ((2nd𝐴) ·N (2nd𝐵))) = (((2nd𝐴) ·N (1st𝐴)) ·N ((1st𝐶) ·N (2nd𝐵)))
1710, 16oveq12i 6805 . . . . . . . . . 10 ((((1st𝐴) ·N (1st𝐵)) ·N ((2nd𝐴) ·N (2nd𝐶))) +N (((1st𝐴) ·N (1st𝐶)) ·N ((2nd𝐴) ·N (2nd𝐵)))) = ((((2nd𝐴) ·N (1st𝐴)) ·N ((1st𝐵) ·N (2nd𝐶))) +N (((2nd𝐴) ·N (1st𝐴)) ·N ((1st𝐶) ·N (2nd𝐵))))
18 distrpi 9922 . . . . . . . . . 10 (((2nd𝐴) ·N (1st𝐴)) ·N (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵)))) = ((((2nd𝐴) ·N (1st𝐴)) ·N ((1st𝐵) ·N (2nd𝐶))) +N (((2nd𝐴) ·N (1st𝐴)) ·N ((1st𝐶) ·N (2nd𝐵))))
19 mulasspi 9921 . . . . . . . . . 10 (((2nd𝐴) ·N (1st𝐴)) ·N (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵)))) = ((2nd𝐴) ·N ((1st𝐴) ·N (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵)))))
2017, 18, 193eqtr2i 2799 . . . . . . . . 9 ((((1st𝐴) ·N (1st𝐵)) ·N ((2nd𝐴) ·N (2nd𝐶))) +N (((1st𝐴) ·N (1st𝐶)) ·N ((2nd𝐴) ·N (2nd𝐵)))) = ((2nd𝐴) ·N ((1st𝐴) ·N (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵)))))
21 mulasspi 9921 . . . . . . . . . 10 (((2nd𝐴) ·N (2nd𝐵)) ·N ((2nd𝐴) ·N (2nd𝐶))) = ((2nd𝐴) ·N ((2nd𝐵) ·N ((2nd𝐴) ·N (2nd𝐶))))
2214, 5, 8, 6, 7caov12 7009 . . . . . . . . . . 11 ((2nd𝐵) ·N ((2nd𝐴) ·N (2nd𝐶))) = ((2nd𝐴) ·N ((2nd𝐵) ·N (2nd𝐶)))
2322oveq2i 6804 . . . . . . . . . 10 ((2nd𝐴) ·N ((2nd𝐵) ·N ((2nd𝐴) ·N (2nd𝐶)))) = ((2nd𝐴) ·N ((2nd𝐴) ·N ((2nd𝐵) ·N (2nd𝐶))))
2421, 23eqtri 2793 . . . . . . . . 9 (((2nd𝐴) ·N (2nd𝐵)) ·N ((2nd𝐴) ·N (2nd𝐶))) = ((2nd𝐴) ·N ((2nd𝐴) ·N ((2nd𝐵) ·N (2nd𝐶))))
2520, 24opeq12i 4544 . . . . . . . 8 ⟨((((1st𝐴) ·N (1st𝐵)) ·N ((2nd𝐴) ·N (2nd𝐶))) +N (((1st𝐴) ·N (1st𝐶)) ·N ((2nd𝐴) ·N (2nd𝐵)))), (((2nd𝐴) ·N (2nd𝐵)) ·N ((2nd𝐴) ·N (2nd𝐶)))⟩ = ⟨((2nd𝐴) ·N ((1st𝐴) ·N (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))))), ((2nd𝐴) ·N ((2nd𝐴) ·N ((2nd𝐵) ·N (2nd𝐶))))⟩
26 elpqn 9949 . . . . . . . . . . 11 (𝐴Q𝐴 ∈ (N × N))
27263ad2ant1 1127 . . . . . . . . . 10 ((𝐴Q𝐵Q𝐶Q) → 𝐴 ∈ (N × N))
28 xp2nd 7348 . . . . . . . . . 10 (𝐴 ∈ (N × N) → (2nd𝐴) ∈ N)
2927, 28syl 17 . . . . . . . . 9 ((𝐴Q𝐵Q𝐶Q) → (2nd𝐴) ∈ N)
30 xp1st 7347 . . . . . . . . . . 11 (𝐴 ∈ (N × N) → (1st𝐴) ∈ N)
3127, 30syl 17 . . . . . . . . . 10 ((𝐴Q𝐵Q𝐶Q) → (1st𝐴) ∈ N)
32 elpqn 9949 . . . . . . . . . . . . . 14 (𝐵Q𝐵 ∈ (N × N))
33323ad2ant2 1128 . . . . . . . . . . . . 13 ((𝐴Q𝐵Q𝐶Q) → 𝐵 ∈ (N × N))
34 xp1st 7347 . . . . . . . . . . . . 13 (𝐵 ∈ (N × N) → (1st𝐵) ∈ N)
3533, 34syl 17 . . . . . . . . . . . 12 ((𝐴Q𝐵Q𝐶Q) → (1st𝐵) ∈ N)
36 elpqn 9949 . . . . . . . . . . . . . 14 (𝐶Q𝐶 ∈ (N × N))
37363ad2ant3 1129 . . . . . . . . . . . . 13 ((𝐴Q𝐵Q𝐶Q) → 𝐶 ∈ (N × N))
38 xp2nd 7348 . . . . . . . . . . . . 13 (𝐶 ∈ (N × N) → (2nd𝐶) ∈ N)
3937, 38syl 17 . . . . . . . . . . . 12 ((𝐴Q𝐵Q𝐶Q) → (2nd𝐶) ∈ N)
40 mulclpi 9917 . . . . . . . . . . . 12 (((1st𝐵) ∈ N ∧ (2nd𝐶) ∈ N) → ((1st𝐵) ·N (2nd𝐶)) ∈ N)
4135, 39, 40syl2anc 573 . . . . . . . . . . 11 ((𝐴Q𝐵Q𝐶Q) → ((1st𝐵) ·N (2nd𝐶)) ∈ N)
42 xp1st 7347 . . . . . . . . . . . . 13 (𝐶 ∈ (N × N) → (1st𝐶) ∈ N)
4337, 42syl 17 . . . . . . . . . . . 12 ((𝐴Q𝐵Q𝐶Q) → (1st𝐶) ∈ N)
44 xp2nd 7348 . . . . . . . . . . . . 13 (𝐵 ∈ (N × N) → (2nd𝐵) ∈ N)
4533, 44syl 17 . . . . . . . . . . . 12 ((𝐴Q𝐵Q𝐶Q) → (2nd𝐵) ∈ N)
46 mulclpi 9917 . . . . . . . . . . . 12 (((1st𝐶) ∈ N ∧ (2nd𝐵) ∈ N) → ((1st𝐶) ·N (2nd𝐵)) ∈ N)
4743, 45, 46syl2anc 573 . . . . . . . . . . 11 ((𝐴Q𝐵Q𝐶Q) → ((1st𝐶) ·N (2nd𝐵)) ∈ N)
48 addclpi 9916 . . . . . . . . . . 11 ((((1st𝐵) ·N (2nd𝐶)) ∈ N ∧ ((1st𝐶) ·N (2nd𝐵)) ∈ N) → (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))) ∈ N)
4941, 47, 48syl2anc 573 . . . . . . . . . 10 ((𝐴Q𝐵Q𝐶Q) → (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))) ∈ N)
50 mulclpi 9917 . . . . . . . . . 10 (((1st𝐴) ∈ N ∧ (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))) ∈ N) → ((1st𝐴) ·N (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵)))) ∈ N)
5131, 49, 50syl2anc 573 . . . . . . . . 9 ((𝐴Q𝐵Q𝐶Q) → ((1st𝐴) ·N (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵)))) ∈ N)
52 mulclpi 9917 . . . . . . . . . . 11 (((2nd𝐵) ∈ N ∧ (2nd𝐶) ∈ N) → ((2nd𝐵) ·N (2nd𝐶)) ∈ N)
5345, 39, 52syl2anc 573 . . . . . . . . . 10 ((𝐴Q𝐵Q𝐶Q) → ((2nd𝐵) ·N (2nd𝐶)) ∈ N)
54 mulclpi 9917 . . . . . . . . . 10 (((2nd𝐴) ∈ N ∧ ((2nd𝐵) ·N (2nd𝐶)) ∈ N) → ((2nd𝐴) ·N ((2nd𝐵) ·N (2nd𝐶))) ∈ N)
5529, 53, 54syl2anc 573 . . . . . . . . 9 ((𝐴Q𝐵Q𝐶Q) → ((2nd𝐴) ·N ((2nd𝐵) ·N (2nd𝐶))) ∈ N)
56 mulcanenq 9984 . . . . . . . . 9 (((2nd𝐴) ∈ N ∧ ((1st𝐴) ·N (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵)))) ∈ N ∧ ((2nd𝐴) ·N ((2nd𝐵) ·N (2nd𝐶))) ∈ N) → ⟨((2nd𝐴) ·N ((1st𝐴) ·N (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))))), ((2nd𝐴) ·N ((2nd𝐴) ·N ((2nd𝐵) ·N (2nd𝐶))))⟩ ~Q ⟨((1st𝐴) ·N (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵)))), ((2nd𝐴) ·N ((2nd𝐵) ·N (2nd𝐶)))⟩)
5729, 51, 55, 56syl3anc 1476 . . . . . . . 8 ((𝐴Q𝐵Q𝐶Q) → ⟨((2nd𝐴) ·N ((1st𝐴) ·N (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))))), ((2nd𝐴) ·N ((2nd𝐴) ·N ((2nd𝐵) ·N (2nd𝐶))))⟩ ~Q ⟨((1st𝐴) ·N (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵)))), ((2nd𝐴) ·N ((2nd𝐵) ·N (2nd𝐶)))⟩)
5825, 57syl5eqbr 4821 . . . . . . 7 ((𝐴Q𝐵Q𝐶Q) → ⟨((((1st𝐴) ·N (1st𝐵)) ·N ((2nd𝐴) ·N (2nd𝐶))) +N (((1st𝐴) ·N (1st𝐶)) ·N ((2nd𝐴) ·N (2nd𝐵)))), (((2nd𝐴) ·N (2nd𝐵)) ·N ((2nd𝐴) ·N (2nd𝐶)))⟩ ~Q ⟨((1st𝐴) ·N (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵)))), ((2nd𝐴) ·N ((2nd𝐵) ·N (2nd𝐶)))⟩)
59 mulpipq2 9963 . . . . . . . . . 10 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N)) → (𝐴 ·pQ 𝐵) = ⟨((1st𝐴) ·N (1st𝐵)), ((2nd𝐴) ·N (2nd𝐵))⟩)
6027, 33, 59syl2anc 573 . . . . . . . . 9 ((𝐴Q𝐵Q𝐶Q) → (𝐴 ·pQ 𝐵) = ⟨((1st𝐴) ·N (1st𝐵)), ((2nd𝐴) ·N (2nd𝐵))⟩)
61 mulpipq2 9963 . . . . . . . . . 10 ((𝐴 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (𝐴 ·pQ 𝐶) = ⟨((1st𝐴) ·N (1st𝐶)), ((2nd𝐴) ·N (2nd𝐶))⟩)
6227, 37, 61syl2anc 573 . . . . . . . . 9 ((𝐴Q𝐵Q𝐶Q) → (𝐴 ·pQ 𝐶) = ⟨((1st𝐴) ·N (1st𝐶)), ((2nd𝐴) ·N (2nd𝐶))⟩)
6360, 62oveq12d 6811 . . . . . . . 8 ((𝐴Q𝐵Q𝐶Q) → ((𝐴 ·pQ 𝐵) +pQ (𝐴 ·pQ 𝐶)) = (⟨((1st𝐴) ·N (1st𝐵)), ((2nd𝐴) ·N (2nd𝐵))⟩ +pQ ⟨((1st𝐴) ·N (1st𝐶)), ((2nd𝐴) ·N (2nd𝐶))⟩))
64 mulclpi 9917 . . . . . . . . . 10 (((1st𝐴) ∈ N ∧ (1st𝐵) ∈ N) → ((1st𝐴) ·N (1st𝐵)) ∈ N)
6531, 35, 64syl2anc 573 . . . . . . . . 9 ((𝐴Q𝐵Q𝐶Q) → ((1st𝐴) ·N (1st𝐵)) ∈ N)
66 mulclpi 9917 . . . . . . . . . 10 (((2nd𝐴) ∈ N ∧ (2nd𝐵) ∈ N) → ((2nd𝐴) ·N (2nd𝐵)) ∈ N)
6729, 45, 66syl2anc 573 . . . . . . . . 9 ((𝐴Q𝐵Q𝐶Q) → ((2nd𝐴) ·N (2nd𝐵)) ∈ N)
68 mulclpi 9917 . . . . . . . . . 10 (((1st𝐴) ∈ N ∧ (1st𝐶) ∈ N) → ((1st𝐴) ·N (1st𝐶)) ∈ N)
6931, 43, 68syl2anc 573 . . . . . . . . 9 ((𝐴Q𝐵Q𝐶Q) → ((1st𝐴) ·N (1st𝐶)) ∈ N)
70 mulclpi 9917 . . . . . . . . . 10 (((2nd𝐴) ∈ N ∧ (2nd𝐶) ∈ N) → ((2nd𝐴) ·N (2nd𝐶)) ∈ N)
7129, 39, 70syl2anc 573 . . . . . . . . 9 ((𝐴Q𝐵Q𝐶Q) → ((2nd𝐴) ·N (2nd𝐶)) ∈ N)
72 addpipq 9961 . . . . . . . . 9 (((((1st𝐴) ·N (1st𝐵)) ∈ N ∧ ((2nd𝐴) ·N (2nd𝐵)) ∈ N) ∧ (((1st𝐴) ·N (1st𝐶)) ∈ N ∧ ((2nd𝐴) ·N (2nd𝐶)) ∈ N)) → (⟨((1st𝐴) ·N (1st𝐵)), ((2nd𝐴) ·N (2nd𝐵))⟩ +pQ ⟨((1st𝐴) ·N (1st𝐶)), ((2nd𝐴) ·N (2nd𝐶))⟩) = ⟨((((1st𝐴) ·N (1st𝐵)) ·N ((2nd𝐴) ·N (2nd𝐶))) +N (((1st𝐴) ·N (1st𝐶)) ·N ((2nd𝐴) ·N (2nd𝐵)))), (((2nd𝐴) ·N (2nd𝐵)) ·N ((2nd𝐴) ·N (2nd𝐶)))⟩)
7365, 67, 69, 71, 72syl22anc 1477 . . . . . . . 8 ((𝐴Q𝐵Q𝐶Q) → (⟨((1st𝐴) ·N (1st𝐵)), ((2nd𝐴) ·N (2nd𝐵))⟩ +pQ ⟨((1st𝐴) ·N (1st𝐶)), ((2nd𝐴) ·N (2nd𝐶))⟩) = ⟨((((1st𝐴) ·N (1st𝐵)) ·N ((2nd𝐴) ·N (2nd𝐶))) +N (((1st𝐴) ·N (1st𝐶)) ·N ((2nd𝐴) ·N (2nd𝐵)))), (((2nd𝐴) ·N (2nd𝐵)) ·N ((2nd𝐴) ·N (2nd𝐶)))⟩)
7463, 73eqtrd 2805 . . . . . . 7 ((𝐴Q𝐵Q𝐶Q) → ((𝐴 ·pQ 𝐵) +pQ (𝐴 ·pQ 𝐶)) = ⟨((((1st𝐴) ·N (1st𝐵)) ·N ((2nd𝐴) ·N (2nd𝐶))) +N (((1st𝐴) ·N (1st𝐶)) ·N ((2nd𝐴) ·N (2nd𝐵)))), (((2nd𝐴) ·N (2nd𝐵)) ·N ((2nd𝐴) ·N (2nd𝐶)))⟩)
75 relxp 5266 . . . . . . . . . 10 Rel (N × N)
76 1st2nd 7363 . . . . . . . . . 10 ((Rel (N × N) ∧ 𝐴 ∈ (N × N)) → 𝐴 = ⟨(1st𝐴), (2nd𝐴)⟩)
7775, 27, 76sylancr 575 . . . . . . . . 9 ((𝐴Q𝐵Q𝐶Q) → 𝐴 = ⟨(1st𝐴), (2nd𝐴)⟩)
78 addpipq2 9960 . . . . . . . . . 10 ((𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (𝐵 +pQ 𝐶) = ⟨(((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))), ((2nd𝐵) ·N (2nd𝐶))⟩)
7933, 37, 78syl2anc 573 . . . . . . . . 9 ((𝐴Q𝐵Q𝐶Q) → (𝐵 +pQ 𝐶) = ⟨(((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))), ((2nd𝐵) ·N (2nd𝐶))⟩)
8077, 79oveq12d 6811 . . . . . . . 8 ((𝐴Q𝐵Q𝐶Q) → (𝐴 ·pQ (𝐵 +pQ 𝐶)) = (⟨(1st𝐴), (2nd𝐴)⟩ ·pQ ⟨(((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))), ((2nd𝐵) ·N (2nd𝐶))⟩))
81 mulpipq 9964 . . . . . . . . 9 ((((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 (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵)))), ((2nd𝐴) ·N ((2nd𝐵) ·N (2nd𝐶)))⟩)
8231, 29, 49, 53, 81syl22anc 1477 . . . . . . . 8 ((𝐴Q𝐵Q𝐶Q) → (⟨(1st𝐴), (2nd𝐴)⟩ ·pQ ⟨(((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵))), ((2nd𝐵) ·N (2nd𝐶))⟩) = ⟨((1st𝐴) ·N (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵)))), ((2nd𝐴) ·N ((2nd𝐵) ·N (2nd𝐶)))⟩)
8380, 82eqtrd 2805 . . . . . . 7 ((𝐴Q𝐵Q𝐶Q) → (𝐴 ·pQ (𝐵 +pQ 𝐶)) = ⟨((1st𝐴) ·N (((1st𝐵) ·N (2nd𝐶)) +N ((1st𝐶) ·N (2nd𝐵)))), ((2nd𝐴) ·N ((2nd𝐵) ·N (2nd𝐶)))⟩)
8458, 74, 833brtr4d 4818 . . . . . 6 ((𝐴Q𝐵Q𝐶Q) → ((𝐴 ·pQ 𝐵) +pQ (𝐴 ·pQ 𝐶)) ~Q (𝐴 ·pQ (𝐵 +pQ 𝐶)))
85 mulpqf 9970 . . . . . . . . . 10 ·pQ :((N × N) × (N × N))⟶(N × N)
8685fovcl 6912 . . . . . . . . 9 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N)) → (𝐴 ·pQ 𝐵) ∈ (N × N))
8727, 33, 86syl2anc 573 . . . . . . . 8 ((𝐴Q𝐵Q𝐶Q) → (𝐴 ·pQ 𝐵) ∈ (N × N))
8885fovcl 6912 . . . . . . . . 9 ((𝐴 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (𝐴 ·pQ 𝐶) ∈ (N × N))
8927, 37, 88syl2anc 573 . . . . . . . 8 ((𝐴Q𝐵Q𝐶Q) → (𝐴 ·pQ 𝐶) ∈ (N × N))
90 addpqf 9968 . . . . . . . . 9 +pQ :((N × N) × (N × N))⟶(N × N)
9190fovcl 6912 . . . . . . . 8 (((𝐴 ·pQ 𝐵) ∈ (N × N) ∧ (𝐴 ·pQ 𝐶) ∈ (N × N)) → ((𝐴 ·pQ 𝐵) +pQ (𝐴 ·pQ 𝐶)) ∈ (N × N))
9287, 89, 91syl2anc 573 . . . . . . 7 ((𝐴Q𝐵Q𝐶Q) → ((𝐴 ·pQ 𝐵) +pQ (𝐴 ·pQ 𝐶)) ∈ (N × N))
9390fovcl 6912 . . . . . . . . 9 ((𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (𝐵 +pQ 𝐶) ∈ (N × N))
9433, 37, 93syl2anc 573 . . . . . . . 8 ((𝐴Q𝐵Q𝐶Q) → (𝐵 +pQ 𝐶) ∈ (N × N))
9585fovcl 6912 . . . . . . . 8 ((𝐴 ∈ (N × N) ∧ (𝐵 +pQ 𝐶) ∈ (N × N)) → (𝐴 ·pQ (𝐵 +pQ 𝐶)) ∈ (N × N))
9627, 94, 95syl2anc 573 . . . . . . 7 ((𝐴Q𝐵Q𝐶Q) → (𝐴 ·pQ (𝐵 +pQ 𝐶)) ∈ (N × N))
97 nqereq 9959 . . . . . . 7 ((((𝐴 ·pQ 𝐵) +pQ (𝐴 ·pQ 𝐶)) ∈ (N × N) ∧ (𝐴 ·pQ (𝐵 +pQ 𝐶)) ∈ (N × N)) → (((𝐴 ·pQ 𝐵) +pQ (𝐴 ·pQ 𝐶)) ~Q (𝐴 ·pQ (𝐵 +pQ 𝐶)) ↔ ([Q]‘((𝐴 ·pQ 𝐵) +pQ (𝐴 ·pQ 𝐶))) = ([Q]‘(𝐴 ·pQ (𝐵 +pQ 𝐶)))))
9892, 96, 97syl2anc 573 . . . . . 6 ((𝐴Q𝐵Q𝐶Q) → (((𝐴 ·pQ 𝐵) +pQ (𝐴 ·pQ 𝐶)) ~Q (𝐴 ·pQ (𝐵 +pQ 𝐶)) ↔ ([Q]‘((𝐴 ·pQ 𝐵) +pQ (𝐴 ·pQ 𝐶))) = ([Q]‘(𝐴 ·pQ (𝐵 +pQ 𝐶)))))
9984, 98mpbid 222 . . . . 5 ((𝐴Q𝐵Q𝐶Q) → ([Q]‘((𝐴 ·pQ 𝐵) +pQ (𝐴 ·pQ 𝐶))) = ([Q]‘(𝐴 ·pQ (𝐵 +pQ 𝐶))))
10099eqcomd 2777 . . . 4 ((𝐴Q𝐵Q𝐶Q) → ([Q]‘(𝐴 ·pQ (𝐵 +pQ 𝐶))) = ([Q]‘((𝐴 ·pQ 𝐵) +pQ (𝐴 ·pQ 𝐶))))
101 mulerpq 9981 . . . 4 (([Q]‘𝐴) ·Q ([Q]‘(𝐵 +pQ 𝐶))) = ([Q]‘(𝐴 ·pQ (𝐵 +pQ 𝐶)))
102 adderpq 9980 . . . 4 (([Q]‘(𝐴 ·pQ 𝐵)) +Q ([Q]‘(𝐴 ·pQ 𝐶))) = ([Q]‘((𝐴 ·pQ 𝐵) +pQ (𝐴 ·pQ 𝐶)))
103100, 101, 1023eqtr4g 2830 . . 3 ((𝐴Q𝐵Q𝐶Q) → (([Q]‘𝐴) ·Q ([Q]‘(𝐵 +pQ 𝐶))) = (([Q]‘(𝐴 ·pQ 𝐵)) +Q ([Q]‘(𝐴 ·pQ 𝐶))))
104 nqerid 9957 . . . . . 6 (𝐴Q → ([Q]‘𝐴) = 𝐴)
105104eqcomd 2777 . . . . 5 (𝐴Q𝐴 = ([Q]‘𝐴))
1061053ad2ant1 1127 . . . 4 ((𝐴Q𝐵Q𝐶Q) → 𝐴 = ([Q]‘𝐴))
107 addpqnq 9962 . . . . 5 ((𝐵Q𝐶Q) → (𝐵 +Q 𝐶) = ([Q]‘(𝐵 +pQ 𝐶)))
1081073adant1 1124 . . . 4 ((𝐴Q𝐵Q𝐶Q) → (𝐵 +Q 𝐶) = ([Q]‘(𝐵 +pQ 𝐶)))
109106, 108oveq12d 6811 . . 3 ((𝐴Q𝐵Q𝐶Q) → (𝐴 ·Q (𝐵 +Q 𝐶)) = (([Q]‘𝐴) ·Q ([Q]‘(𝐵 +pQ 𝐶))))
110 mulpqnq 9965 . . . . 5 ((𝐴Q𝐵Q) → (𝐴 ·Q 𝐵) = ([Q]‘(𝐴 ·pQ 𝐵)))
1111103adant3 1126 . . . 4 ((𝐴Q𝐵Q𝐶Q) → (𝐴 ·Q 𝐵) = ([Q]‘(𝐴 ·pQ 𝐵)))
112 mulpqnq 9965 . . . . 5 ((𝐴Q𝐶Q) → (𝐴 ·Q 𝐶) = ([Q]‘(𝐴 ·pQ 𝐶)))
1131123adant2 1125 . . . 4 ((𝐴Q𝐵Q𝐶Q) → (𝐴 ·Q 𝐶) = ([Q]‘(𝐴 ·pQ 𝐶)))
114111, 113oveq12d 6811 . . 3 ((𝐴Q𝐵Q𝐶Q) → ((𝐴 ·Q 𝐵) +Q (𝐴 ·Q 𝐶)) = (([Q]‘(𝐴 ·pQ 𝐵)) +Q ([Q]‘(𝐴 ·pQ 𝐶))))
115103, 109, 1143eqtr4d 2815 . 2 ((𝐴Q𝐵Q𝐶Q) → (𝐴 ·Q (𝐵 +Q 𝐶)) = ((𝐴 ·Q 𝐵) +Q (𝐴 ·Q 𝐶)))
116 addnqf 9972 . . . 4 +Q :(Q × Q)⟶Q
117116fdmi 6192 . . 3 dom +Q = (Q × Q)
118 0nnq 9948 . . 3 ¬ ∅ ∈ Q
119 mulnqf 9973 . . . 4 ·Q :(Q × Q)⟶Q
120119fdmi 6192 . . 3 dom ·Q = (Q × Q)
121117, 118, 120ndmovdistr 6970 . 2 (¬ (𝐴Q𝐵Q𝐶Q) → (𝐴 ·Q (𝐵 +Q 𝐶)) = ((𝐴 ·Q 𝐵) +Q (𝐴 ·Q 𝐶)))
122115, 121pm2.61i 176 1 (𝐴 ·Q (𝐵 +Q 𝐶)) = ((𝐴 ·Q 𝐵) +Q (𝐴 ·Q 𝐶))
Colors of variables: wff setvar class
Syntax hints:  wb 196  w3a 1071   = wceq 1631  wcel 2145  cop 4322   class class class wbr 4786   × cxp 5247  Rel wrel 5254  cfv 6031  (class class class)co 6793  1st c1st 7313  2nd c2nd 7314  Ncnpi 9868   +N cpli 9869   ·N cmi 9870   +pQ cplpq 9872   ·pQ cmpq 9873   ~Q ceq 9875  Qcnq 9876  [Q]cerq 9878   +Q cplq 9879   ·Q cmq 9880
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1870  ax-4 1885  ax-5 1991  ax-6 2057  ax-7 2093  ax-8 2147  ax-9 2154  ax-10 2174  ax-11 2190  ax-12 2203  ax-13 2408  ax-ext 2751  ax-sep 4915  ax-nul 4923  ax-pow 4974  ax-pr 5034  ax-un 7096
This theorem depends on definitions:  df-bi 197  df-an 383  df-or 835  df-3or 1072  df-3an 1073  df-tru 1634  df-ex 1853  df-nf 1858  df-sb 2050  df-eu 2622  df-mo 2623  df-clab 2758  df-cleq 2764  df-clel 2767  df-nfc 2902  df-ne 2944  df-ral 3066  df-rex 3067  df-reu 3068  df-rmo 3069  df-rab 3070  df-v 3353  df-sbc 3588  df-csb 3683  df-dif 3726  df-un 3728  df-in 3730  df-ss 3737  df-pss 3739  df-nul 4064  df-if 4226  df-pw 4299  df-sn 4317  df-pr 4319  df-tp 4321  df-op 4323  df-uni 4575  df-iun 4656  df-br 4787  df-opab 4847  df-mpt 4864  df-tr 4887  df-id 5157  df-eprel 5162  df-po 5170  df-so 5171  df-fr 5208  df-we 5210  df-xp 5255  df-rel 5256  df-cnv 5257  df-co 5258  df-dm 5259  df-rn 5260  df-res 5261  df-ima 5262  df-pred 5823  df-ord 5869  df-on 5870  df-lim 5871  df-suc 5872  df-iota 5994  df-fun 6033  df-fn 6034  df-f 6035  df-f1 6036  df-fo 6037  df-f1o 6038  df-fv 6039  df-ov 6796  df-oprab 6797  df-mpt2 6798  df-om 7213  df-1st 7315  df-2nd 7316  df-wrecs 7559  df-recs 7621  df-rdg 7659  df-1o 7713  df-oadd 7717  df-omul 7718  df-er 7896  df-ni 9896  df-pli 9897  df-mi 9898  df-lti 9899  df-plpq 9932  df-mpq 9933  df-enq 9935  df-nq 9936  df-erq 9937  df-plq 9938  df-mq 9939  df-1nq 9940
This theorem is referenced by:  ltaddnq  9998  halfnq  10000  addclprlem2  10041  distrlem1pr  10049  distrlem4pr  10050  prlem934  10057  prlem936  10071
  Copyright terms: Public domain W3C validator