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

Theorem xpord2lem 8074
Description: Lemma for Cartesian product ordering. Calculate the value of the Cartesian product relation. (Contributed by Scott Fenton, 19-Aug-2024.)
Hypothesis
Ref Expression
xpord2.1 𝑇 = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ (𝐴 × 𝐵) ∧ 𝑦 ∈ (𝐴 × 𝐵) ∧ (((1st𝑥)𝑅(1st𝑦) ∨ (1st𝑥) = (1st𝑦)) ∧ ((2nd𝑥)𝑆(2nd𝑦) ∨ (2nd𝑥) = (2nd𝑦)) ∧ 𝑥𝑦))}
Assertion
Ref Expression
xpord2lem (⟨𝑎, 𝑏𝑇𝑐, 𝑑⟩ ↔ ((𝑎𝐴𝑏𝐵) ∧ (𝑐𝐴𝑑𝐵) ∧ ((𝑎𝑅𝑐𝑎 = 𝑐) ∧ (𝑏𝑆𝑑𝑏 = 𝑑) ∧ (𝑎𝑐𝑏𝑑))))
Distinct variable groups:   𝑥,𝐴,𝑦   𝑥,𝐵,𝑦   𝑥,𝑎,𝑦   𝑥,𝑏,𝑦   𝑥,𝑐,𝑦   𝑥,𝑑,𝑦   𝑥,𝑅,𝑦   𝑥,𝑆,𝑦
Allowed substitution hints:   𝐴(𝑎,𝑏,𝑐,𝑑)   𝐵(𝑎,𝑏,𝑐,𝑑)   𝑅(𝑎,𝑏,𝑐,𝑑)   𝑆(𝑎,𝑏,𝑐,𝑑)   𝑇(𝑥,𝑦,𝑎,𝑏,𝑐,𝑑)

Proof of Theorem xpord2lem
StepHypRef Expression
1 opex 5421 . 2 𝑎, 𝑏⟩ ∈ V
2 opex 5421 . 2 𝑐, 𝑑⟩ ∈ V
3 eleq1 2825 . . . 4 (𝑥 = ⟨𝑎, 𝑏⟩ → (𝑥 ∈ (𝐴 × 𝐵) ↔ ⟨𝑎, 𝑏⟩ ∈ (𝐴 × 𝐵)))
4 opelxp 5669 . . . 4 (⟨𝑎, 𝑏⟩ ∈ (𝐴 × 𝐵) ↔ (𝑎𝐴𝑏𝐵))
53, 4bitrdi 286 . . 3 (𝑥 = ⟨𝑎, 𝑏⟩ → (𝑥 ∈ (𝐴 × 𝐵) ↔ (𝑎𝐴𝑏𝐵)))
6 vex 3449 . . . . . . 7 𝑎 ∈ V
7 vex 3449 . . . . . . 7 𝑏 ∈ V
86, 7op1std 7931 . . . . . 6 (𝑥 = ⟨𝑎, 𝑏⟩ → (1st𝑥) = 𝑎)
98breq1d 5115 . . . . 5 (𝑥 = ⟨𝑎, 𝑏⟩ → ((1st𝑥)𝑅(1st𝑦) ↔ 𝑎𝑅(1st𝑦)))
108eqeq1d 2738 . . . . 5 (𝑥 = ⟨𝑎, 𝑏⟩ → ((1st𝑥) = (1st𝑦) ↔ 𝑎 = (1st𝑦)))
119, 10orbi12d 917 . . . 4 (𝑥 = ⟨𝑎, 𝑏⟩ → (((1st𝑥)𝑅(1st𝑦) ∨ (1st𝑥) = (1st𝑦)) ↔ (𝑎𝑅(1st𝑦) ∨ 𝑎 = (1st𝑦))))
126, 7op2ndd 7932 . . . . . 6 (𝑥 = ⟨𝑎, 𝑏⟩ → (2nd𝑥) = 𝑏)
1312breq1d 5115 . . . . 5 (𝑥 = ⟨𝑎, 𝑏⟩ → ((2nd𝑥)𝑆(2nd𝑦) ↔ 𝑏𝑆(2nd𝑦)))
1412eqeq1d 2738 . . . . 5 (𝑥 = ⟨𝑎, 𝑏⟩ → ((2nd𝑥) = (2nd𝑦) ↔ 𝑏 = (2nd𝑦)))
1513, 14orbi12d 917 . . . 4 (𝑥 = ⟨𝑎, 𝑏⟩ → (((2nd𝑥)𝑆(2nd𝑦) ∨ (2nd𝑥) = (2nd𝑦)) ↔ (𝑏𝑆(2nd𝑦) ∨ 𝑏 = (2nd𝑦))))
16 neeq1 3006 . . . 4 (𝑥 = ⟨𝑎, 𝑏⟩ → (𝑥𝑦 ↔ ⟨𝑎, 𝑏⟩ ≠ 𝑦))
1711, 15, 163anbi123d 1436 . . 3 (𝑥 = ⟨𝑎, 𝑏⟩ → ((((1st𝑥)𝑅(1st𝑦) ∨ (1st𝑥) = (1st𝑦)) ∧ ((2nd𝑥)𝑆(2nd𝑦) ∨ (2nd𝑥) = (2nd𝑦)) ∧ 𝑥𝑦) ↔ ((𝑎𝑅(1st𝑦) ∨ 𝑎 = (1st𝑦)) ∧ (𝑏𝑆(2nd𝑦) ∨ 𝑏 = (2nd𝑦)) ∧ ⟨𝑎, 𝑏⟩ ≠ 𝑦)))
185, 173anbi13d 1438 . 2 (𝑥 = ⟨𝑎, 𝑏⟩ → ((𝑥 ∈ (𝐴 × 𝐵) ∧ 𝑦 ∈ (𝐴 × 𝐵) ∧ (((1st𝑥)𝑅(1st𝑦) ∨ (1st𝑥) = (1st𝑦)) ∧ ((2nd𝑥)𝑆(2nd𝑦) ∨ (2nd𝑥) = (2nd𝑦)) ∧ 𝑥𝑦)) ↔ ((𝑎𝐴𝑏𝐵) ∧ 𝑦 ∈ (𝐴 × 𝐵) ∧ ((𝑎𝑅(1st𝑦) ∨ 𝑎 = (1st𝑦)) ∧ (𝑏𝑆(2nd𝑦) ∨ 𝑏 = (2nd𝑦)) ∧ ⟨𝑎, 𝑏⟩ ≠ 𝑦))))
19 eleq1 2825 . . . 4 (𝑦 = ⟨𝑐, 𝑑⟩ → (𝑦 ∈ (𝐴 × 𝐵) ↔ ⟨𝑐, 𝑑⟩ ∈ (𝐴 × 𝐵)))
20 opelxp 5669 . . . 4 (⟨𝑐, 𝑑⟩ ∈ (𝐴 × 𝐵) ↔ (𝑐𝐴𝑑𝐵))
2119, 20bitrdi 286 . . 3 (𝑦 = ⟨𝑐, 𝑑⟩ → (𝑦 ∈ (𝐴 × 𝐵) ↔ (𝑐𝐴𝑑𝐵)))
22 vex 3449 . . . . . . 7 𝑐 ∈ V
23 vex 3449 . . . . . . 7 𝑑 ∈ V
2422, 23op1std 7931 . . . . . 6 (𝑦 = ⟨𝑐, 𝑑⟩ → (1st𝑦) = 𝑐)
2524breq2d 5117 . . . . 5 (𝑦 = ⟨𝑐, 𝑑⟩ → (𝑎𝑅(1st𝑦) ↔ 𝑎𝑅𝑐))
2624eqeq2d 2747 . . . . 5 (𝑦 = ⟨𝑐, 𝑑⟩ → (𝑎 = (1st𝑦) ↔ 𝑎 = 𝑐))
2725, 26orbi12d 917 . . . 4 (𝑦 = ⟨𝑐, 𝑑⟩ → ((𝑎𝑅(1st𝑦) ∨ 𝑎 = (1st𝑦)) ↔ (𝑎𝑅𝑐𝑎 = 𝑐)))
2822, 23op2ndd 7932 . . . . . 6 (𝑦 = ⟨𝑐, 𝑑⟩ → (2nd𝑦) = 𝑑)
2928breq2d 5117 . . . . 5 (𝑦 = ⟨𝑐, 𝑑⟩ → (𝑏𝑆(2nd𝑦) ↔ 𝑏𝑆𝑑))
3028eqeq2d 2747 . . . . 5 (𝑦 = ⟨𝑐, 𝑑⟩ → (𝑏 = (2nd𝑦) ↔ 𝑏 = 𝑑))
3129, 30orbi12d 917 . . . 4 (𝑦 = ⟨𝑐, 𝑑⟩ → ((𝑏𝑆(2nd𝑦) ∨ 𝑏 = (2nd𝑦)) ↔ (𝑏𝑆𝑑𝑏 = 𝑑)))
32 neeq2 3007 . . . . 5 (𝑦 = ⟨𝑐, 𝑑⟩ → (⟨𝑎, 𝑏⟩ ≠ 𝑦 ↔ ⟨𝑎, 𝑏⟩ ≠ ⟨𝑐, 𝑑⟩))
336, 7opthne 5439 . . . . 5 (⟨𝑎, 𝑏⟩ ≠ ⟨𝑐, 𝑑⟩ ↔ (𝑎𝑐𝑏𝑑))
3432, 33bitrdi 286 . . . 4 (𝑦 = ⟨𝑐, 𝑑⟩ → (⟨𝑎, 𝑏⟩ ≠ 𝑦 ↔ (𝑎𝑐𝑏𝑑)))
3527, 31, 343anbi123d 1436 . . 3 (𝑦 = ⟨𝑐, 𝑑⟩ → (((𝑎𝑅(1st𝑦) ∨ 𝑎 = (1st𝑦)) ∧ (𝑏𝑆(2nd𝑦) ∨ 𝑏 = (2nd𝑦)) ∧ ⟨𝑎, 𝑏⟩ ≠ 𝑦) ↔ ((𝑎𝑅𝑐𝑎 = 𝑐) ∧ (𝑏𝑆𝑑𝑏 = 𝑑) ∧ (𝑎𝑐𝑏𝑑))))
3621, 353anbi23d 1439 . 2 (𝑦 = ⟨𝑐, 𝑑⟩ → (((𝑎𝐴𝑏𝐵) ∧ 𝑦 ∈ (𝐴 × 𝐵) ∧ ((𝑎𝑅(1st𝑦) ∨ 𝑎 = (1st𝑦)) ∧ (𝑏𝑆(2nd𝑦) ∨ 𝑏 = (2nd𝑦)) ∧ ⟨𝑎, 𝑏⟩ ≠ 𝑦)) ↔ ((𝑎𝐴𝑏𝐵) ∧ (𝑐𝐴𝑑𝐵) ∧ ((𝑎𝑅𝑐𝑎 = 𝑐) ∧ (𝑏𝑆𝑑𝑏 = 𝑑) ∧ (𝑎𝑐𝑏𝑑)))))
37 xpord2.1 . 2 𝑇 = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ (𝐴 × 𝐵) ∧ 𝑦 ∈ (𝐴 × 𝐵) ∧ (((1st𝑥)𝑅(1st𝑦) ∨ (1st𝑥) = (1st𝑦)) ∧ ((2nd𝑥)𝑆(2nd𝑦) ∨ (2nd𝑥) = (2nd𝑦)) ∧ 𝑥𝑦))}
381, 2, 18, 36, 37brab 5500 1 (⟨𝑎, 𝑏𝑇𝑐, 𝑑⟩ ↔ ((𝑎𝐴𝑏𝐵) ∧ (𝑐𝐴𝑑𝐵) ∧ ((𝑎𝑅𝑐𝑎 = 𝑐) ∧ (𝑏𝑆𝑑𝑏 = 𝑑) ∧ (𝑎𝑐𝑏𝑑))))
Colors of variables: wff setvar class
Syntax hints:  wb 205  wa 396  wo 845  w3a 1087   = wceq 1541  wcel 2106  wne 2943  cop 4592   class class class wbr 5105  {copab 5167   × cxp 5631  cfv 6496  1st c1st 7919  2nd c2nd 7920
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  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 2707  ax-sep 5256  ax-nul 5263  ax-pr 5384  ax-un 7672
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 846  df-3an 1089  df-tru 1544  df-fal 1554  df-ex 1782  df-nf 1786  df-sb 2068  df-mo 2538  df-eu 2567  df-clab 2714  df-cleq 2728  df-clel 2814  df-nfc 2889  df-ne 2944  df-ral 3065  df-rex 3074  df-rab 3408  df-v 3447  df-dif 3913  df-un 3915  df-in 3917  df-ss 3927  df-nul 4283  df-if 4487  df-sn 4587  df-pr 4589  df-op 4593  df-uni 4866  df-br 5106  df-opab 5168  df-mpt 5189  df-id 5531  df-xp 5639  df-rel 5640  df-cnv 5641  df-co 5642  df-dm 5643  df-rn 5644  df-iota 6448  df-fun 6498  df-fv 6504  df-1st 7921  df-2nd 7922
This theorem is referenced by:  poxp2  8075  frxp2  8076  xpord2pred  8077
  Copyright terms: Public domain W3C validator