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

Theorem mulassnq 11015
Description: Multiplication of positive fractions is associative. (Contributed by NM, 1-Sep-1995.) (Revised by Mario Carneiro, 8-May-2013.) (New usage is discouraged.)
Assertion
Ref Expression
mulassnq ((𝐴 ·Q 𝐵) ·Q 𝐶) = (𝐴 ·Q (𝐵 ·Q 𝐶))

Proof of Theorem mulassnq
StepHypRef Expression
1 mulasspi 10953 . . . . . . 7 (((1st ‘𝐴) ·N (1st ‘𝐵)) ·N (1st ‘𝐶)) = ((1st ‘𝐴) ·N ((1st ‘𝐵) ·N (1st ‘𝐶)))
2 mulasspi 10953 . . . . . . 7 (((2nd ‘𝐴) ·N (2nd ‘𝐵)) ·N (2nd ‘𝐶)) = ((2nd ‘𝐴) ·N ((2nd ‘𝐵) ·N (2nd ‘𝐶)))
31, 2opeq12i 4837 . . . . . 6 ⟨(((1st ‘𝐴) ·N (1st ‘𝐵)) ·N (1st ‘𝐶)), (((2nd ‘𝐴) ·N (2nd ‘𝐵)) ·N (2nd ‘𝐶))⟩ = ⟨((1st ‘𝐴) ·N ((1st ‘𝐵) ·N (1st ‘𝐶))), ((2nd ‘𝐴) ·N ((2nd ‘𝐵) ·N (2nd ‘𝐶)))⟩
4 elpqn 10981 . . . . . . . . . 10 (𝐴 ∈ Q → 𝐴 ∈ (N × N))
543ad2ant1 1151 . . . . . . . . 9 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → 𝐴 ∈ (N × N))
6 elpqn 10981 . . . . . . . . . 10 (𝐵 ∈ Q → 𝐵 ∈ (N × N))
763ad2ant2 1152 . . . . . . . . 9 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → 𝐵 ∈ (N × N))
8 mulpipq2 10995 . . . . . . . . 9 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N)) → (𝐴 ·pQ 𝐵) = ⟨((1st ‘𝐴) ·N (1st ‘𝐵)), ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)
95, 7, 8syl2anc 596 . . . . . . . 8 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (𝐴 ·pQ 𝐵) = ⟨((1st ‘𝐴) ·N (1st ‘𝐵)), ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)
10 relxp 5665 . . . . . . . . 9 Rel (N × N)
11 elpqn 10981 . . . . . . . . . 10 (𝐶 ∈ Q → 𝐶 ∈ (N × N))
12113ad2ant3 1153 . . . . . . . . 9 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → 𝐶 ∈ (N × N))
13 1st2nd 8033 . . . . . . . . 9 ((Rel (N × N) ∧ 𝐶 ∈ (N × N)) → 𝐶 = ⟨(1st ‘𝐶), (2nd ‘𝐶)⟩)
1410, 12, 13sylancr 599 . . . . . . . 8 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → 𝐶 = ⟨(1st ‘𝐶), (2nd ‘𝐶)⟩)
159, 14oveq12d 7426 . . . . . . 7 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → ((𝐴 ·pQ 𝐵) ·pQ 𝐶) = (⟨((1st ‘𝐴) ·N (1st ‘𝐵)), ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩ ·pQ ⟨(1st ‘𝐶), (2nd ‘𝐶)⟩))
16 xp1st 8016 . . . . . . . . . 10 (𝐴 ∈ (N × N) → (1st ‘𝐴) ∈ N)
175, 16syl 18 . . . . . . . . 9 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (1st ‘𝐴) ∈ N)
18 xp1st 8016 . . . . . . . . . 10 (𝐵 ∈ (N × N) → (1st ‘𝐵) ∈ N)
197, 18syl 18 . . . . . . . . 9 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (1st ‘𝐵) ∈ N)
20 mulclpi 10949 . . . . . . . . 9 (((1st ‘𝐴) ∈ N ∧ (1st ‘𝐵) ∈ N) → ((1st ‘𝐴) ·N (1st ‘𝐵)) ∈ N)
2117, 19, 20syl2anc 596 . . . . . . . 8 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → ((1st ‘𝐴) ·N (1st ‘𝐵)) ∈ N)
22 xp2nd 8017 . . . . . . . . . 10 (𝐴 ∈ (N × N) → (2nd ‘𝐴) ∈ N)
235, 22syl 18 . . . . . . . . 9 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (2nd ‘𝐴) ∈ N)
24 xp2nd 8017 . . . . . . . . . 10 (𝐵 ∈ (N × N) → (2nd ‘𝐵) ∈ N)
257, 24syl 18 . . . . . . . . 9 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (2nd ‘𝐵) ∈ N)
26 mulclpi 10949 . . . . . . . . 9 (((2nd ‘𝐴) ∈ N ∧ (2nd ‘𝐵) ∈ N) → ((2nd ‘𝐴) ·N (2nd ‘𝐵)) ∈ N)
2723, 25, 26syl2anc 596 . . . . . . . 8 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → ((2nd ‘𝐴) ·N (2nd ‘𝐵)) ∈ N)
28 xp1st 8016 . . . . . . . . 9 (𝐶 ∈ (N × N) → (1st ‘𝐶) ∈ N)
2912, 28syl 18 . . . . . . . 8 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (1st ‘𝐶) ∈ N)
30 xp2nd 8017 . . . . . . . . 9 (𝐶 ∈ (N × N) → (2nd ‘𝐶) ∈ N)
3112, 30syl 18 . . . . . . . 8 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (2nd ‘𝐶) ∈ N)
32 mulpipq 10996 . . . . . . . 8 (((((1st ‘𝐴) ·N (1st ‘𝐵)) ∈ N ∧ ((2nd ‘𝐴) ·N (2nd ‘𝐵)) ∈ N) ∧ ((1st ‘𝐶) ∈ N ∧ (2nd ‘𝐶) ∈ N)) → (⟨((1st ‘𝐴) ·N (1st ‘𝐵)), ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩ ·pQ ⟨(1st ‘𝐶), (2nd ‘𝐶)⟩) = ⟨(((1st ‘𝐴) ·N (1st ‘𝐵)) ·N (1st ‘𝐶)), (((2nd ‘𝐴) ·N (2nd ‘𝐵)) ·N (2nd ‘𝐶))⟩)
3321, 27, 29, 31, 32syl22anc 852 . . . . . . 7 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (⟨((1st ‘𝐴) ·N (1st ‘𝐵)), ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩ ·pQ ⟨(1st ‘𝐶), (2nd ‘𝐶)⟩) = ⟨(((1st ‘𝐴) ·N (1st ‘𝐵)) ·N (1st ‘𝐶)), (((2nd ‘𝐴) ·N (2nd ‘𝐵)) ·N (2nd ‘𝐶))⟩)
3415, 33eqtrd 2795 . . . . . 6 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → ((𝐴 ·pQ 𝐵) ·pQ 𝐶) = ⟨(((1st ‘𝐴) ·N (1st ‘𝐵)) ·N (1st ‘𝐶)), (((2nd ‘𝐴) ·N (2nd ‘𝐵)) ·N (2nd ‘𝐶))⟩)
35 1st2nd 8033 . . . . . . . . 9 ((Rel (N × N) ∧ 𝐴 ∈ (N × N)) → 𝐴 = ⟨(1st ‘𝐴), (2nd ‘𝐴)⟩)
3610, 5, 35sylancr 599 . . . . . . . 8 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → 𝐴 = ⟨(1st ‘𝐴), (2nd ‘𝐴)⟩)
37 mulpipq2 10995 . . . . . . . . 9 ((𝐵 ∈ (N × N) ∧ 𝐶 ∈ (N × N)) → (𝐵 ·pQ 𝐶) = ⟨((1st ‘𝐵) ·N (1st ‘𝐶)), ((2nd ‘𝐵) ·N (2nd ‘𝐶))⟩)
387, 12, 37syl2anc 596 . . . . . . . 8 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (𝐵 ·pQ 𝐶) = ⟨((1st ‘𝐵) ·N (1st ‘𝐶)), ((2nd ‘𝐵) ·N (2nd ‘𝐶))⟩)
3936, 38oveq12d 7426 . . . . . . 7 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (𝐴 ·pQ (𝐵 ·pQ 𝐶)) = (⟨(1st ‘𝐴), (2nd ‘𝐴)⟩ ·pQ ⟨((1st ‘𝐵) ·N (1st ‘𝐶)), ((2nd ‘𝐵) ·N (2nd ‘𝐶))⟩))
40 mulclpi 10949 . . . . . . . . 9 (((1st ‘𝐵) ∈ N ∧ (1st ‘𝐶) ∈ N) → ((1st ‘𝐵) ·N (1st ‘𝐶)) ∈ N)
4119, 29, 40syl2anc 596 . . . . . . . 8 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → ((1st ‘𝐵) ·N (1st ‘𝐶)) ∈ N)
42 mulclpi 10949 . . . . . . . . 9 (((2nd ‘𝐵) ∈ N ∧ (2nd ‘𝐶) ∈ N) → ((2nd ‘𝐵) ·N (2nd ‘𝐶)) ∈ N)
4325, 31, 42syl2anc 596 . . . . . . . 8 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → ((2nd ‘𝐵) ·N (2nd ‘𝐶)) ∈ N)
44 mulpipq 10996 . . . . . . . 8 ((((1st ‘𝐴) ∈ N ∧ (2nd ‘𝐴) ∈ N) ∧ (((1st ‘𝐵) ·N (1st ‘𝐶)) ∈ N ∧ ((2nd ‘𝐵) ·N (2nd ‘𝐶)) ∈ N)) → (⟨(1st ‘𝐴), (2nd ‘𝐴)⟩ ·pQ ⟨((1st ‘𝐵) ·N (1st ‘𝐶)), ((2nd ‘𝐵) ·N (2nd ‘𝐶))⟩) = ⟨((1st ‘𝐴) ·N ((1st ‘𝐵) ·N (1st ‘𝐶))), ((2nd ‘𝐴) ·N ((2nd ‘𝐵) ·N (2nd ‘𝐶)))⟩)
4517, 23, 41, 43, 44syl22anc 852 . . . . . . 7 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (⟨(1st ‘𝐴), (2nd ‘𝐴)⟩ ·pQ ⟨((1st ‘𝐵) ·N (1st ‘𝐶)), ((2nd ‘𝐵) ·N (2nd ‘𝐶))⟩) = ⟨((1st ‘𝐴) ·N ((1st ‘𝐵) ·N (1st ‘𝐶))), ((2nd ‘𝐴) ·N ((2nd ‘𝐵) ·N (2nd ‘𝐶)))⟩)
4639, 45eqtrd 2795 . . . . . 6 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (𝐴 ·pQ (𝐵 ·pQ 𝐶)) = ⟨((1st ‘𝐴) ·N ((1st ‘𝐵) ·N (1st ‘𝐶))), ((2nd ‘𝐴) ·N ((2nd ‘𝐵) ·N (2nd ‘𝐶)))⟩)
473, 34, 463eqtr4a 2821 . . . . 5 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → ((𝐴 ·pQ 𝐵) ·pQ 𝐶) = (𝐴 ·pQ (𝐵 ·pQ 𝐶)))
4847fveq2d 6877 . . . 4 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → ([Q]‘((𝐴 ·pQ 𝐵) ·pQ 𝐶)) = ([Q]‘(𝐴 ·pQ (𝐵 ·pQ 𝐶))))
49 mulerpq 11013 . . . 4 (([Q]‘(𝐴 ·pQ 𝐵)) ·Q ([Q]‘𝐶)) = ([Q]‘((𝐴 ·pQ 𝐵) ·pQ 𝐶))
50 mulerpq 11013 . . . 4 (([Q]‘𝐴) ·Q ([Q]‘(𝐵 ·pQ 𝐶))) = ([Q]‘(𝐴 ·pQ (𝐵 ·pQ 𝐶)))
5148, 49, 503eqtr4g 2820 . . 3 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (([Q]‘(𝐴 ·pQ 𝐵)) ·Q ([Q]‘𝐶)) = (([Q]‘𝐴) ·Q ([Q]‘(𝐵 ·pQ 𝐶))))
52 mulpqnq 10997 . . . . 5 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → (𝐴 ·Q 𝐵) = ([Q]‘(𝐴 ·pQ 𝐵)))
53523adant3 1150 . . . 4 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (𝐴 ·Q 𝐵) = ([Q]‘(𝐴 ·pQ 𝐵)))
54 nqerid 10989 . . . . . 6 (𝐶 ∈ Q → ([Q]‘𝐶) = 𝐶)
5554eqcomd 2766 . . . . 5 (𝐶 ∈ Q → 𝐶 = ([Q]‘𝐶))
56553ad2ant3 1153 . . . 4 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → 𝐶 = ([Q]‘𝐶))
5753, 56oveq12d 7426 . . 3 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → ((𝐴 ·Q 𝐵) ·Q 𝐶) = (([Q]‘(𝐴 ·pQ 𝐵)) ·Q ([Q]‘𝐶)))
58 nqerid 10989 . . . . . 6 (𝐴 ∈ Q → ([Q]‘𝐴) = 𝐴)
5958eqcomd 2766 . . . . 5 (𝐴 ∈ Q → 𝐴 = ([Q]‘𝐴))
60593ad2ant1 1151 . . . 4 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → 𝐴 = ([Q]‘𝐴))
61 mulpqnq 10997 . . . . 5 ((𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (𝐵 ·Q 𝐶) = ([Q]‘(𝐵 ·pQ 𝐶)))
62613adant1 1148 . . . 4 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (𝐵 ·Q 𝐶) = ([Q]‘(𝐵 ·pQ 𝐶)))
6360, 62oveq12d 7426 . . 3 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (𝐴 ·Q (𝐵 ·Q 𝐶)) = (([Q]‘𝐴) ·Q ([Q]‘(𝐵 ·pQ 𝐶))))
6451, 57, 633eqtr4d 2805 . 2 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → ((𝐴 ·Q 𝐵) ·Q 𝐶) = (𝐴 ·Q (𝐵 ·Q 𝐶)))
65 mulnqf 11005 . . . 4 ·Q :(Q × Q)⟶Q
6665fdmi 6709 . . 3 dom ·Q = (Q × Q)
67 0nnq 10980 . . 3 ¬ ∅ ∈ Q
6866, 67ndmovass 7597 . 2 (¬ (𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → ((𝐴 ·Q 𝐵) ·Q 𝐶) = (𝐴 ·Q (𝐵 ·Q 𝐶)))
6964, 68pm2.61i 184 1 ((𝐴 ·Q 𝐵) ·Q 𝐶) = (𝐴 ·Q (𝐵 ·Q 𝐶))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ∧ w3a 1103   = wceq 1570   ∈ wcel 2145  ⟨cop 4589   × cxp 5645  Rel wrel 5652  ‘cfv 6527  (class class class)co 7408  1st c1st 7982  2nd c2nd 7983  Ncnpi 10900   ·N cmi 10902   ·pQ cmpq 10905  Qcnq 10908  [Q]cerq 10910   ·Q cmq 10912
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2732  ax-sep 5248  ax-nul 5259  ax-pr 5390  ax-un 7734
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-ral 3077  df-rex 3087  df-rmo 3365  df-reu 3366  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-dif 3901  df-un 3903  df-in 3905  df-ss 3915  df-pss 3918  df-nul 4279  df-if 4482  df-pw 4558  df-sn 4584  df-pr 4586  df-op 4590  df-uni 4867  df-iun 4952  df-br 5103  df-opab 5167  df-mpt 5186  df-tr 5212  df-id 5542  df-eprel 5547  df-po 5555  df-so 5556  df-fr 5600  df-we 5602  df-xp 5653  df-rel 5654  df-cnv 5655  df-co 5656  df-dm 5657  df-rn 5658  df-res 5659  df-ima 5660  df-pred 6293  df-ord 6354  df-on 6355  df-lim 6356  df-suc 6357  df-iota 6483  df-fun 6529  df-fn 6530  df-f 6531  df-f1 6532  df-fo 6533  df-f1o 6534  df-fv 6535  df-ov 7411  df-oprab 7412  df-mpo 7413  df-om 7861  df-1st 7984  df-2nd 7985  df-frecs 8277  df-wrecs 8308  df-recs 8357  df-rdg 8396  df-1o 8454  df-oadd 8458  df-omul 8459  df-er 8695  df-ni 10928  df-mi 10930  df-lti 10931  df-mpq 10965  df-enq 10967  df-nq 10968  df-erq 10969  df-mq 10971  df-1nq 10972
This theorem is used by:  recmulnq  11020  halfnq  11032  ltrnq  11035  addclprlem2  11073  mulclprlem  11075  mulasspr  11080  1idpr  11085  prlem934  11089  prlem936  11103  reclem3pr  11105
  Copyright terms: Public domain W3C validator