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

Theorem addpipq2 11071
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 6926 . . . . 5 (𝑥 = 𝐴 → (1st ‘𝑥) = (1st ‘𝐴))
21oveq1d 7477 . . . 4 (𝑥 = 𝐴 → ((1st ‘𝑥) ·N (2nd ‘𝑦)) = ((1st ‘𝐴) ·N (2nd ‘𝑦)))
3 fveq2 6926 . . . . 5 (𝑥 = 𝐴 → (2nd ‘𝑥) = (2nd ‘𝐴))
43oveq2d 7478 . . . 4 (𝑥 = 𝐴 → ((1st ‘𝑦) ·N (2nd ‘𝑥)) = ((1st ‘𝑦) ·N (2nd ‘𝐴)))
52, 4oveq12d 7480 . . 3 (𝑥 = 𝐴 → (((1st ‘𝑥) ·N (2nd ‘𝑦)) +N ((1st ‘𝑦) ·N (2nd ‘𝑥))) = (((1st ‘𝐴) ·N (2nd ‘𝑦)) +N ((1st ‘𝑦) ·N (2nd ‘𝐴))))
63oveq1d 7477 . . 3 (𝑥 = 𝐴 → ((2nd ‘𝑥) ·N (2nd ‘𝑦)) = ((2nd ‘𝐴) ·N (2nd ‘𝑦)))
75, 6opeq12d 4856 . 2 (𝑥 = 𝐴 → ⟨(((1st ‘𝑥) ·N (2nd ‘𝑦)) +N ((1st ‘𝑦) ·N (2nd ‘𝑥))), ((2nd ‘𝑥) ·N (2nd ‘𝑦))⟩ = ⟨(((1st ‘𝐴) ·N (2nd ‘𝑦)) +N ((1st ‘𝑦) ·N (2nd ‘𝐴))), ((2nd ‘𝐴) ·N (2nd ‘𝑦))⟩)
8 fveq2 6926 . . . . 5 (𝑦 = 𝐵 → (2nd ‘𝑦) = (2nd ‘𝐵))
98oveq2d 7478 . . . 4 (𝑦 = 𝐵 → ((1st ‘𝐴) ·N (2nd ‘𝑦)) = ((1st ‘𝐴) ·N (2nd ‘𝐵)))
10 fveq2 6926 . . . . 5 (𝑦 = 𝐵 → (1st ‘𝑦) = (1st ‘𝐵))
1110oveq1d 7477 . . . 4 (𝑦 = 𝐵 → ((1st ‘𝑦) ·N (2nd ‘𝐴)) = ((1st ‘𝐵) ·N (2nd ‘𝐴)))
129, 11oveq12d 7480 . . 3 (𝑦 = 𝐵 → (((1st ‘𝐴) ·N (2nd ‘𝑦)) +N ((1st ‘𝑦) ·N (2nd ‘𝐴))) = (((1st ‘𝐴) ·N (2nd ‘𝐵)) +N ((1st ‘𝐵) ·N (2nd ‘𝐴))))
138oveq2d 7478 . . 3 (𝑦 = 𝐵 → ((2nd ‘𝐴) ·N (2nd ‘𝑦)) = ((2nd ‘𝐴) ·N (2nd ‘𝐵)))
1412, 13opeq12d 4856 . 2 (𝑦 = 𝐵 → ⟨(((1st ‘𝐴) ·N (2nd ‘𝑦)) +N ((1st ‘𝑦) ·N (2nd ‘𝐴))), ((2nd ‘𝐴) ·N (2nd ‘𝑦))⟩ = ⟨(((1st ‘𝐴) ·N (2nd ‘𝐵)) +N ((1st ‘𝐵) ·N (2nd ‘𝐴))), ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)
15 df-plpq 11043 . 2 +pQ = (𝑥 ∈ (N × N), 𝑦 ∈ (N × N) ↦ ⟨(((1st ‘𝑥) ·N (2nd ‘𝑦)) +N ((1st ‘𝑦) ·N (2nd ‘𝑥))), ((2nd ‘𝑥) ·N (2nd ‘𝑦))⟩)
16 opex 5442 . 2 ⟨(((1st ‘𝐴) ·N (2nd ‘𝐵)) +N ((1st ‘𝐵) ·N (2nd ‘𝐴))), ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩ ∈ V
177, 14, 15, 16ovmpo 7623 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 1572   ∈ wcel 2151  ⟨cop 4843   × cxp 5659  ‘cfv 6573  (class class class)co 7462  1st c1st 8044  2nd c2nd 8045  Ncnpi 10979   +N cpli 10980   ·N cmi 10981   +pQ cplpq 10983
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-10 2184  ax-11 2201  ax-12 2220  ax-ext 2741  ax-sep 5258  ax-pr 5401
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2105  df-mo 2571  df-eu 2601  df-clab 2748  df-cleq 2761  df-clel 2845  df-nfc 2919  df-ral 3087  df-rex 3097  df-rab 3419  df-v 3458  df-sbc 3745  df-ss 3903  df-dif 4052  df-in 4096  df-un 4156  df-nul 4284  df-if 4488  df-sn 4591  df-pr 4593  df-op 4844  df-uni 4876  df-br 5112  df-opab 5177  df-id 5556  df-xp 5667  df-rel 5668  df-cnv 5669  df-co 5670  df-dm 5671  df-iota 6527  df-fun 6575  df-fv 6581  df-ov 7465  df-oprab 7466  df-mpo 7467  df-plpq 11043
This theorem is used by:  addpipq  11072  addcompq  11085  adderpqlem  11089  addassnq  11093  distrnq  11096  ltanq  11106
  Copyright terms: Public domain W3C validator