Users' Mathboxes Mathbox for Scott Fenton < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  sexp2 Structured version   Visualization version   GIF version

Theorem sexp2 33352
Description: Condition for the relationship in frxp2 33350 to be set-like. (Contributed by Scott Fenton, 19-Aug-2024.)
Hypotheses
Ref Expression
xpord2.1 𝑇 = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ (𝐴 × 𝐵) ∧ 𝑦 ∈ (𝐴 × 𝐵) ∧ (((1st𝑥)𝑅(1st𝑦) ∨ (1st𝑥) = (1st𝑦)) ∧ ((2nd𝑥)𝑆(2nd𝑦) ∨ (2nd𝑥) = (2nd𝑦)) ∧ 𝑥𝑦))}
sexp2.1 (𝜑𝑅 Se 𝐴)
sexp2.2 (𝜑𝑆 Se 𝐵)
Assertion
Ref Expression
sexp2 (𝜑𝑇 Se (𝐴 × 𝐵))
Distinct variable groups:   𝑥,𝐴,𝑦   𝑥,𝐵,𝑦   𝑥,𝑅,𝑦   𝑥,𝑆,𝑦
Allowed substitution hints:   𝜑(𝑥,𝑦)   𝑇(𝑥,𝑦)

Proof of Theorem sexp2
Dummy variables 𝑎 𝑏 𝑝 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 elxp2 5551 . . . 4 (𝑝 ∈ (𝐴 × 𝐵) ↔ ∃𝑎𝐴𝑏𝐵 𝑝 = ⟨𝑎, 𝑏⟩)
2 xpord2.1 . . . . . . . . 9 𝑇 = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ (𝐴 × 𝐵) ∧ 𝑦 ∈ (𝐴 × 𝐵) ∧ (((1st𝑥)𝑅(1st𝑦) ∨ (1st𝑥) = (1st𝑦)) ∧ ((2nd𝑥)𝑆(2nd𝑦) ∨ (2nd𝑥) = (2nd𝑦)) ∧ 𝑥𝑦))}
32xpord2pred 33351 . . . . . . . 8 ((𝑎𝐴𝑏𝐵) → Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) = (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩}))
43adantl 485 . . . . . . 7 ((𝜑 ∧ (𝑎𝐴𝑏𝐵)) → Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) = (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩}))
5 sexp2.1 . . . . . . . . . . . 12 (𝜑𝑅 Se 𝐴)
6 setlikespec 6151 . . . . . . . . . . . . 13 ((𝑎𝐴𝑅 Se 𝐴) → Pred(𝑅, 𝐴, 𝑎) ∈ V)
76ancoms 462 . . . . . . . . . . . 12 ((𝑅 Se 𝐴𝑎𝐴) → Pred(𝑅, 𝐴, 𝑎) ∈ V)
85, 7sylan 583 . . . . . . . . . . 11 ((𝜑𝑎𝐴) → Pred(𝑅, 𝐴, 𝑎) ∈ V)
98adantrr 716 . . . . . . . . . 10 ((𝜑 ∧ (𝑎𝐴𝑏𝐵)) → Pred(𝑅, 𝐴, 𝑎) ∈ V)
10 snex 5303 . . . . . . . . . . 11 {𝑎} ∈ V
1110a1i 11 . . . . . . . . . 10 ((𝜑 ∧ (𝑎𝐴𝑏𝐵)) → {𝑎} ∈ V)
129, 11unexd 7480 . . . . . . . . 9 ((𝜑 ∧ (𝑎𝐴𝑏𝐵)) → (Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) ∈ V)
13 sexp2.2 . . . . . . . . . . . 12 (𝜑𝑆 Se 𝐵)
14 setlikespec 6151 . . . . . . . . . . . . 13 ((𝑏𝐵𝑆 Se 𝐵) → Pred(𝑆, 𝐵, 𝑏) ∈ V)
1514ancoms 462 . . . . . . . . . . . 12 ((𝑆 Se 𝐵𝑏𝐵) → Pred(𝑆, 𝐵, 𝑏) ∈ V)
1613, 15sylan 583 . . . . . . . . . . 11 ((𝜑𝑏𝐵) → Pred(𝑆, 𝐵, 𝑏) ∈ V)
1716adantrl 715 . . . . . . . . . 10 ((𝜑 ∧ (𝑎𝐴𝑏𝐵)) → Pred(𝑆, 𝐵, 𝑏) ∈ V)
18 snex 5303 . . . . . . . . . . 11 {𝑏} ∈ V
1918a1i 11 . . . . . . . . . 10 ((𝜑 ∧ (𝑎𝐴𝑏𝐵)) → {𝑏} ∈ V)
2017, 19unexd 7480 . . . . . . . . 9 ((𝜑 ∧ (𝑎𝐴𝑏𝐵)) → (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏}) ∈ V)
2112, 20xpexd 7477 . . . . . . . 8 ((𝜑 ∧ (𝑎𝐴𝑏𝐵)) → ((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∈ V)
2221difexd 5202 . . . . . . 7 ((𝜑 ∧ (𝑎𝐴𝑏𝐵)) → (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩}) ∈ V)
234, 22eqeltrd 2852 . . . . . 6 ((𝜑 ∧ (𝑎𝐴𝑏𝐵)) → Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) ∈ V)
24 predeq3 6134 . . . . . . 7 (𝑝 = ⟨𝑎, 𝑏⟩ → Pred(𝑇, (𝐴 × 𝐵), 𝑝) = Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩))
2524eleq1d 2836 . . . . . 6 (𝑝 = ⟨𝑎, 𝑏⟩ → (Pred(𝑇, (𝐴 × 𝐵), 𝑝) ∈ V ↔ Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) ∈ V))
2623, 25syl5ibrcom 250 . . . . 5 ((𝜑 ∧ (𝑎𝐴𝑏𝐵)) → (𝑝 = ⟨𝑎, 𝑏⟩ → Pred(𝑇, (𝐴 × 𝐵), 𝑝) ∈ V))
2726rexlimdvva 3218 . . . 4 (𝜑 → (∃𝑎𝐴𝑏𝐵 𝑝 = ⟨𝑎, 𝑏⟩ → Pred(𝑇, (𝐴 × 𝐵), 𝑝) ∈ V))
281, 27syl5bi 245 . . 3 (𝜑 → (𝑝 ∈ (𝐴 × 𝐵) → Pred(𝑇, (𝐴 × 𝐵), 𝑝) ∈ V))
2928ralrimiv 3112 . 2 (𝜑 → ∀𝑝 ∈ (𝐴 × 𝐵)Pred(𝑇, (𝐴 × 𝐵), 𝑝) ∈ V)
30 dfse3 33200 . 2 (𝑇 Se (𝐴 × 𝐵) ↔ ∀𝑝 ∈ (𝐴 × 𝐵)Pred(𝑇, (𝐴 × 𝐵), 𝑝) ∈ V)
3129, 30sylibr 237 1 (𝜑𝑇 Se (𝐴 × 𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399  wo 844  w3a 1084   = wceq 1538  wcel 2111  wne 2951  wral 3070  wrex 3071  Vcvv 3409  cdif 3857  cun 3858  {csn 4525  cop 4531   class class class wbr 5035  {copab 5097   Se wse 5484   × cxp 5525  Predcpred 6129  cfv 6339  1st c1st 7696  2nd c2nd 7697
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 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2729  ax-sep 5172  ax-nul 5179  ax-pow 5237  ax-pr 5301  ax-un 7464
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3an 1086  df-tru 1541  df-fal 1551  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2557  df-eu 2588  df-clab 2736  df-cleq 2750  df-clel 2830  df-nfc 2901  df-ne 2952  df-ral 3075  df-rex 3076  df-rab 3079  df-v 3411  df-sbc 3699  df-dif 3863  df-un 3865  df-in 3867  df-ss 3877  df-nul 4228  df-if 4424  df-pw 4499  df-sn 4526  df-pr 4528  df-op 4532  df-uni 4802  df-br 5036  df-opab 5098  df-mpt 5116  df-id 5433  df-se 5487  df-xp 5533  df-rel 5534  df-cnv 5535  df-co 5536  df-dm 5537  df-rn 5538  df-res 5539  df-ima 5540  df-pred 6130  df-iota 6298  df-fun 6341  df-fv 6347  df-1st 7698  df-2nd 7699
This theorem is referenced by:  xpord2ind  33353  on2recsfn  33415  on2recsov  33416  noxpordse  33683
  Copyright terms: Public domain W3C validator