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

Theorem sexp2 8147
Description: Condition for the relation in frxp2 8145 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 5675 . . . 4 (𝑝 ∈ (𝐴 × 𝐵) ↔ ∃𝑎 ∈ 𝐴 ∃𝑏 ∈ 𝐵 𝑝 = ⟨𝑎, 𝑏⟩)
2 xpord2.1 . . . . . . . . 9 𝑇 = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ (𝐴 × 𝐵) ∧ 𝑦 ∈ (𝐴 × 𝐵) ∧ (((1st ‘𝑥)𝑅(1st ‘𝑦) ∨ (1st ‘𝑥) = (1st ‘𝑦)) ∧ ((2nd ‘𝑥)𝑆(2nd ‘𝑦) ∨ (2nd ‘𝑥) = (2nd ‘𝑦)) ∧ 𝑥 ≠ 𝑦))}
32xpord2pred 8146 . . . . . . . 8 ((𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵) → Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) = (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩}))
43adantl 487 . . . . . . 7 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) = (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩}))
5 sexp2.1 . . . . . . . . . . . 12 (𝜑 → 𝑅 Se 𝐴)
6 setlikespec 6321 . . . . . . . . . . . . 13 ((𝑎 ∈ 𝐴 ∧ 𝑅 Se 𝐴) → Pred(𝑅, 𝐴, 𝑎) ∈ V)
76ancoms 464 . . . . . . . . . . . 12 ((𝑅 Se 𝐴 ∧ 𝑎 ∈ 𝐴) → Pred(𝑅, 𝐴, 𝑎) ∈ V)
85, 7sylan 592 . . . . . . . . . . 11 ((𝜑 ∧ 𝑎 ∈ 𝐴) → Pred(𝑅, 𝐴, 𝑎) ∈ V)
98adantrr 730 . . . . . . . . . 10 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → Pred(𝑅, 𝐴, 𝑎) ∈ V)
10 vsnex 5393 . . . . . . . . . . 11 {𝑎} ∈ V
1110a1i 11 . . . . . . . . . 10 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → {𝑎} ∈ V)
129, 11unexd 7757 . . . . . . . . 9 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → (Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) ∈ V)
13 sexp2.2 . . . . . . . . . . . 12 (𝜑 → 𝑆 Se 𝐵)
14 setlikespec 6321 . . . . . . . . . . . . 13 ((𝑏 ∈ 𝐵 ∧ 𝑆 Se 𝐵) → Pred(𝑆, 𝐵, 𝑏) ∈ V)
1514ancoms 464 . . . . . . . . . . . 12 ((𝑆 Se 𝐵 ∧ 𝑏 ∈ 𝐵) → Pred(𝑆, 𝐵, 𝑏) ∈ V)
1613, 15sylan 592 . . . . . . . . . . 11 ((𝜑 ∧ 𝑏 ∈ 𝐵) → Pred(𝑆, 𝐵, 𝑏) ∈ V)
1716adantrl 729 . . . . . . . . . 10 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → Pred(𝑆, 𝐵, 𝑏) ∈ V)
18 vsnex 5393 . . . . . . . . . . 11 {𝑏} ∈ V
1918a1i 11 . . . . . . . . . 10 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → {𝑏} ∈ V)
2017, 19unexd 7757 . . . . . . . . 9 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏}) ∈ V)
2112, 20xpexd 7754 . . . . . . . 8 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → ((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∈ V)
2221difexd 5293 . . . . . . 7 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩}) ∈ V)
234, 22eqeltrd 2861 . . . . . 6 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) ∈ V)
24 predeq3 6301 . . . . . . 7 (𝑝 = ⟨𝑎, 𝑏⟩ → Pred(𝑇, (𝐴 × 𝐵), 𝑝) = Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩))
2524eleq1d 2846 . . . . . 6 (𝑝 = ⟨𝑎, 𝑏⟩ → (Pred(𝑇, (𝐴 × 𝐵), 𝑝) ∈ V ↔ Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) ∈ V))
2623, 25syl5ibrcom 250 . . . . 5 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → (𝑝 = ⟨𝑎, 𝑏⟩ → Pred(𝑇, (𝐴 × 𝐵), 𝑝) ∈ V))
2726rexlimdvva 3220 . . . 4 (𝜑 → (∃𝑎 ∈ 𝐴 ∃𝑏 ∈ 𝐵 𝑝 = ⟨𝑎, 𝑏⟩ → Pred(𝑇, (𝐴 × 𝐵), 𝑝) ∈ V))
281, 27biimtrid 245 . . 3 (𝜑 → (𝑝 ∈ (𝐴 × 𝐵) → Pred(𝑇, (𝐴 × 𝐵), 𝑝) ∈ V))
2928ralrimiv 3154 . 2 (𝜑 → ∀𝑝 ∈ (𝐴 × 𝐵)Pred(𝑇, (𝐴 × 𝐵), 𝑝) ∈ V)
30 dfse3 6332 . 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 2145   ≠ wne 2956  ∀wral 3077  ∃wrex 3087  Vcvv 3451   ∖ cdif 3896   ∪ cun 3897  {csn 4584  ⟨cop 4590   class class class wbr 5103  {copab 5167   Se wse 5602   × cxp 5649  Predcpred 6296  ‘cfv 6531  1st c1st 7988  2nd c2nd 7989
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 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-sep 5249  ax-nul 5260  ax-pow 5327  ax-pr 5391  ax-un 7740
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 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3078  df-rex 3088  df-rab 3414  df-v 3453  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-br 5104  df-opab 5168  df-mpt 5187  df-id 5546  df-se 5605  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-pred 6297  df-iota 6487  df-fun 6533  df-fv 6539  df-1st 7990  df-2nd 7991
This theorem is used by:  xpord2indlem  8148  on2recsfn  8660  on2recsov  8661  noxpordse  28317
  Copyright terms: Public domain W3C validator