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

Theorem addpipq2 11051
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 6911 . . . . 5 (𝑥 = 𝐴 → (1st ‘𝑥) = (1st ‘𝐴))
21oveq1d 7461 . . . 4 (𝑥 = 𝐴 → ((1st ‘𝑥) ·N (2nd ‘𝑦)) = ((1st ‘𝐴) ·N (2nd ‘𝑦)))
3 fveq2 6911 . . . . 5 (𝑥 = 𝐴 → (2nd ‘𝑥) = (2nd ‘𝐴))
43oveq2d 7462 . . . 4 (𝑥 = 𝐴 → ((1st ‘𝑦) ·N (2nd ‘𝑥)) = ((1st ‘𝑦) ·N (2nd ‘𝐴)))
52, 4oveq12d 7464 . . 3 (𝑥 = 𝐴 → (((1st ‘𝑥) ·N (2nd ‘𝑦)) +N ((1st ‘𝑦) ·N (2nd ‘𝑥))) = (((1st ‘𝐴) ·N (2nd ‘𝑦)) +N ((1st ‘𝑦) ·N (2nd ‘𝐴))))
63oveq1d 7461 . . 3 (𝑥 = 𝐴 → ((2nd ‘𝑥) ·N (2nd ‘𝑦)) = ((2nd ‘𝐴) ·N (2nd ‘𝑦)))
75, 6opeq12d 4851 . 2 (𝑥 = 𝐴 → ⟨(((1st ‘𝑥) ·N (2nd ‘𝑦)) +N ((1st ‘𝑦) ·N (2nd ‘𝑥))), ((2nd ‘𝑥) ·N (2nd ‘𝑦))⟩ = ⟨(((1st ‘𝐴) ·N (2nd ‘𝑦)) +N ((1st ‘𝑦) ·N (2nd ‘𝐴))), ((2nd ‘𝐴) ·N (2nd ‘𝑦))⟩)
8 fveq2 6911 . . . . 5 (𝑦 = 𝐵 → (2nd ‘𝑦) = (2nd ‘𝐵))
98oveq2d 7462 . . . 4 (𝑦 = 𝐵 → ((1st ‘𝐴) ·N (2nd ‘𝑦)) = ((1st ‘𝐴) ·N (2nd ‘𝐵)))
10 fveq2 6911 . . . . 5 (𝑦 = 𝐵 → (1st ‘𝑦) = (1st ‘𝐵))
1110oveq1d 7461 . . . 4 (𝑦 = 𝐵 → ((1st ‘𝑦) ·N (2nd ‘𝐴)) = ((1st ‘𝐵) ·N (2nd ‘𝐴)))
129, 11oveq12d 7464 . . 3 (𝑦 = 𝐵 → (((1st ‘𝐴) ·N (2nd ‘𝑦)) +N ((1st ‘𝑦) ·N (2nd ‘𝐴))) = (((1st ‘𝐴) ·N (2nd ‘𝐵)) +N ((1st ‘𝐵) ·N (2nd ‘𝐴))))
138oveq2d 7462 . . 3 (𝑦 = 𝐵 → ((2nd ‘𝐴) ·N (2nd ‘𝑦)) = ((2nd ‘𝐴) ·N (2nd ‘𝐵)))
1412, 13opeq12d 4851 . 2 (𝑦 = 𝐵 → ⟨(((1st ‘𝐴) ·N (2nd ‘𝑦)) +N ((1st ‘𝑦) ·N (2nd ‘𝐴))), ((2nd ‘𝐴) ·N (2nd ‘𝑦))⟩ = ⟨(((1st ‘𝐴) ·N (2nd ‘𝐵)) +N ((1st ‘𝐵) ·N (2nd ‘𝐴))), ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)
15 df-plpq 11023 . 2 +pQ = (𝑥 ∈ (N × N), 𝑦 ∈ (N × N) ↦ ⟨(((1st ‘𝑥) ·N (2nd ‘𝑦)) +N ((1st ‘𝑦) ·N (2nd ‘𝑥))), ((2nd ‘𝑥) ·N (2nd ‘𝑦))⟩)
16 opex 5437 . 2 ⟨(((1st ‘𝐴) ·N (2nd ‘𝐵)) +N ((1st ‘𝐵) ·N (2nd ‘𝐴))), ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩ ∈ V
177, 14, 15, 16ovmpo 7607 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 2147  ⟨cop 4838   × cxp 5654  ‘cfv 6561  (class class class)co 7446  1st c1st 8026  2nd c2nd 8027  Ncnpi 10959   +N cpli 10960   ·N cmi 10961   +pQ cplpq 10963
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 5253  ax-pr 5396
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 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ral 3081  df-rex 3091  df-rab 3417  df-v 3456  df-sbc 3743  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-br 5107  df-opab 5172  df-id 5551  df-xp 5662  df-rel 5663  df-cnv 5664  df-co 5665  df-dm 5666  df-iota 6515  df-fun 6563  df-fv 6569  df-ov 7449  df-oprab 7450  df-mpo 7451  df-plpq 11023
This theorem is used by:  addpipq  11052  addcompq  11065  adderpqlem  11069  addassnq  11073  distrnq  11076  ltanq  11086
  Copyright terms: Public domain W3C validator