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

Theorem sexp3 8148
Description: Show that the triple order is set-like. (Contributed by Scott Fenton, 21-Aug-2024.)
Hypotheses
Ref Expression
xpord3.1 𝑈 = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ ((𝐴 × 𝐵) × 𝐶) ∧ 𝑦 ∈ ((𝐴 × 𝐵) × 𝐶) ∧ ((((1st ‘(1st ‘𝑥))𝑅(1st ‘(1st ‘𝑦)) ∨ (1st ‘(1st ‘𝑥)) = (1st ‘(1st ‘𝑦))) ∧ ((2nd ‘(1st ‘𝑥))𝑆(2nd ‘(1st ‘𝑦)) ∨ (2nd ‘(1st ‘𝑥)) = (2nd ‘(1st ‘𝑦))) ∧ ((2nd ‘𝑥)𝑇(2nd ‘𝑦) ∨ (2nd ‘𝑥) = (2nd ‘𝑦))) ∧ 𝑥 ≠ 𝑦))}
sexp3.1 (𝜑 → 𝑅 Se 𝐴)
sexp3.2 (𝜑 → 𝑆 Se 𝐵)
sexp3.3 (𝜑 → 𝑇 Se 𝐶)
Assertion
Ref Expression
sexp3 (𝜑 → 𝑈 Se ((𝐴 × 𝐵) × 𝐶))
Distinct variable groups:   𝑥,𝐴,𝑦   𝑥,𝐵,𝑦   𝑥,𝐶,𝑦   𝑥,𝑅,𝑦   𝑥,𝑆,𝑦   𝑥,𝑇,𝑦
Allowed substitution hints:   𝜑(𝑥, 𝑦)   𝑈(𝑥, 𝑦)

Proof of Theorem sexp3
Dummy variables 𝑎 𝑏 𝑐 𝑝 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 el2xptp 5816 . . . 4 (𝑝 ∈ ((𝐴 × 𝐵) × 𝐶) ↔ ∃𝑎 ∈ 𝐴 ∃𝑏 ∈ 𝐵 ∃𝑐 ∈ 𝐶 𝑝 = ⟨𝑎, 𝑏, 𝑐⟩)
2 df-3an 1105 . . . . . . . 8 ((𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵 ∧ 𝑐 ∈ 𝐶) ↔ ((𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵) ∧ 𝑐 ∈ 𝐶))
3 xpord3.1 . . . . . . . . . . . 12 𝑈 = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ ((𝐴 × 𝐵) × 𝐶) ∧ 𝑦 ∈ ((𝐴 × 𝐵) × 𝐶) ∧ ((((1st ‘(1st ‘𝑥))𝑅(1st ‘(1st ‘𝑦)) ∨ (1st ‘(1st ‘𝑥)) = (1st ‘(1st ‘𝑦))) ∧ ((2nd ‘(1st ‘𝑥))𝑆(2nd ‘(1st ‘𝑦)) ∨ (2nd ‘(1st ‘𝑥)) = (2nd ‘(1st ‘𝑦))) ∧ ((2nd ‘𝑥)𝑇(2nd ‘𝑦) ∨ (2nd ‘𝑥) = (2nd ‘𝑦))) ∧ 𝑥 ≠ 𝑦))}
43xpord3pred 8147 . . . . . . . . . . 11 ((𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵 ∧ 𝑐 ∈ 𝐶) → Pred(𝑈, ((𝐴 × 𝐵) × 𝐶), ⟨𝑎, 𝑏, 𝑐⟩) = ((((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) × (Pred(𝑇, 𝐶, 𝑐) ∪ {𝑐})) ∖ {⟨𝑎, 𝑏, 𝑐⟩}))
54adantl 487 . . . . . . . . . 10 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵 ∧ 𝑐 ∈ 𝐶)) → Pred(𝑈, ((𝐴 × 𝐵) × 𝐶), ⟨𝑎, 𝑏, 𝑐⟩) = ((((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) × (Pred(𝑇, 𝐶, 𝑐) ∪ {𝑐})) ∖ {⟨𝑎, 𝑏, 𝑐⟩}))
6 simpr1 1213 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵 ∧ 𝑐 ∈ 𝐶)) → 𝑎 ∈ 𝐴)
7 sexp3.1 . . . . . . . . . . . . . . . 16 (𝜑 → 𝑅 Se 𝐴)
87adantr 486 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵 ∧ 𝑐 ∈ 𝐶)) → 𝑅 Se 𝐴)
9 setlikespec 6317 . . . . . . . . . . . . . . 15 ((𝑎 ∈ 𝐴 ∧ 𝑅 Se 𝐴) → Pred(𝑅, 𝐴, 𝑎) ∈ V)
106, 8, 9syl2anc 596 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵 ∧ 𝑐 ∈ 𝐶)) → Pred(𝑅, 𝐴, 𝑎) ∈ V)
11 vsnex 5392 . . . . . . . . . . . . . . 15 {𝑎} ∈ V
1211a1i 11 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵 ∧ 𝑐 ∈ 𝐶)) → {𝑎} ∈ V)
1310, 12unexd 7751 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵 ∧ 𝑐 ∈ 𝐶)) → (Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) ∈ V)
14 simpr2 1214 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵 ∧ 𝑐 ∈ 𝐶)) → 𝑏 ∈ 𝐵)
15 sexp3.2 . . . . . . . . . . . . . . . 16 (𝜑 → 𝑆 Se 𝐵)
1615adantr 486 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵 ∧ 𝑐 ∈ 𝐶)) → 𝑆 Se 𝐵)
17 setlikespec 6317 . . . . . . . . . . . . . . 15 ((𝑏 ∈ 𝐵 ∧ 𝑆 Se 𝐵) → Pred(𝑆, 𝐵, 𝑏) ∈ V)
1814, 16, 17syl2anc 596 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵 ∧ 𝑐 ∈ 𝐶)) → Pred(𝑆, 𝐵, 𝑏) ∈ V)
19 vsnex 5392 . . . . . . . . . . . . . . 15 {𝑏} ∈ V
2019a1i 11 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵 ∧ 𝑐 ∈ 𝐶)) → {𝑏} ∈ V)
2118, 20unexd 7751 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵 ∧ 𝑐 ∈ 𝐶)) → (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏}) ∈ V)
2213, 21xpexd 7748 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵 ∧ 𝑐 ∈ 𝐶)) → ((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∈ V)
23 simpr3 1215 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵 ∧ 𝑐 ∈ 𝐶)) → 𝑐 ∈ 𝐶)
24 sexp3.3 . . . . . . . . . . . . . . 15 (𝜑 → 𝑇 Se 𝐶)
2524adantr 486 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵 ∧ 𝑐 ∈ 𝐶)) → 𝑇 Se 𝐶)
26 setlikespec 6317 . . . . . . . . . . . . . 14 ((𝑐 ∈ 𝐶 ∧ 𝑇 Se 𝐶) → Pred(𝑇, 𝐶, 𝑐) ∈ V)
2723, 25, 26syl2anc 596 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵 ∧ 𝑐 ∈ 𝐶)) → Pred(𝑇, 𝐶, 𝑐) ∈ V)
28 vsnex 5392 . . . . . . . . . . . . . 14 {𝑐} ∈ V
2928a1i 11 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵 ∧ 𝑐 ∈ 𝐶)) → {𝑐} ∈ V)
3027, 29unexd 7751 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵 ∧ 𝑐 ∈ 𝐶)) → (Pred(𝑇, 𝐶, 𝑐) ∪ {𝑐}) ∈ V)
3122, 30xpexd 7748 . . . . . . . . . . 11 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵 ∧ 𝑐 ∈ 𝐶)) → (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) × (Pred(𝑇, 𝐶, 𝑐) ∪ {𝑐})) ∈ V)
3231difexd 5292 . . . . . . . . . 10 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵 ∧ 𝑐 ∈ 𝐶)) → ((((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) × (Pred(𝑇, 𝐶, 𝑐) ∪ {𝑐})) ∖ {⟨𝑎, 𝑏, 𝑐⟩}) ∈ V)
335, 32eqeltrd 2860 . . . . . . . . 9 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵 ∧ 𝑐 ∈ 𝐶)) → Pred(𝑈, ((𝐴 × 𝐵) × 𝐶), ⟨𝑎, 𝑏, 𝑐⟩) ∈ V)
34 predeq3 6297 . . . . . . . . . 10 (𝑝 = ⟨𝑎, 𝑏, 𝑐⟩ → Pred(𝑈, ((𝐴 × 𝐵) × 𝐶), 𝑝) = Pred(𝑈, ((𝐴 × 𝐵) × 𝐶), ⟨𝑎, 𝑏, 𝑐⟩))
3534eleq1d 2845 . . . . . . . . 9 (𝑝 = ⟨𝑎, 𝑏, 𝑐⟩ → (Pred(𝑈, ((𝐴 × 𝐵) × 𝐶), 𝑝) ∈ V ↔ Pred(𝑈, ((𝐴 × 𝐵) × 𝐶), ⟨𝑎, 𝑏, 𝑐⟩) ∈ V))
3633, 35syl5ibrcom 250 . . . . . . . 8 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵 ∧ 𝑐 ∈ 𝐶)) → (𝑝 = ⟨𝑎, 𝑏, 𝑐⟩ → Pred(𝑈, ((𝐴 × 𝐵) × 𝐶), 𝑝) ∈ V))
372, 36sylan2br 607 . . . . . . 7 ((𝜑 ∧ ((𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵) ∧ 𝑐 ∈ 𝐶)) → (𝑝 = ⟨𝑎, 𝑏, 𝑐⟩ → Pred(𝑈, ((𝐴 × 𝐵) × 𝐶), 𝑝) ∈ V))
3837anassrs 473 . . . . . 6 (((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) ∧ 𝑐 ∈ 𝐶) → (𝑝 = ⟨𝑎, 𝑏, 𝑐⟩ → Pred(𝑈, ((𝐴 × 𝐵) × 𝐶), 𝑝) ∈ V))
3938rexlimdva 3163 . . . . 5 ((𝜑 ∧ (𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐵)) → (∃𝑐 ∈ 𝐶 𝑝 = ⟨𝑎, 𝑏, 𝑐⟩ → Pred(𝑈, ((𝐴 × 𝐵) × 𝐶), 𝑝) ∈ V))
4039rexlimdvva 3219 . . . 4 (𝜑 → (∃𝑎 ∈ 𝐴 ∃𝑏 ∈ 𝐵 ∃𝑐 ∈ 𝐶 𝑝 = ⟨𝑎, 𝑏, 𝑐⟩ → Pred(𝑈, ((𝐴 × 𝐵) × 𝐶), 𝑝) ∈ V))
411, 40biimtrid 245 . . 3 (𝜑 → (𝑝 ∈ ((𝐴 × 𝐵) × 𝐶) → Pred(𝑈, ((𝐴 × 𝐵) × 𝐶), 𝑝) ∈ V))
4241ralrimiv 3153 . 2 (𝜑 → ∀𝑝 ∈ ((𝐴 × 𝐵) × 𝐶)Pred(𝑈, ((𝐴 × 𝐵) × 𝐶), 𝑝) ∈ V)
43 dfse3 6328 . 2 (𝑈 Se ((𝐴 × 𝐵) × 𝐶) ↔ ∀𝑝 ∈ ((𝐴 × 𝐵) × 𝐶)Pred(𝑈, ((𝐴 × 𝐵) × 𝐶), 𝑝) ∈ V)
4442, 43sylibr 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 2955  ∀wral 3076  ∃wrex 3086  Vcvv 3450   ∖ cdif 3895   ∪ cun 3896  {csn 4583  ⟨cotp 4591   class class class wbr 5102  {copab 5166   Se wse 5598   × cxp 5645  Predcpred 6292  ‘cfv 6527  1st c1st 7982  2nd c2nd 7983
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 2732  ax-sep 5248  ax-nul 5259  ax-pow 5326  ax-pr 5390  ax-un 7734
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  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-sbc 3739  df-csb 3847  df-dif 3901  df-un 3903  df-in 3905  df-ss 3915  df-nul 4279  df-if 4482  df-pw 4558  df-sn 4584  df-pr 4586  df-op 4590  df-ot 4592  df-uni 4867  df-iun 4952  df-br 5103  df-opab 5167  df-mpt 5186  df-id 5542  df-se 5601  df-xp 5653  df-rel 5654  df-cnv 5655  df-co 5656  df-dm 5657  df-rn 5658  df-res 5659  df-ima 5660  df-pred 6293  df-iota 6483  df-fun 6529  df-fv 6535  df-1st 7984  df-2nd 7985
This theorem is used by:  xpord3inddlem  8149
  Copyright terms: Public domain W3C validator