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

Theorem sexp2 8190
Description: Condition for the relation in frxp2 8188 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 5679 . . . 4 (𝑝 ∈ (𝐴 × 𝐵) ↔ ∃𝑎 ∈ 𝐴 ∃𝑏 ∈ 𝐵 𝑝 = ⟨𝑎, 𝑏⟩)
2 xpord2.1 . . . . . . . . 9 𝑇 = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ (𝐴 × 𝐵) ∧ 𝑦 ∈ (𝐴 × 𝐵) ∧ (((1st ‘𝑥)𝑅(1st ‘𝑦) ∨ (1st ‘𝑥) = (1st ‘𝑦)) ∧ ((2nd ‘𝑥)𝑆(2nd ‘𝑦) ∨ (2nd ‘𝑥) = (2nd ‘𝑦)) ∧ 𝑥 ≠ 𝑦))}
32xpord2pred 8189 . . . . . . . 8 ((𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵) → Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) = (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩}))
43adantl 487 . . . . . . 7 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) = (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩}))
5 sexp2.1 . . . . . . . . . . . 12 (𝜑 → 𝑅 Se 𝐴)
6 setlikespec 6346 . . . . . . . . . . . . 13 ((𝑎 ∈ 𝐴 ∧ 𝑅 Se 𝐴) → Pred(𝑅, 𝐴, 𝑎) ∈ V)
76ancoms 464 . . . . . . . . . . . 12 ((𝑅 Se 𝐴 ∧ 𝑎 ∈ 𝐴) → Pred(𝑅, 𝐴, 𝑎) ∈ V)
85, 7sylan 592 . . . . . . . . . . 11 ((𝜑 ∧ 𝑎 ∈ 𝐴) → Pred(𝑅, 𝐴, 𝑎) ∈ V)
98adantrr 730 . . . . . . . . . 10 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → Pred(𝑅, 𝐴, 𝑎) ∈ V)
10 vsnex 5397 . . . . . . . . . . 11 {𝑎} ∈ V
1110a1i 11 . . . . . . . . . 10 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → {𝑎} ∈ V)
129, 11unexd 7792 . . . . . . . . 9 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → (Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) ∈ V)
13 sexp2.2 . . . . . . . . . . . 12 (𝜑 → 𝑆 Se 𝐵)
14 setlikespec 6346 . . . . . . . . . . . . 13 ((𝑏 ∈ 𝐵 ∧ 𝑆 Se 𝐵) → Pred(𝑆, 𝐵, 𝑏) ∈ V)
1514ancoms 464 . . . . . . . . . . . 12 ((𝑆 Se 𝐵 ∧ 𝑏 ∈ 𝐵) → Pred(𝑆, 𝐵, 𝑏) ∈ V)
1613, 15sylan 592 . . . . . . . . . . 11 ((𝜑 ∧ 𝑏 ∈ 𝐵) → Pred(𝑆, 𝐵, 𝑏) ∈ V)
1716adantrl 729 . . . . . . . . . 10 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → Pred(𝑆, 𝐵, 𝑏) ∈ V)
18 vsnex 5397 . . . . . . . . . . 11 {𝑏} ∈ V
1918a1i 11 . . . . . . . . . 10 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → {𝑏} ∈ V)
2017, 19unexd 7792 . . . . . . . . 9 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏}) ∈ V)
2112, 20xpexd 7789 . . . . . . . 8 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → ((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∈ V)
2221difexd 5297 . . . . . . 7 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩}) ∈ V)
234, 22eqeltrd 2864 . . . . . 6 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) ∈ V)
24 predeq3 6326 . . . . . . 7 (𝑝 = ⟨𝑎, 𝑏⟩ → Pred(𝑇, (𝐴 × 𝐵), 𝑝) = Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩))
2524eleq1d 2849 . . . . . 6 (𝑝 = ⟨𝑎, 𝑏⟩ → (Pred(𝑇, (𝐴 × 𝐵), 𝑝) ∈ V ↔ Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) ∈ V))
2623, 25syl5ibrcom 250 . . . . 5 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → (𝑝 = ⟨𝑎, 𝑏⟩ → Pred(𝑇, (𝐴 × 𝐵), 𝑝) ∈ V))
2726rexlimdvva 3223 . . . 4 (𝜑 → (∃𝑎 ∈ 𝐴 ∃𝑏 ∈ 𝐵 𝑝 = ⟨𝑎, 𝑏⟩ → Pred(𝑇, (𝐴 × 𝐵), 𝑝) ∈ V))
281, 27biimtrid 245 . . 3 (𝜑 → (𝑝 ∈ (𝐴 × 𝐵) → Pred(𝑇, (𝐴 × 𝐵), 𝑝) ∈ V))
2928ralrimiv 3157 . 2 (𝜑 → ∀𝑝 ∈ (𝐴 × 𝐵)Pred(𝑇, (𝐴 × 𝐵), 𝑝) ∈ V)
30 dfse3 6357 . 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 1570   ∈ wcel 2147   ≠ wne 2959  ∀wral 3080  ∃wrex 3090  Vcvv 3454   ∖ cdif 4048   ∪ cun 4152  {csn 4588  ⟨cop 4838   class class class wbr 5106  {copab 5170   Se wse 5606   × cxp 5653  Predcpred 6321  ‘cfv 6558  1st c1st 8023  2nd c2nd 8024
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5252  ax-nul 5263  ax-pow 5331  ax-pr 5395  ax-un 7775
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-rab 3417  df-v 3456  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-br 5107  df-opab 5171  df-mpt 5190  df-id 5550  df-se 5609  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-pred 6322  df-iota 6512  df-fun 6560  df-fv 6566  df-1st 8025  df-2nd 8026
This theorem is used by:  xpord2indlem  8191  on2recsfn  8704  on2recsov  8705  noxpordse  28368
  Copyright terms: Public domain W3C validator