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

Theorem el2xptp0 7878
Description: A member of a nested Cartesian product is an ordered triple. (Contributed by Alexander van der Vekens, 15-Feb-2018.)
Assertion
Ref Expression
el2xptp0 ((𝑋𝑈𝑌𝑉𝑍𝑊) → ((𝐴 ∈ ((𝑈 × 𝑉) × 𝑊) ∧ ((1st ‘(1st𝐴)) = 𝑋 ∧ (2nd ‘(1st𝐴)) = 𝑌 ∧ (2nd𝐴) = 𝑍)) ↔ 𝐴 = ⟨𝑋, 𝑌, 𝑍⟩))

Proof of Theorem el2xptp0
StepHypRef Expression
1 xp1st 7863 . . . . . 6 (𝐴 ∈ ((𝑈 × 𝑉) × 𝑊) → (1st𝐴) ∈ (𝑈 × 𝑉))
21ad2antrl 725 . . . . 5 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴 ∈ ((𝑈 × 𝑉) × 𝑊) ∧ ((1st ‘(1st𝐴)) = 𝑋 ∧ (2nd ‘(1st𝐴)) = 𝑌 ∧ (2nd𝐴) = 𝑍))) → (1st𝐴) ∈ (𝑈 × 𝑉))
3 3simpa 1147 . . . . . . 7 (((1st ‘(1st𝐴)) = 𝑋 ∧ (2nd ‘(1st𝐴)) = 𝑌 ∧ (2nd𝐴) = 𝑍) → ((1st ‘(1st𝐴)) = 𝑋 ∧ (2nd ‘(1st𝐴)) = 𝑌))
43adantl 482 . . . . . 6 ((𝐴 ∈ ((𝑈 × 𝑉) × 𝑊) ∧ ((1st ‘(1st𝐴)) = 𝑋 ∧ (2nd ‘(1st𝐴)) = 𝑌 ∧ (2nd𝐴) = 𝑍)) → ((1st ‘(1st𝐴)) = 𝑋 ∧ (2nd ‘(1st𝐴)) = 𝑌))
54adantl 482 . . . . 5 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴 ∈ ((𝑈 × 𝑉) × 𝑊) ∧ ((1st ‘(1st𝐴)) = 𝑋 ∧ (2nd ‘(1st𝐴)) = 𝑌 ∧ (2nd𝐴) = 𝑍))) → ((1st ‘(1st𝐴)) = 𝑋 ∧ (2nd ‘(1st𝐴)) = 𝑌))
6 eqopi 7867 . . . . 5 (((1st𝐴) ∈ (𝑈 × 𝑉) ∧ ((1st ‘(1st𝐴)) = 𝑋 ∧ (2nd ‘(1st𝐴)) = 𝑌)) → (1st𝐴) = ⟨𝑋, 𝑌⟩)
72, 5, 6syl2anc 584 . . . 4 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴 ∈ ((𝑈 × 𝑉) × 𝑊) ∧ ((1st ‘(1st𝐴)) = 𝑋 ∧ (2nd ‘(1st𝐴)) = 𝑌 ∧ (2nd𝐴) = 𝑍))) → (1st𝐴) = ⟨𝑋, 𝑌⟩)
8 simprr3 1222 . . . 4 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴 ∈ ((𝑈 × 𝑉) × 𝑊) ∧ ((1st ‘(1st𝐴)) = 𝑋 ∧ (2nd ‘(1st𝐴)) = 𝑌 ∧ (2nd𝐴) = 𝑍))) → (2nd𝐴) = 𝑍)
97, 8jca 512 . . 3 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴 ∈ ((𝑈 × 𝑉) × 𝑊) ∧ ((1st ‘(1st𝐴)) = 𝑋 ∧ (2nd ‘(1st𝐴)) = 𝑌 ∧ (2nd𝐴) = 𝑍))) → ((1st𝐴) = ⟨𝑋, 𝑌⟩ ∧ (2nd𝐴) = 𝑍))
10 df-ot 4570 . . . . . 6 𝑋, 𝑌, 𝑍⟩ = ⟨⟨𝑋, 𝑌⟩, 𝑍
1110eqeq2i 2751 . . . . 5 (𝐴 = ⟨𝑋, 𝑌, 𝑍⟩ ↔ 𝐴 = ⟨⟨𝑋, 𝑌⟩, 𝑍⟩)
12 eqop 7873 . . . . 5 (𝐴 ∈ ((𝑈 × 𝑉) × 𝑊) → (𝐴 = ⟨⟨𝑋, 𝑌⟩, 𝑍⟩ ↔ ((1st𝐴) = ⟨𝑋, 𝑌⟩ ∧ (2nd𝐴) = 𝑍)))
1311, 12bitrid 282 . . . 4 (𝐴 ∈ ((𝑈 × 𝑉) × 𝑊) → (𝐴 = ⟨𝑋, 𝑌, 𝑍⟩ ↔ ((1st𝐴) = ⟨𝑋, 𝑌⟩ ∧ (2nd𝐴) = 𝑍)))
1413ad2antrl 725 . . 3 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴 ∈ ((𝑈 × 𝑉) × 𝑊) ∧ ((1st ‘(1st𝐴)) = 𝑋 ∧ (2nd ‘(1st𝐴)) = 𝑌 ∧ (2nd𝐴) = 𝑍))) → (𝐴 = ⟨𝑋, 𝑌, 𝑍⟩ ↔ ((1st𝐴) = ⟨𝑋, 𝑌⟩ ∧ (2nd𝐴) = 𝑍)))
159, 14mpbird 256 . 2 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴 ∈ ((𝑈 × 𝑉) × 𝑊) ∧ ((1st ‘(1st𝐴)) = 𝑋 ∧ (2nd ‘(1st𝐴)) = 𝑌 ∧ (2nd𝐴) = 𝑍))) → 𝐴 = ⟨𝑋, 𝑌, 𝑍⟩)
16 opelxpi 5626 . . . . . . . 8 ((𝑋𝑈𝑌𝑉) → ⟨𝑋, 𝑌⟩ ∈ (𝑈 × 𝑉))
17163adant3 1131 . . . . . . 7 ((𝑋𝑈𝑌𝑉𝑍𝑊) → ⟨𝑋, 𝑌⟩ ∈ (𝑈 × 𝑉))
18 simp3 1137 . . . . . . 7 ((𝑋𝑈𝑌𝑉𝑍𝑊) → 𝑍𝑊)
1917, 18opelxpd 5627 . . . . . 6 ((𝑋𝑈𝑌𝑉𝑍𝑊) → ⟨⟨𝑋, 𝑌⟩, 𝑍⟩ ∈ ((𝑈 × 𝑉) × 𝑊))
2010, 19eqeltrid 2843 . . . . 5 ((𝑋𝑈𝑌𝑉𝑍𝑊) → ⟨𝑋, 𝑌, 𝑍⟩ ∈ ((𝑈 × 𝑉) × 𝑊))
2120adantr 481 . . . 4 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ 𝐴 = ⟨𝑋, 𝑌, 𝑍⟩) → ⟨𝑋, 𝑌, 𝑍⟩ ∈ ((𝑈 × 𝑉) × 𝑊))
22 eleq1 2826 . . . . 5 (𝐴 = ⟨𝑋, 𝑌, 𝑍⟩ → (𝐴 ∈ ((𝑈 × 𝑉) × 𝑊) ↔ ⟨𝑋, 𝑌, 𝑍⟩ ∈ ((𝑈 × 𝑉) × 𝑊)))
2322adantl 482 . . . 4 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ 𝐴 = ⟨𝑋, 𝑌, 𝑍⟩) → (𝐴 ∈ ((𝑈 × 𝑉) × 𝑊) ↔ ⟨𝑋, 𝑌, 𝑍⟩ ∈ ((𝑈 × 𝑉) × 𝑊)))
2421, 23mpbird 256 . . 3 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ 𝐴 = ⟨𝑋, 𝑌, 𝑍⟩) → 𝐴 ∈ ((𝑈 × 𝑉) × 𝑊))
25 2fveq3 6779 . . . . 5 (𝐴 = ⟨𝑋, 𝑌, 𝑍⟩ → (1st ‘(1st𝐴)) = (1st ‘(1st ‘⟨𝑋, 𝑌, 𝑍⟩)))
26 ot1stg 7845 . . . . 5 ((𝑋𝑈𝑌𝑉𝑍𝑊) → (1st ‘(1st ‘⟨𝑋, 𝑌, 𝑍⟩)) = 𝑋)
2725, 26sylan9eqr 2800 . . . 4 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ 𝐴 = ⟨𝑋, 𝑌, 𝑍⟩) → (1st ‘(1st𝐴)) = 𝑋)
28 2fveq3 6779 . . . . 5 (𝐴 = ⟨𝑋, 𝑌, 𝑍⟩ → (2nd ‘(1st𝐴)) = (2nd ‘(1st ‘⟨𝑋, 𝑌, 𝑍⟩)))
29 ot2ndg 7846 . . . . 5 ((𝑋𝑈𝑌𝑉𝑍𝑊) → (2nd ‘(1st ‘⟨𝑋, 𝑌, 𝑍⟩)) = 𝑌)
3028, 29sylan9eqr 2800 . . . 4 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ 𝐴 = ⟨𝑋, 𝑌, 𝑍⟩) → (2nd ‘(1st𝐴)) = 𝑌)
31 fveq2 6774 . . . . 5 (𝐴 = ⟨𝑋, 𝑌, 𝑍⟩ → (2nd𝐴) = (2nd ‘⟨𝑋, 𝑌, 𝑍⟩))
32 ot3rdg 7847 . . . . . 6 (𝑍𝑊 → (2nd ‘⟨𝑋, 𝑌, 𝑍⟩) = 𝑍)
33323ad2ant3 1134 . . . . 5 ((𝑋𝑈𝑌𝑉𝑍𝑊) → (2nd ‘⟨𝑋, 𝑌, 𝑍⟩) = 𝑍)
3431, 33sylan9eqr 2800 . . . 4 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ 𝐴 = ⟨𝑋, 𝑌, 𝑍⟩) → (2nd𝐴) = 𝑍)
3527, 30, 343jca 1127 . . 3 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ 𝐴 = ⟨𝑋, 𝑌, 𝑍⟩) → ((1st ‘(1st𝐴)) = 𝑋 ∧ (2nd ‘(1st𝐴)) = 𝑌 ∧ (2nd𝐴) = 𝑍))
3624, 35jca 512 . 2 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ 𝐴 = ⟨𝑋, 𝑌, 𝑍⟩) → (𝐴 ∈ ((𝑈 × 𝑉) × 𝑊) ∧ ((1st ‘(1st𝐴)) = 𝑋 ∧ (2nd ‘(1st𝐴)) = 𝑌 ∧ (2nd𝐴) = 𝑍)))
3715, 36impbida 798 1 ((𝑋𝑈𝑌𝑉𝑍𝑊) → ((𝐴 ∈ ((𝑈 × 𝑉) × 𝑊) ∧ ((1st ‘(1st𝐴)) = 𝑋 ∧ (2nd ‘(1st𝐴)) = 𝑌 ∧ (2nd𝐴) = 𝑍)) ↔ 𝐴 = ⟨𝑋, 𝑌, 𝑍⟩))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  w3a 1086   = wceq 1539  wcel 2106  cop 4567  cotp 4569   × cxp 5587  cfv 6433  1st c1st 7829  2nd c2nd 7830
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352  ax-un 7588
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-ot 4570  df-uni 4840  df-br 5075  df-opab 5137  df-mpt 5158  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-iota 6391  df-fun 6435  df-fv 6441  df-1st 7831  df-2nd 7832
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator