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

Theorem djuss 9333
Description: A disjoint union is a subclass of a Cartesian product. (Contributed by AV, 25-Jun-2022.)
Assertion
Ref Expression
djuss (𝐴𝐵) ⊆ ({∅, 1o} × (𝐴𝐵))

Proof of Theorem djuss
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 djur 9332 . . 3 (𝑥 ∈ (𝐴𝐵) → (∃𝑦𝐴 𝑥 = (inl‘𝑦) ∨ ∃𝑦𝐵 𝑥 = (inr‘𝑦)))
2 simpr 488 . . . . . . 7 ((𝑦𝐴𝑥 = (inl‘𝑦)) → 𝑥 = (inl‘𝑦))
3 df-inl 9315 . . . . . . . . 9 inl = (𝑥 ∈ V ↦ ⟨∅, 𝑥⟩)
4 opeq2 4765 . . . . . . . . 9 (𝑥 = 𝑦 → ⟨∅, 𝑥⟩ = ⟨∅, 𝑦⟩)
5 elex 3459 . . . . . . . . 9 (𝑦𝐴𝑦 ∈ V)
6 opex 5321 . . . . . . . . . 10 ⟨∅, 𝑦⟩ ∈ V
76a1i 11 . . . . . . . . 9 (𝑦𝐴 → ⟨∅, 𝑦⟩ ∈ V)
83, 4, 5, 7fvmptd3 6768 . . . . . . . 8 (𝑦𝐴 → (inl‘𝑦) = ⟨∅, 𝑦⟩)
98adantr 484 . . . . . . 7 ((𝑦𝐴𝑥 = (inl‘𝑦)) → (inl‘𝑦) = ⟨∅, 𝑦⟩)
102, 9eqtrd 2833 . . . . . 6 ((𝑦𝐴𝑥 = (inl‘𝑦)) → 𝑥 = ⟨∅, 𝑦⟩)
11 elun1 4103 . . . . . . . . 9 (𝑦𝐴𝑦 ∈ (𝐴𝐵))
12 0ex 5175 . . . . . . . . . 10 ∅ ∈ V
1312prid1 4658 . . . . . . . . 9 ∅ ∈ {∅, 1o}
1411, 13jctil 523 . . . . . . . 8 (𝑦𝐴 → (∅ ∈ {∅, 1o} ∧ 𝑦 ∈ (𝐴𝐵)))
1514adantr 484 . . . . . . 7 ((𝑦𝐴𝑥 = (inl‘𝑦)) → (∅ ∈ {∅, 1o} ∧ 𝑦 ∈ (𝐴𝐵)))
16 opelxp 5555 . . . . . . 7 (⟨∅, 𝑦⟩ ∈ ({∅, 1o} × (𝐴𝐵)) ↔ (∅ ∈ {∅, 1o} ∧ 𝑦 ∈ (𝐴𝐵)))
1715, 16sylibr 237 . . . . . 6 ((𝑦𝐴𝑥 = (inl‘𝑦)) → ⟨∅, 𝑦⟩ ∈ ({∅, 1o} × (𝐴𝐵)))
1810, 17eqeltrd 2890 . . . . 5 ((𝑦𝐴𝑥 = (inl‘𝑦)) → 𝑥 ∈ ({∅, 1o} × (𝐴𝐵)))
1918rexlimiva 3240 . . . 4 (∃𝑦𝐴 𝑥 = (inl‘𝑦) → 𝑥 ∈ ({∅, 1o} × (𝐴𝐵)))
20 simpr 488 . . . . . . 7 ((𝑦𝐵𝑥 = (inr‘𝑦)) → 𝑥 = (inr‘𝑦))
21 df-inr 9316 . . . . . . . . 9 inr = (𝑥 ∈ V ↦ ⟨1o, 𝑥⟩)
22 opeq2 4765 . . . . . . . . 9 (𝑥 = 𝑦 → ⟨1o, 𝑥⟩ = ⟨1o, 𝑦⟩)
23 elex 3459 . . . . . . . . 9 (𝑦𝐵𝑦 ∈ V)
24 opex 5321 . . . . . . . . . 10 ⟨1o, 𝑦⟩ ∈ V
2524a1i 11 . . . . . . . . 9 (𝑦𝐵 → ⟨1o, 𝑦⟩ ∈ V)
2621, 22, 23, 25fvmptd3 6768 . . . . . . . 8 (𝑦𝐵 → (inr‘𝑦) = ⟨1o, 𝑦⟩)
2726adantr 484 . . . . . . 7 ((𝑦𝐵𝑥 = (inr‘𝑦)) → (inr‘𝑦) = ⟨1o, 𝑦⟩)
2820, 27eqtrd 2833 . . . . . 6 ((𝑦𝐵𝑥 = (inr‘𝑦)) → 𝑥 = ⟨1o, 𝑦⟩)
29 elun2 4104 . . . . . . . . 9 (𝑦𝐵𝑦 ∈ (𝐴𝐵))
3029adantr 484 . . . . . . . 8 ((𝑦𝐵𝑥 = (inr‘𝑦)) → 𝑦 ∈ (𝐴𝐵))
31 1oex 8093 . . . . . . . . 9 1o ∈ V
3231prid2 4659 . . . . . . . 8 1o ∈ {∅, 1o}
3330, 32jctil 523 . . . . . . 7 ((𝑦𝐵𝑥 = (inr‘𝑦)) → (1o ∈ {∅, 1o} ∧ 𝑦 ∈ (𝐴𝐵)))
34 opelxp 5555 . . . . . . 7 (⟨1o, 𝑦⟩ ∈ ({∅, 1o} × (𝐴𝐵)) ↔ (1o ∈ {∅, 1o} ∧ 𝑦 ∈ (𝐴𝐵)))
3533, 34sylibr 237 . . . . . 6 ((𝑦𝐵𝑥 = (inr‘𝑦)) → ⟨1o, 𝑦⟩ ∈ ({∅, 1o} × (𝐴𝐵)))
3628, 35eqeltrd 2890 . . . . 5 ((𝑦𝐵𝑥 = (inr‘𝑦)) → 𝑥 ∈ ({∅, 1o} × (𝐴𝐵)))
3736rexlimiva 3240 . . . 4 (∃𝑦𝐵 𝑥 = (inr‘𝑦) → 𝑥 ∈ ({∅, 1o} × (𝐴𝐵)))
3819, 37jaoi 854 . . 3 ((∃𝑦𝐴 𝑥 = (inl‘𝑦) ∨ ∃𝑦𝐵 𝑥 = (inr‘𝑦)) → 𝑥 ∈ ({∅, 1o} × (𝐴𝐵)))
391, 38syl 17 . 2 (𝑥 ∈ (𝐴𝐵) → 𝑥 ∈ ({∅, 1o} × (𝐴𝐵)))
4039ssriv 3919 1 (𝐴𝐵) ⊆ ({∅, 1o} × (𝐴𝐵))
Colors of variables: wff setvar class
Syntax hints:  wa 399  wo 844   = wceq 1538  wcel 2111  wrex 3107  Vcvv 3441  cun 3879  wss 3881  c0 4243  {cpr 4527  cop 4531   × cxp 5517  cfv 6324  1oc1o 8078  cdju 9311  inlcinl 9312  inrcinr 9313
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 2770  ax-sep 5167  ax-nul 5174  ax-pow 5231  ax-pr 5295  ax-un 7441
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-ral 3111  df-rex 3112  df-rab 3115  df-v 3443  df-sbc 3721  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-pss 3900  df-nul 4244  df-if 4426  df-pw 4499  df-sn 4526  df-pr 4528  df-tp 4530  df-op 4532  df-uni 4801  df-br 5031  df-opab 5093  df-mpt 5111  df-tr 5137  df-id 5425  df-eprel 5430  df-po 5438  df-so 5439  df-fr 5478  df-we 5480  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-ord 6162  df-on 6163  df-suc 6165  df-iota 6283  df-fun 6326  df-fv 6332  df-1st 7671  df-2nd 7672  df-1o 8085  df-dju 9314  df-inl 9315  df-inr 9316
This theorem is referenced by:  djuunxp  9334  djuexALT  9335  eldju1st  9336
  Copyright terms: Public domain W3C validator