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

Theorem addpipq 10353
Description: Addition of positive fractions in terms of positive integers. (Contributed by Mario Carneiro, 8-May-2013.) (New usage is discouraged.)
Assertion
Ref Expression
addpipq (((𝐴N𝐵N) ∧ (𝐶N𝐷N)) → (⟨𝐴, 𝐵⟩ +pQ𝐶, 𝐷⟩) = ⟨((𝐴 ·N 𝐷) +N (𝐶 ·N 𝐵)), (𝐵 ·N 𝐷)⟩)

Proof of Theorem addpipq
StepHypRef Expression
1 opelxpi 5586 . . 3 ((𝐴N𝐵N) → ⟨𝐴, 𝐵⟩ ∈ (N × N))
2 opelxpi 5586 . . 3 ((𝐶N𝐷N) → ⟨𝐶, 𝐷⟩ ∈ (N × N))
3 addpipq2 10352 . . 3 ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) → (⟨𝐴, 𝐵⟩ +pQ𝐶, 𝐷⟩) = ⟨(((1st ‘⟨𝐴, 𝐵⟩) ·N (2nd ‘⟨𝐶, 𝐷⟩)) +N ((1st ‘⟨𝐶, 𝐷⟩) ·N (2nd ‘⟨𝐴, 𝐵⟩))), ((2nd ‘⟨𝐴, 𝐵⟩) ·N (2nd ‘⟨𝐶, 𝐷⟩))⟩)
41, 2, 3syl2an 597 . 2 (((𝐴N𝐵N) ∧ (𝐶N𝐷N)) → (⟨𝐴, 𝐵⟩ +pQ𝐶, 𝐷⟩) = ⟨(((1st ‘⟨𝐴, 𝐵⟩) ·N (2nd ‘⟨𝐶, 𝐷⟩)) +N ((1st ‘⟨𝐶, 𝐷⟩) ·N (2nd ‘⟨𝐴, 𝐵⟩))), ((2nd ‘⟨𝐴, 𝐵⟩) ·N (2nd ‘⟨𝐶, 𝐷⟩))⟩)
5 op1stg 7695 . . . . 5 ((𝐴N𝐵N) → (1st ‘⟨𝐴, 𝐵⟩) = 𝐴)
6 op2ndg 7696 . . . . 5 ((𝐶N𝐷N) → (2nd ‘⟨𝐶, 𝐷⟩) = 𝐷)
75, 6oveqan12d 7169 . . . 4 (((𝐴N𝐵N) ∧ (𝐶N𝐷N)) → ((1st ‘⟨𝐴, 𝐵⟩) ·N (2nd ‘⟨𝐶, 𝐷⟩)) = (𝐴 ·N 𝐷))
8 op1stg 7695 . . . . 5 ((𝐶N𝐷N) → (1st ‘⟨𝐶, 𝐷⟩) = 𝐶)
9 op2ndg 7696 . . . . 5 ((𝐴N𝐵N) → (2nd ‘⟨𝐴, 𝐵⟩) = 𝐵)
108, 9oveqan12rd 7170 . . . 4 (((𝐴N𝐵N) ∧ (𝐶N𝐷N)) → ((1st ‘⟨𝐶, 𝐷⟩) ·N (2nd ‘⟨𝐴, 𝐵⟩)) = (𝐶 ·N 𝐵))
117, 10oveq12d 7168 . . 3 (((𝐴N𝐵N) ∧ (𝐶N𝐷N)) → (((1st ‘⟨𝐴, 𝐵⟩) ·N (2nd ‘⟨𝐶, 𝐷⟩)) +N ((1st ‘⟨𝐶, 𝐷⟩) ·N (2nd ‘⟨𝐴, 𝐵⟩))) = ((𝐴 ·N 𝐷) +N (𝐶 ·N 𝐵)))
129, 6oveqan12d 7169 . . 3 (((𝐴N𝐵N) ∧ (𝐶N𝐷N)) → ((2nd ‘⟨𝐴, 𝐵⟩) ·N (2nd ‘⟨𝐶, 𝐷⟩)) = (𝐵 ·N 𝐷))
1311, 12opeq12d 4804 . 2 (((𝐴N𝐵N) ∧ (𝐶N𝐷N)) → ⟨(((1st ‘⟨𝐴, 𝐵⟩) ·N (2nd ‘⟨𝐶, 𝐷⟩)) +N ((1st ‘⟨𝐶, 𝐷⟩) ·N (2nd ‘⟨𝐴, 𝐵⟩))), ((2nd ‘⟨𝐴, 𝐵⟩) ·N (2nd ‘⟨𝐶, 𝐷⟩))⟩ = ⟨((𝐴 ·N 𝐷) +N (𝐶 ·N 𝐵)), (𝐵 ·N 𝐷)⟩)
144, 13eqtrd 2856 1 (((𝐴N𝐵N) ∧ (𝐶N𝐷N)) → (⟨𝐴, 𝐵⟩ +pQ𝐶, 𝐷⟩) = ⟨((𝐴 ·N 𝐷) +N (𝐶 ·N 𝐵)), (𝐵 ·N 𝐷)⟩)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 398   = wceq 1533  wcel 2110  cop 4566   × cxp 5547  cfv 6349  (class class class)co 7150  1st c1st 7681  2nd c2nd 7682  Ncnpi 10260   +N cpli 10261   ·N cmi 10262   +pQ cplpq 10264
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2157  ax-12 2173  ax-ext 2793  ax-sep 5195  ax-nul 5202  ax-pow 5258  ax-pr 5321  ax-un 7455
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ral 3143  df-rex 3144  df-rab 3147  df-v 3496  df-sbc 3772  df-dif 3938  df-un 3940  df-in 3942  df-ss 3951  df-nul 4291  df-if 4467  df-sn 4561  df-pr 4563  df-op 4567  df-uni 4832  df-br 5059  df-opab 5121  df-mpt 5139  df-id 5454  df-xp 5555  df-rel 5556  df-cnv 5557  df-co 5558  df-dm 5559  df-rn 5560  df-iota 6308  df-fun 6351  df-fv 6357  df-ov 7153  df-oprab 7154  df-mpo 7155  df-1st 7683  df-2nd 7684  df-plpq 10324
This theorem is referenced by:  addassnq  10374  distrnq  10377  1lt2nq  10389  ltexnq  10391  prlem934  10449
  Copyright terms: Public domain W3C validator