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

Theorem sexp2 8165
Description: Condition for the relation in frxp2 8163 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 5674 . . . 4 (𝑝 ∈ (𝐴 × 𝐵) ↔ ∃𝑎 ∈ 𝐴 ∃𝑏 ∈ 𝐵 𝑝 = ⟨𝑎, 𝑏⟩)
2 xpord2.1 . . . . . . . . 9 𝑇 = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ (𝐴 × 𝐵) ∧ 𝑦 ∈ (𝐴 × 𝐵) ∧ (((1st ‘𝑥)𝑅(1st ‘𝑦) ∨ (1st ‘𝑥) = (1st ‘𝑦)) ∧ ((2nd ‘𝑥)𝑆(2nd ‘𝑦) ∨ (2nd ‘𝑥) = (2nd ‘𝑦)) ∧ 𝑥 ≠ 𝑦))}
32xpord2pred 8164 . . . . . . . 8 ((𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵) → Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) = (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩}))
43adantl 487 . . . . . . 7 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) = (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩}))
5 sexp2.1 . . . . . . . . . . . 12 (𝜑 → 𝑅 Se 𝐴)
6 setlikespec 6328 . . . . . . . . . . . . 13 ((𝑎 ∈ 𝐴 ∧ 𝑅 Se 𝐴) → Pred(𝑅, 𝐴, 𝑎) ∈ V)
76ancoms 464 . . . . . . . . . . . 12 ((𝑅 Se 𝐴 ∧ 𝑎 ∈ 𝐴) → Pred(𝑅, 𝐴, 𝑎) ∈ V)
85, 7sylan 592 . . . . . . . . . . 11 ((𝜑 ∧ 𝑎 ∈ 𝐴) → Pred(𝑅, 𝐴, 𝑎) ∈ V)
98adantrr 730 . . . . . . . . . 10 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → Pred(𝑅, 𝐴, 𝑎) ∈ V)
10 vsnex 5392 . . . . . . . . . . 11 {𝑎} ∈ V
1110a1i 11 . . . . . . . . . 10 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → {𝑎} ∈ V)
129, 11unexd 7768 . . . . . . . . 9 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → (Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) ∈ V)
13 sexp2.2 . . . . . . . . . . . 12 (𝜑 → 𝑆 Se 𝐵)
14 setlikespec 6328 . . . . . . . . . . . . 13 ((𝑏 ∈ 𝐵 ∧ 𝑆 Se 𝐵) → Pred(𝑆, 𝐵, 𝑏) ∈ V)
1514ancoms 464 . . . . . . . . . . . 12 ((𝑆 Se 𝐵 ∧ 𝑏 ∈ 𝐵) → Pred(𝑆, 𝐵, 𝑏) ∈ V)
1613, 15sylan 592 . . . . . . . . . . 11 ((𝜑 ∧ 𝑏 ∈ 𝐵) → Pred(𝑆, 𝐵, 𝑏) ∈ V)
1716adantrl 729 . . . . . . . . . 10 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → Pred(𝑆, 𝐵, 𝑏) ∈ V)
18 vsnex 5392 . . . . . . . . . . 11 {𝑏} ∈ V
1918a1i 11 . . . . . . . . . 10 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → {𝑏} ∈ V)
2017, 19unexd 7768 . . . . . . . . 9 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏}) ∈ V)
2112, 20xpexd 7765 . . . . . . . 8 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → ((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∈ V)
2221difexd 5292 . . . . . . 7 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩}) ∈ V)
234, 22eqeltrd 2860 . . . . . 6 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) ∈ V)
24 predeq3 6308 . . . . . . 7 (𝑝 = ⟨𝑎, 𝑏⟩ → Pred(𝑇, (𝐴 × 𝐵), 𝑝) = Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩))
2524eleq1d 2845 . . . . . 6 (𝑝 = ⟨𝑎, 𝑏⟩ → (Pred(𝑇, (𝐴 × 𝐵), 𝑝) ∈ V ↔ Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) ∈ V))
2623, 25syl5ibrcom 250 . . . . 5 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → (𝑝 = ⟨𝑎, 𝑏⟩ → Pred(𝑇, (𝐴 × 𝐵), 𝑝) ∈ V))
2726rexlimdvva 3219 . . . 4 (𝜑 → (∃𝑎 ∈ 𝐴 ∃𝑏 ∈ 𝐵 𝑝 = ⟨𝑎, 𝑏⟩ → Pred(𝑇, (𝐴 × 𝐵), 𝑝) ∈ V))
281, 27biimtrid 245 . . 3 (𝜑 → (𝑝 ∈ (𝐴 × 𝐵) → Pred(𝑇, (𝐴 × 𝐵), 𝑝) ∈ V))
2928ralrimiv 3153 . 2 (𝜑 → ∀𝑝 ∈ (𝐴 × 𝐵)Pred(𝑇, (𝐴 × 𝐵), 𝑝) ∈ V)
30 dfse3 6339 . 2 (𝑇 Se (𝐴 × 𝐵) ↔ ∀𝑝 ∈ (𝐴 × 𝐵)Pred(𝑇, (𝐴 × 𝐵), 𝑝) ∈ V)
3129, 30sylibr 237 1 (𝜑 → 𝑇 Se (𝐴 × 𝐵))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   ∨ wo 861   ∧ w3a 1103   = wceq 1569   ∈ wcel 2144   ≠ wne 2955  ∀wral 3076  ∃wrex 3086  Vcvv 3450   ∖ cdif 4045   ∪ cun 4149  {csn 4584  ⟨cop 4834   class class class wbr 5102  {copab 5166   Se wse 5601   × cxp 5648  Predcpred 6303  ‘cfv 6538  1st c1st 7999  2nd c2nd 8000
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-sep 5248  ax-nul 5259  ax-pow 5326  ax-pr 5390  ax-un 7751
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-pw 4558  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-br 5103  df-opab 5167  df-mpt 5186  df-id 5545  df-se 5604  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-rn 5661  df-res 5662  df-ima 5663  df-pred 6304  df-iota 6494  df-fun 6540  df-fv 6546  df-1st 8001  df-2nd 8002
This theorem is used by:  xpord2indlem  8166  on2recsfn  8679  on2recsov  8680  noxpordse  28343
  Copyright terms: Public domain W3C validator