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

Theorem addpipq2 11002
Description: Addition of positive fractions in terms of positive integers. (Contributed by Mario Carneiro, 8-May-2013.) (New usage is discouraged.)
Assertion
Ref Expression
addpipq2 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N)) → (𝐴 +pQ 𝐵) = ⟨(((1st ‘𝐴) ·N (2nd ‘𝐵)) +N ((1st ‘𝐵) ·N (2nd ‘𝐴))), ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)

Proof of Theorem addpipq2
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fveq2 6877 . . . . 5 (𝑥 = 𝐴 → (1st ‘𝑥) = (1st ‘𝐴))
21oveq1d 7427 . . . 4 (𝑥 = 𝐴 → ((1st ‘𝑥) ·N (2nd ‘𝑦)) = ((1st ‘𝐴) ·N (2nd ‘𝑦)))
3 fveq2 6877 . . . . 5 (𝑥 = 𝐴 → (2nd ‘𝑥) = (2nd ‘𝐴))
43oveq2d 7428 . . . 4 (𝑥 = 𝐴 → ((1st ‘𝑦) ·N (2nd ‘𝑥)) = ((1st ‘𝑦) ·N (2nd ‘𝐴)))
52, 4oveq12d 7430 . . 3 (𝑥 = 𝐴 → (((1st ‘𝑥) ·N (2nd ‘𝑦)) +N ((1st ‘𝑦) ·N (2nd ‘𝑥))) = (((1st ‘𝐴) ·N (2nd ‘𝑦)) +N ((1st ‘𝑦) ·N (2nd ‘𝐴))))
63oveq1d 7427 . . 3 (𝑥 = 𝐴 → ((2nd ‘𝑥) ·N (2nd ‘𝑦)) = ((2nd ‘𝐴) ·N (2nd ‘𝑦)))
75, 6opeq12d 4841 . 2 (𝑥 = 𝐴 → ⟨(((1st ‘𝑥) ·N (2nd ‘𝑦)) +N ((1st ‘𝑦) ·N (2nd ‘𝑥))), ((2nd ‘𝑥) ·N (2nd ‘𝑦))⟩ = ⟨(((1st ‘𝐴) ·N (2nd ‘𝑦)) +N ((1st ‘𝑦) ·N (2nd ‘𝐴))), ((2nd ‘𝐴) ·N (2nd ‘𝑦))⟩)
8 fveq2 6877 . . . . 5 (𝑦 = 𝐵 → (2nd ‘𝑦) = (2nd ‘𝐵))
98oveq2d 7428 . . . 4 (𝑦 = 𝐵 → ((1st ‘𝐴) ·N (2nd ‘𝑦)) = ((1st ‘𝐴) ·N (2nd ‘𝐵)))
10 fveq2 6877 . . . . 5 (𝑦 = 𝐵 → (1st ‘𝑦) = (1st ‘𝐵))
1110oveq1d 7427 . . . 4 (𝑦 = 𝐵 → ((1st ‘𝑦) ·N (2nd ‘𝐴)) = ((1st ‘𝐵) ·N (2nd ‘𝐴)))
129, 11oveq12d 7430 . . 3 (𝑦 = 𝐵 → (((1st ‘𝐴) ·N (2nd ‘𝑦)) +N ((1st ‘𝑦) ·N (2nd ‘𝐴))) = (((1st ‘𝐴) ·N (2nd ‘𝐵)) +N ((1st ‘𝐵) ·N (2nd ‘𝐴))))
138oveq2d 7428 . . 3 (𝑦 = 𝐵 → ((2nd ‘𝐴) ·N (2nd ‘𝑦)) = ((2nd ‘𝐴) ·N (2nd ‘𝐵)))
1412, 13opeq12d 4841 . 2 (𝑦 = 𝐵 → ⟨(((1st ‘𝐴) ·N (2nd ‘𝑦)) +N ((1st ‘𝑦) ·N (2nd ‘𝐴))), ((2nd ‘𝐴) ·N (2nd ‘𝑦))⟩ = ⟨(((1st ‘𝐴) ·N (2nd ‘𝐵)) +N ((1st ‘𝐵) ·N (2nd ‘𝐴))), ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)
15 df-plpq 10974 . 2 +pQ = (𝑥 ∈ (N × N), 𝑦 ∈ (N × N) ↦ ⟨(((1st ‘𝑥) ·N (2nd ‘𝑦)) +N ((1st ‘𝑦) ·N (2nd ‘𝑥))), ((2nd ‘𝑥) ·N (2nd ‘𝑦))⟩)
16 opex 5432 . 2 ⟨(((1st ‘𝐴) ·N (2nd ‘𝐵)) +N ((1st ‘𝐵) ·N (2nd ‘𝐴))), ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩ ∈ V
177, 14, 15, 16ovmpo 7572 1 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N)) → (𝐴 +pQ 𝐵) = ⟨(((1st ‘𝐴) ·N (2nd ‘𝐵)) +N ((1st ‘𝐵) ·N (2nd ‘𝐴))), ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1570   ∈ wcel 2145  ⟨cop 4590   × cxp 5649  ‘cfv 6531  (class class class)co 7412  1st c1st 7988  2nd c2nd 7989  Ncnpi 10910   +N cpli 10911   ·N cmi 10912   +pQ cplpq 10914
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 2733  ax-sep 5249  ax-pr 5391
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ral 3078  df-rex 3088  df-rab 3414  df-v 3453  df-sbc 3740  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-br 5104  df-opab 5168  df-id 5546  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-iota 6487  df-fun 6533  df-fv 6539  df-ov 7415  df-oprab 7416  df-mpo 7417  df-plpq 10974
This theorem is used by:  addpipq  11003  addcompq  11016  adderpqlem  11020  addassnq  11024  distrnq  11027  ltanq  11037
  Copyright terms: Public domain W3C validator