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

Theorem djuss 9678
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 9677 . . 3 (𝑥 ∈ (𝐴𝐵) → (∃𝑦𝐴 𝑥 = (inl‘𝑦) ∨ ∃𝑦𝐵 𝑥 = (inr‘𝑦)))
2 simpr 485 . . . . . . 7 ((𝑦𝐴𝑥 = (inl‘𝑦)) → 𝑥 = (inl‘𝑦))
3 df-inl 9660 . . . . . . . . 9 inl = (𝑥 ∈ V ↦ ⟨∅, 𝑥⟩)
4 opeq2 4805 . . . . . . . . 9 (𝑥 = 𝑦 → ⟨∅, 𝑥⟩ = ⟨∅, 𝑦⟩)
5 elex 3450 . . . . . . . . 9 (𝑦𝐴𝑦 ∈ V)
6 opex 5379 . . . . . . . . . 10 ⟨∅, 𝑦⟩ ∈ V
76a1i 11 . . . . . . . . 9 (𝑦𝐴 → ⟨∅, 𝑦⟩ ∈ V)
83, 4, 5, 7fvmptd3 6898 . . . . . . . 8 (𝑦𝐴 → (inl‘𝑦) = ⟨∅, 𝑦⟩)
98adantr 481 . . . . . . 7 ((𝑦𝐴𝑥 = (inl‘𝑦)) → (inl‘𝑦) = ⟨∅, 𝑦⟩)
102, 9eqtrd 2778 . . . . . 6 ((𝑦𝐴𝑥 = (inl‘𝑦)) → 𝑥 = ⟨∅, 𝑦⟩)
11 elun1 4110 . . . . . . . . 9 (𝑦𝐴𝑦 ∈ (𝐴𝐵))
12 0ex 5231 . . . . . . . . . 10 ∅ ∈ V
1312prid1 4698 . . . . . . . . 9 ∅ ∈ {∅, 1o}
1411, 13jctil 520 . . . . . . . 8 (𝑦𝐴 → (∅ ∈ {∅, 1o} ∧ 𝑦 ∈ (𝐴𝐵)))
1514adantr 481 . . . . . . 7 ((𝑦𝐴𝑥 = (inl‘𝑦)) → (∅ ∈ {∅, 1o} ∧ 𝑦 ∈ (𝐴𝐵)))
16 opelxp 5625 . . . . . . 7 (⟨∅, 𝑦⟩ ∈ ({∅, 1o} × (𝐴𝐵)) ↔ (∅ ∈ {∅, 1o} ∧ 𝑦 ∈ (𝐴𝐵)))
1715, 16sylibr 233 . . . . . 6 ((𝑦𝐴𝑥 = (inl‘𝑦)) → ⟨∅, 𝑦⟩ ∈ ({∅, 1o} × (𝐴𝐵)))
1810, 17eqeltrd 2839 . . . . 5 ((𝑦𝐴𝑥 = (inl‘𝑦)) → 𝑥 ∈ ({∅, 1o} × (𝐴𝐵)))
1918rexlimiva 3210 . . . 4 (∃𝑦𝐴 𝑥 = (inl‘𝑦) → 𝑥 ∈ ({∅, 1o} × (𝐴𝐵)))
20 simpr 485 . . . . . . 7 ((𝑦𝐵𝑥 = (inr‘𝑦)) → 𝑥 = (inr‘𝑦))
21 df-inr 9661 . . . . . . . . 9 inr = (𝑥 ∈ V ↦ ⟨1o, 𝑥⟩)
22 opeq2 4805 . . . . . . . . 9 (𝑥 = 𝑦 → ⟨1o, 𝑥⟩ = ⟨1o, 𝑦⟩)
23 elex 3450 . . . . . . . . 9 (𝑦𝐵𝑦 ∈ V)
24 opex 5379 . . . . . . . . . 10 ⟨1o, 𝑦⟩ ∈ V
2524a1i 11 . . . . . . . . 9 (𝑦𝐵 → ⟨1o, 𝑦⟩ ∈ V)
2621, 22, 23, 25fvmptd3 6898 . . . . . . . 8 (𝑦𝐵 → (inr‘𝑦) = ⟨1o, 𝑦⟩)
2726adantr 481 . . . . . . 7 ((𝑦𝐵𝑥 = (inr‘𝑦)) → (inr‘𝑦) = ⟨1o, 𝑦⟩)
2820, 27eqtrd 2778 . . . . . 6 ((𝑦𝐵𝑥 = (inr‘𝑦)) → 𝑥 = ⟨1o, 𝑦⟩)
29 elun2 4111 . . . . . . . . 9 (𝑦𝐵𝑦 ∈ (𝐴𝐵))
3029adantr 481 . . . . . . . 8 ((𝑦𝐵𝑥 = (inr‘𝑦)) → 𝑦 ∈ (𝐴𝐵))
31 1oex 8307 . . . . . . . . 9 1o ∈ V
3231prid2 4699 . . . . . . . 8 1o ∈ {∅, 1o}
3330, 32jctil 520 . . . . . . 7 ((𝑦𝐵𝑥 = (inr‘𝑦)) → (1o ∈ {∅, 1o} ∧ 𝑦 ∈ (𝐴𝐵)))
34 opelxp 5625 . . . . . . 7 (⟨1o, 𝑦⟩ ∈ ({∅, 1o} × (𝐴𝐵)) ↔ (1o ∈ {∅, 1o} ∧ 𝑦 ∈ (𝐴𝐵)))
3533, 34sylibr 233 . . . . . 6 ((𝑦𝐵𝑥 = (inr‘𝑦)) → ⟨1o, 𝑦⟩ ∈ ({∅, 1o} × (𝐴𝐵)))
3628, 35eqeltrd 2839 . . . . 5 ((𝑦𝐵𝑥 = (inr‘𝑦)) → 𝑥 ∈ ({∅, 1o} × (𝐴𝐵)))
3736rexlimiva 3210 . . . 4 (∃𝑦𝐵 𝑥 = (inr‘𝑦) → 𝑥 ∈ ({∅, 1o} × (𝐴𝐵)))
3819, 37jaoi 854 . . 3 ((∃𝑦𝐴 𝑥 = (inl‘𝑦) ∨ ∃𝑦𝐵 𝑥 = (inr‘𝑦)) → 𝑥 ∈ ({∅, 1o} × (𝐴𝐵)))
391, 38syl 17 . 2 (𝑥 ∈ (𝐴𝐵) → 𝑥 ∈ ({∅, 1o} × (𝐴𝐵)))
4039ssriv 3925 1 (𝐴𝐵) ⊆ ({∅, 1o} × (𝐴𝐵))
Colors of variables: wff setvar class
Syntax hints:  wa 396  wo 844   = wceq 1539  wcel 2106  wrex 3065  Vcvv 3432  cun 3885  wss 3887  c0 4256  {cpr 4563  cop 4567   × cxp 5587  cfv 6433  1oc1o 8290  cdju 9656  inlcinl 9657  inrcinr 9658
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352  ax-un 7588
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-br 5075  df-opab 5137  df-mpt 5158  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-suc 6272  df-iota 6391  df-fun 6435  df-fv 6441  df-1st 7831  df-2nd 7832  df-1o 8297  df-dju 9659  df-inl 9660  df-inr 9661
This theorem is referenced by:  djuunxp  9679  djuexALT  9680  eldju1st  9681
  Copyright terms: Public domain W3C validator