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

Theorem mulassnq 11071
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 11009 . . . . . . 7 (((1st ‘𝐴) ·N (1st ‘𝐵)) ·N (1st ‘𝐶)) = ((1st ‘𝐴) ·N ((1st ‘𝐵) ·N (1st ‘𝐶)))
2 mulasspi 11009 . . . . . . 7 (((2nd ‘𝐴) ·N (2nd ‘𝐵)) ·N (2nd ‘𝐶)) = ((2nd ‘𝐴) ·N ((2nd ‘𝐵) ·N (2nd ‘𝐶)))
31, 2opeq12i 4848 . . . . . 6 ⟨(((1st ‘𝐴) ·N (1st ‘𝐵)) ·N (1st ‘𝐶)), (((2nd ‘𝐴) ·N (2nd ‘𝐵)) ·N (2nd ‘𝐶))⟩ = ⟨((1st ‘𝐴) ·N ((1st ‘𝐵) ·N (1st ‘𝐶))), ((2nd ‘𝐴) ·N ((2nd ‘𝐵) ·N (2nd ‘𝐶)))⟩
4 elpqn 11037 . . . . . . . . . 10 (𝐴 ∈ Q → 𝐴 ∈ (N × N))
543ad2ant1 1151 . . . . . . . . 9 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → 𝐴 ∈ (N × N))
6 elpqn 11037 . . . . . . . . . 10 (𝐵 ∈ Q → 𝐵 ∈ (N × N))
763ad2ant2 1152 . . . . . . . . 9 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → 𝐵 ∈ (N × N))
8 mulpipq2 11051 . . . . . . . . 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 5673 . . . . . . . . 9 Rel (N × N)
11 elpqn 11037 . . . . . . . . . 10 (𝐶 ∈ Q → 𝐶 ∈ (N × N))
12113ad2ant3 1153 . . . . . . . . 9 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → 𝐶 ∈ (N × N))
13 1st2nd 8074 . . . . . . . . 9 ((Rel (N × N) ∧ 𝐶 ∈ (N × N)) → 𝐶 = ⟨(1st ‘𝐶), (2nd ‘𝐶)⟩)
1410, 12, 13sylancr 599 . . . . . . . 8 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → 𝐶 = ⟨(1st ‘𝐶), (2nd ‘𝐶)⟩)
159, 14oveq12d 7461 . . . . . . 7 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → ((𝐴 ·pQ 𝐵) ·pQ 𝐶) = (⟨((1st ‘𝐴) ·N (1st ‘𝐵)), ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩ ·pQ ⟨(1st ‘𝐶), (2nd ‘𝐶)⟩))
16 xp1st 8057 . . . . . . . . . 10 (𝐴 ∈ (N × N) → (1st ‘𝐴) ∈ N)
175, 16syl 18 . . . . . . . . 9 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (1st ‘𝐴) ∈ N)
18 xp1st 8057 . . . . . . . . . 10 (𝐵 ∈ (N × N) → (1st ‘𝐵) ∈ N)
197, 18syl 18 . . . . . . . . 9 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (1st ‘𝐵) ∈ N)
20 mulclpi 11005 . . . . . . . . 9 (((1st ‘𝐴) ∈ N ∧ (1st ‘𝐵) ∈ N) → ((1st ‘𝐴) ·N (1st ‘𝐵)) ∈ N)
2117, 19, 20syl2anc 596 . . . . . . . 8 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → ((1st ‘𝐴) ·N (1st ‘𝐵)) ∈ N)
22 xp2nd 8058 . . . . . . . . . 10 (𝐴 ∈ (N × N) → (2nd ‘𝐴) ∈ N)
235, 22syl 18 . . . . . . . . 9 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (2nd ‘𝐴) ∈ N)
24 xp2nd 8058 . . . . . . . . . 10 (𝐵 ∈ (N × N) → (2nd ‘𝐵) ∈ N)
257, 24syl 18 . . . . . . . . 9 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (2nd ‘𝐵) ∈ N)
26 mulclpi 11005 . . . . . . . . 9 (((2nd ‘𝐴) ∈ N ∧ (2nd ‘𝐵) ∈ N) → ((2nd ‘𝐴) ·N (2nd ‘𝐵)) ∈ N)
2723, 25, 26syl2anc 596 . . . . . . . 8 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → ((2nd ‘𝐴) ·N (2nd ‘𝐵)) ∈ N)
28 xp1st 8057 . . . . . . . . 9 (𝐶 ∈ (N × N) → (1st ‘𝐶) ∈ N)
2912, 28syl 18 . . . . . . . 8 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (1st ‘𝐶) ∈ N)
30 xp2nd 8058 . . . . . . . . 9 (𝐶 ∈ (N × N) → (2nd ‘𝐶) ∈ N)
3112, 30syl 18 . . . . . . . 8 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (2nd ‘𝐶) ∈ N)
32 mulpipq 11052 . . . . . . . 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 2798 . . . . . 6 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → ((𝐴 ·pQ 𝐵) ·pQ 𝐶) = ⟨(((1st ‘𝐴) ·N (1st ‘𝐵)) ·N (1st ‘𝐶)), (((2nd ‘𝐴) ·N (2nd ‘𝐵)) ·N (2nd ‘𝐶))⟩)
35 1st2nd 8074 . . . . . . . . 9 ((Rel (N × N) ∧ 𝐴 ∈ (N × N)) → 𝐴 = ⟨(1st ‘𝐴), (2nd ‘𝐴)⟩)
3610, 5, 35sylancr 599 . . . . . . . 8 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → 𝐴 = ⟨(1st ‘𝐴), (2nd ‘𝐴)⟩)
37 mulpipq2 11051 . . . . . . . . 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 7461 . . . . . . 7 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (𝐴 ·pQ (𝐵 ·pQ 𝐶)) = (⟨(1st ‘𝐴), (2nd ‘𝐴)⟩ ·pQ ⟨((1st ‘𝐵) ·N (1st ‘𝐶)), ((2nd ‘𝐵) ·N (2nd ‘𝐶))⟩))
40 mulclpi 11005 . . . . . . . . 9 (((1st ‘𝐵) ∈ N ∧ (1st ‘𝐶) ∈ N) → ((1st ‘𝐵) ·N (1st ‘𝐶)) ∈ N)
4119, 29, 40syl2anc 596 . . . . . . . 8 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → ((1st ‘𝐵) ·N (1st ‘𝐶)) ∈ N)
42 mulclpi 11005 . . . . . . . . 9 (((2nd ‘𝐵) ∈ N ∧ (2nd ‘𝐶) ∈ N) → ((2nd ‘𝐵) ·N (2nd ‘𝐶)) ∈ N)
4325, 31, 42syl2anc 596 . . . . . . . 8 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → ((2nd ‘𝐵) ·N (2nd ‘𝐶)) ∈ N)
44 mulpipq 11052 . . . . . . . 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 2798 . . . . . 6 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (𝐴 ·pQ (𝐵 ·pQ 𝐶)) = ⟨((1st ‘𝐴) ·N ((1st ‘𝐵) ·N (1st ‘𝐶))), ((2nd ‘𝐴) ·N ((2nd ‘𝐵) ·N (2nd ‘𝐶)))⟩)
473, 34, 463eqtr4a 2824 . . . . 5 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → ((𝐴 ·pQ 𝐵) ·pQ 𝐶) = (𝐴 ·pQ (𝐵 ·pQ 𝐶)))
4847fveq2d 6912 . . . 4 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → ([Q]‘((𝐴 ·pQ 𝐵) ·pQ 𝐶)) = ([Q]‘(𝐴 ·pQ (𝐵 ·pQ 𝐶))))
49 mulerpq 11069 . . . 4 (([Q]‘(𝐴 ·pQ 𝐵)) ·Q ([Q]‘𝐶)) = ([Q]‘((𝐴 ·pQ 𝐵) ·pQ 𝐶))
50 mulerpq 11069 . . . 4 (([Q]‘𝐴) ·Q ([Q]‘(𝐵 ·pQ 𝐶))) = ([Q]‘(𝐴 ·pQ (𝐵 ·pQ 𝐶)))
5148, 49, 503eqtr4g 2823 . . 3 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (([Q]‘(𝐴 ·pQ 𝐵)) ·Q ([Q]‘𝐶)) = (([Q]‘𝐴) ·Q ([Q]‘(𝐵 ·pQ 𝐶))))
52 mulpqnq 11053 . . . . 5 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → (𝐴 ·Q 𝐵) = ([Q]‘(𝐴 ·pQ 𝐵)))
53523adant3 1150 . . . 4 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (𝐴 ·Q 𝐵) = ([Q]‘(𝐴 ·pQ 𝐵)))
54 nqerid 11045 . . . . . 6 (𝐶 ∈ Q → ([Q]‘𝐶) = 𝐶)
5554eqcomd 2769 . . . . 5 (𝐶 ∈ Q → 𝐶 = ([Q]‘𝐶))
56553ad2ant3 1153 . . . 4 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → 𝐶 = ([Q]‘𝐶))
5753, 56oveq12d 7461 . . 3 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → ((𝐴 ·Q 𝐵) ·Q 𝐶) = (([Q]‘(𝐴 ·pQ 𝐵)) ·Q ([Q]‘𝐶)))
58 nqerid 11045 . . . . . 6 (𝐴 ∈ Q → ([Q]‘𝐴) = 𝐴)
5958eqcomd 2769 . . . . 5 (𝐴 ∈ Q → 𝐴 = ([Q]‘𝐴))
60593ad2ant1 1151 . . . 4 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → 𝐴 = ([Q]‘𝐴))
61 mulpqnq 11053 . . . . 5 ((𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (𝐵 ·Q 𝐶) = ([Q]‘(𝐵 ·pQ 𝐶)))
62613adant1 1148 . . . 4 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (𝐵 ·Q 𝐶) = ([Q]‘(𝐵 ·pQ 𝐶)))
6360, 62oveq12d 7461 . . 3 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → (𝐴 ·Q (𝐵 ·Q 𝐶)) = (([Q]‘𝐴) ·Q ([Q]‘(𝐵 ·pQ 𝐶))))
6451, 57, 633eqtr4d 2808 . 2 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q ∧ 𝐶 ∈ Q) → ((𝐴 ·Q 𝐵) ·Q 𝐶) = (𝐴 ·Q (𝐵 ·Q 𝐶)))
65 mulnqf 11061 . . . 4 ·Q :(Q × Q)⟶Q
6665fdmi 6743 . . 3 dom ·Q = (Q × Q)
67 0nnq 11036 . . 3 ¬ ∅ ∈ Q
6866, 67ndmovass 7633 . 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 2147  ⟨cop 4838   × cxp 5653  Rel wrel 5660  ‘cfv 6558  (class class class)co 7443  1st c1st 8023  2nd c2nd 8024  Ncnpi 10956   ·N cmi 10958   ·pQ cmpq 10961  Qcnq 10964  [Q]cerq 10966   ·Q cmq 10968
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5252  ax-nul 5263  ax-pr 5395  ax-un 7775
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 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-rmo 3369  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-pss 4017  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-iun 4956  df-br 5107  df-opab 5171  df-mpt 5190  df-tr 5216  df-id 5550  df-eprel 5555  df-po 5563  df-so 5564  df-fr 5608  df-we 5610  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-pred 6322  df-ord 6383  df-on 6384  df-lim 6385  df-suc 6386  df-iota 6512  df-fun 6560  df-fn 6561  df-f 6562  df-f1 6563  df-fo 6564  df-f1o 6565  df-fv 6566  df-ov 7446  df-oprab 7447  df-mpo 7448  df-om 7902  df-1st 8025  df-2nd 8026  df-frecs 8327  df-wrecs 8358  df-recs 8407  df-rdg 8446  df-1o 8504  df-oadd 8508  df-omul 8509  df-er 8745  df-ni 10984  df-mi 10986  df-lti 10987  df-mpq 11021  df-enq 11023  df-nq 11024  df-erq 11025  df-mq 11027  df-1nq 11028
This theorem is used by:  recmulnq  11076  halfnq  11088  ltrnq  11091  addclprlem2  11129  mulclprlem  11131  mulasspr  11136  1idpr  11141  prlem934  11145  prlem936  11159  reclem3pr  11161
  Copyright terms: Public domain W3C validator