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

Theorem djur 10000
Description: A member of a disjoint union can be mapped from one of the classes which produced it. (Contributed by Jim Kingdon, 23-Jun-2022.)
Assertion
Ref Expression
djur (𝐶 ∈ (𝐴 ⊔ 𝐵) → (∃𝑥 ∈ 𝐴 𝐶 = (inl‘𝑥) ∨ ∃𝑥 ∈ 𝐵 𝐶 = (inr‘𝑥)))
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵   𝑥,𝐶

Proof of Theorem djur
Dummy variables 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-dju 9982 . . . 4 (𝐴 ⊔ 𝐵) = (({∅} × 𝐴) ∪ ({1o} × 𝐵))
21eleq2i 2853 . . 3 (𝐶 ∈ (𝐴 ⊔ 𝐵) ↔ 𝐶 ∈ (({∅} × 𝐴) ∪ ({1o} × 𝐵)))
3 elun 4100 . . 3 (𝐶 ∈ (({∅} × 𝐴) ∪ ({1o} × 𝐵)) ↔ (𝐶 ∈ ({∅} × 𝐴) ∨ 𝐶 ∈ ({1o} × 𝐵)))
42, 3sylbb 222 . 2 (𝐶 ∈ (𝐴 ⊔ 𝐵) → (𝐶 ∈ ({∅} × 𝐴) ∨ 𝐶 ∈ ({1o} × 𝐵)))
5 xp2nd 8034 . . . 4 (𝐶 ∈ ({∅} × 𝐴) → (2nd ‘𝐶) ∈ 𝐴)
6 1st2nd2 8040 . . . . . 6 (𝐶 ∈ ({∅} × 𝐴) → 𝐶 = ⟨(1st ‘𝐶), (2nd ‘𝐶)⟩)
7 xp1st 8033 . . . . . . 7 (𝐶 ∈ ({∅} × 𝐴) → (1st ‘𝐶) ∈ {∅})
8 elsni 4601 . . . . . . 7 ((1st ‘𝐶) ∈ {∅} → (1st ‘𝐶) = ∅)
9 opeq1 4833 . . . . . . . 8 ((1st ‘𝐶) = ∅ → ⟨(1st ‘𝐶), (2nd ‘𝐶)⟩ = ⟨∅, (2nd ‘𝐶)⟩)
109eqeq2d 2772 . . . . . . 7 ((1st ‘𝐶) = ∅ → (𝐶 = ⟨(1st ‘𝐶), (2nd ‘𝐶)⟩ ↔ 𝐶 = ⟨∅, (2nd ‘𝐶)⟩))
117, 8, 103syl 19 . . . . . 6 (𝐶 ∈ ({∅} × 𝐴) → (𝐶 = ⟨(1st ‘𝐶), (2nd ‘𝐶)⟩ ↔ 𝐶 = ⟨∅, (2nd ‘𝐶)⟩))
126, 11mpbid 235 . . . . 5 (𝐶 ∈ ({∅} × 𝐴) → 𝐶 = ⟨∅, (2nd ‘𝐶)⟩)
13 fvexd 6900 . . . . . 6 (𝐶 ∈ ({∅} × 𝐴) → (2nd ‘𝐶) ∈ V)
14 opex 5432 . . . . . 6 ⟨∅, (2nd ‘𝐶)⟩ ∈ V
15 opeq2 4834 . . . . . . 7 (𝑦 = (2nd ‘𝐶) → ⟨∅, 𝑦⟩ = ⟨∅, (2nd ‘𝐶)⟩)
16 df-inl 9983 . . . . . . 7 inl = (𝑦 ∈ V ↦ ⟨∅, 𝑦⟩)
1715, 16fvmptg 6991 . . . . . 6 (((2nd ‘𝐶) ∈ V ∧ ⟨∅, (2nd ‘𝐶)⟩ ∈ V) → (inl‘(2nd ‘𝐶)) = ⟨∅, (2nd ‘𝐶)⟩)
1813, 14, 17sylancl 598 . . . . 5 (𝐶 ∈ ({∅} × 𝐴) → (inl‘(2nd ‘𝐶)) = ⟨∅, (2nd ‘𝐶)⟩)
1912, 18eqtr4d 2799 . . . 4 (𝐶 ∈ ({∅} × 𝐴) → 𝐶 = (inl‘(2nd ‘𝐶)))
20 fveq2 6885 . . . . 5 (𝑥 = (2nd ‘𝐶) → (inl‘𝑥) = (inl‘(2nd ‘𝐶)))
2120rspceeqv 3599 . . . 4 (((2nd ‘𝐶) ∈ 𝐴 ∧ 𝐶 = (inl‘(2nd ‘𝐶))) → ∃𝑥 ∈ 𝐴 𝐶 = (inl‘𝑥))
225, 19, 21syl2anc 596 . . 3 (𝐶 ∈ ({∅} × 𝐴) → ∃𝑥 ∈ 𝐴 𝐶 = (inl‘𝑥))
23 xp2nd 8034 . . . 4 (𝐶 ∈ ({1o} × 𝐵) → (2nd ‘𝐶) ∈ 𝐵)
24 1st2nd2 8040 . . . . . 6 (𝐶 ∈ ({1o} × 𝐵) → 𝐶 = ⟨(1st ‘𝐶), (2nd ‘𝐶)⟩)
25 xp1st 8033 . . . . . . 7 (𝐶 ∈ ({1o} × 𝐵) → (1st ‘𝐶) ∈ {1o})
26 elsni 4601 . . . . . . 7 ((1st ‘𝐶) ∈ {1o} → (1st ‘𝐶) = 1o)
27 opeq1 4833 . . . . . . . 8 ((1st ‘𝐶) = 1o → ⟨(1st ‘𝐶), (2nd ‘𝐶)⟩ = ⟨1o, (2nd ‘𝐶)⟩)
2827eqeq2d 2772 . . . . . . 7 ((1st ‘𝐶) = 1o → (𝐶 = ⟨(1st ‘𝐶), (2nd ‘𝐶)⟩ ↔ 𝐶 = ⟨1o, (2nd ‘𝐶)⟩))
2925, 26, 283syl 19 . . . . . 6 (𝐶 ∈ ({1o} × 𝐵) → (𝐶 = ⟨(1st ‘𝐶), (2nd ‘𝐶)⟩ ↔ 𝐶 = ⟨1o, (2nd ‘𝐶)⟩))
3024, 29mpbid 235 . . . . 5 (𝐶 ∈ ({1o} × 𝐵) → 𝐶 = ⟨1o, (2nd ‘𝐶)⟩)
31 fvexd 6900 . . . . . 6 (𝐶 ∈ ({1o} × 𝐵) → (2nd ‘𝐶) ∈ V)
32 opex 5432 . . . . . 6 ⟨1o, (2nd ‘𝐶)⟩ ∈ V
33 opeq2 4834 . . . . . . 7 (𝑧 = (2nd ‘𝐶) → ⟨1o, 𝑧⟩ = ⟨1o, (2nd ‘𝐶)⟩)
34 df-inr 9984 . . . . . . 7 inr = (𝑧 ∈ V ↦ ⟨1o, 𝑧⟩)
3533, 34fvmptg 6991 . . . . . 6 (((2nd ‘𝐶) ∈ V ∧ ⟨1o, (2nd ‘𝐶)⟩ ∈ V) → (inr‘(2nd ‘𝐶)) = ⟨1o, (2nd ‘𝐶)⟩)
3631, 32, 35sylancl 598 . . . . 5 (𝐶 ∈ ({1o} × 𝐵) → (inr‘(2nd ‘𝐶)) = ⟨1o, (2nd ‘𝐶)⟩)
3730, 36eqtr4d 2799 . . . 4 (𝐶 ∈ ({1o} × 𝐵) → 𝐶 = (inr‘(2nd ‘𝐶)))
38 fveq2 6885 . . . . 5 (𝑥 = (2nd ‘𝐶) → (inr‘𝑥) = (inr‘(2nd ‘𝐶)))
3938rspceeqv 3599 . . . 4 (((2nd ‘𝐶) ∈ 𝐵 ∧ 𝐶 = (inr‘(2nd ‘𝐶))) → ∃𝑥 ∈ 𝐵 𝐶 = (inr‘𝑥))
4023, 37, 39syl2anc 596 . . 3 (𝐶 ∈ ({1o} × 𝐵) → ∃𝑥 ∈ 𝐵 𝐶 = (inr‘𝑥))
4122, 40orim12i 922 . 2 ((𝐶 ∈ ({∅} × 𝐴) ∨ 𝐶 ∈ ({1o} × 𝐵)) → (∃𝑥 ∈ 𝐴 𝐶 = (inl‘𝑥) ∨ ∃𝑥 ∈ 𝐵 𝐶 = (inr‘𝑥)))
424, 41syl 18 1 (𝐶 ∈ (𝐴 ⊔ 𝐵) → (∃𝑥 ∈ 𝐴 𝐶 = (inl‘𝑥) ∨ ∃𝑥 ∈ 𝐵 𝐶 = (inr‘𝑥)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∨ wo 861   = wceq 1570   ∈ wcel 2145  ∃wrex 3087  Vcvv 3451   ∪ cun 3897  ∅c0 4279  {csn 4584  ⟨cop 4590   × cxp 5649  ‘cfv 6538  1st c1st 7999  2nd c2nd 8000  1oc1o 8469   ⊔ cdju 9979  inlcinl 9980  inrcinr 9981
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-pr 5391  ax-un 7751
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-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-br 5104  df-opab 5168  df-mpt 5187  df-id 5546  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-iota 6494  df-fun 6540  df-fv 6546  df-1st 8001  df-2nd 8002  df-dju 9982  df-inl 9983  df-inr 9984
This theorem is used by:  djuss  10001  djuun  10007  updjud  10015
  Copyright terms: Public domain W3C validator