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

Theorem otiunsndisj 5428
Description: The union of singletons consisting of ordered triples which have distinct first and third components are disjoint. (Contributed by Alexander van der Vekens, 10-Mar-2018.)
Assertion
Ref Expression
otiunsndisj (𝐵𝑋Disj 𝑎𝑉 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩})
Distinct variable groups:   𝐵,𝑎,𝑐   𝑉,𝑎,𝑐   𝑊,𝑎,𝑐   𝑋,𝑎,𝑐

Proof of Theorem otiunsndisj
Dummy variables 𝑑 𝑒 𝑠 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eliun 4925 . . . . . . . . . 10 (𝑠 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ↔ ∃𝑐 ∈ (𝑊 ∖ {𝑎})𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩})
2 otthg 5394 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑎𝑉𝐵𝑋𝑐 ∈ (𝑊 ∖ {𝑎})) → (⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩ ↔ (𝑎 = 𝑑𝐵 = 𝐵𝑐 = 𝑒)))
3 simp1 1134 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑎 = 𝑑𝐵 = 𝐵𝑐 = 𝑒) → 𝑎 = 𝑑)
42, 3syl6bi 252 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑎𝑉𝐵𝑋𝑐 ∈ (𝑊 ∖ {𝑎})) → (⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩ → 𝑎 = 𝑑))
54con3d 152 . . . . . . . . . . . . . . . . . . . . 21 ((𝑎𝑉𝐵𝑋𝑐 ∈ (𝑊 ∖ {𝑎})) → (¬ 𝑎 = 𝑑 → ¬ ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩))
653exp 1117 . . . . . . . . . . . . . . . . . . . 20 (𝑎𝑉 → (𝐵𝑋 → (𝑐 ∈ (𝑊 ∖ {𝑎}) → (¬ 𝑎 = 𝑑 → ¬ ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩))))
76impcom 407 . . . . . . . . . . . . . . . . . . 19 ((𝐵𝑋𝑎𝑉) → (𝑐 ∈ (𝑊 ∖ {𝑎}) → (¬ 𝑎 = 𝑑 → ¬ ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩)))
87com3r 87 . . . . . . . . . . . . . . . . . 18 𝑎 = 𝑑 → ((𝐵𝑋𝑎𝑉) → (𝑐 ∈ (𝑊 ∖ {𝑎}) → ¬ ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩)))
98imp31 417 . . . . . . . . . . . . . . . . 17 (((¬ 𝑎 = 𝑑 ∧ (𝐵𝑋𝑎𝑉)) ∧ 𝑐 ∈ (𝑊 ∖ {𝑎})) → ¬ ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩)
10 velsn 4574 . . . . . . . . . . . . . . . . . 18 (𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩} ↔ 𝑠 = ⟨𝑎, 𝐵, 𝑐⟩)
11 eqeq1 2742 . . . . . . . . . . . . . . . . . . 19 (𝑠 = ⟨𝑎, 𝐵, 𝑐⟩ → (𝑠 = ⟨𝑑, 𝐵, 𝑒⟩ ↔ ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩))
1211notbid 317 . . . . . . . . . . . . . . . . . 18 (𝑠 = ⟨𝑎, 𝐵, 𝑐⟩ → (¬ 𝑠 = ⟨𝑑, 𝐵, 𝑒⟩ ↔ ¬ ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩))
1310, 12sylbi 216 . . . . . . . . . . . . . . . . 17 (𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩} → (¬ 𝑠 = ⟨𝑑, 𝐵, 𝑒⟩ ↔ ¬ ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩))
149, 13syl5ibrcom 246 . . . . . . . . . . . . . . . 16 (((¬ 𝑎 = 𝑑 ∧ (𝐵𝑋𝑎𝑉)) ∧ 𝑐 ∈ (𝑊 ∖ {𝑎})) → (𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩} → ¬ 𝑠 = ⟨𝑑, 𝐵, 𝑒⟩))
1514imp 406 . . . . . . . . . . . . . . 15 ((((¬ 𝑎 = 𝑑 ∧ (𝐵𝑋𝑎𝑉)) ∧ 𝑐 ∈ (𝑊 ∖ {𝑎})) ∧ 𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩}) → ¬ 𝑠 = ⟨𝑑, 𝐵, 𝑒⟩)
16 velsn 4574 . . . . . . . . . . . . . . 15 (𝑠 ∈ {⟨𝑑, 𝐵, 𝑒⟩} ↔ 𝑠 = ⟨𝑑, 𝐵, 𝑒⟩)
1715, 16sylnibr 328 . . . . . . . . . . . . . 14 ((((¬ 𝑎 = 𝑑 ∧ (𝐵𝑋𝑎𝑉)) ∧ 𝑐 ∈ (𝑊 ∖ {𝑎})) ∧ 𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩}) → ¬ 𝑠 ∈ {⟨𝑑, 𝐵, 𝑒⟩})
1817adantr 480 . . . . . . . . . . . . 13 (((((¬ 𝑎 = 𝑑 ∧ (𝐵𝑋𝑎𝑉)) ∧ 𝑐 ∈ (𝑊 ∖ {𝑎})) ∧ 𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩}) ∧ 𝑒 ∈ (𝑊 ∖ {𝑑})) → ¬ 𝑠 ∈ {⟨𝑑, 𝐵, 𝑒⟩})
1918nrexdv 3197 . . . . . . . . . . . 12 ((((¬ 𝑎 = 𝑑 ∧ (𝐵𝑋𝑎𝑉)) ∧ 𝑐 ∈ (𝑊 ∖ {𝑎})) ∧ 𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩}) → ¬ ∃𝑒 ∈ (𝑊 ∖ {𝑑})𝑠 ∈ {⟨𝑑, 𝐵, 𝑒⟩})
20 eliun 4925 . . . . . . . . . . . 12 (𝑠 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩} ↔ ∃𝑒 ∈ (𝑊 ∖ {𝑑})𝑠 ∈ {⟨𝑑, 𝐵, 𝑒⟩})
2119, 20sylnibr 328 . . . . . . . . . . 11 ((((¬ 𝑎 = 𝑑 ∧ (𝐵𝑋𝑎𝑉)) ∧ 𝑐 ∈ (𝑊 ∖ {𝑎})) ∧ 𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩}) → ¬ 𝑠 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩})
2221rexlimdva2 3215 . . . . . . . . . 10 ((¬ 𝑎 = 𝑑 ∧ (𝐵𝑋𝑎𝑉)) → (∃𝑐 ∈ (𝑊 ∖ {𝑎})𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩} → ¬ 𝑠 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩}))
231, 22syl5bi 241 . . . . . . . . 9 ((¬ 𝑎 = 𝑑 ∧ (𝐵𝑋𝑎𝑉)) → (𝑠 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} → ¬ 𝑠 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩}))
2423ralrimiv 3106 . . . . . . . 8 ((¬ 𝑎 = 𝑑 ∧ (𝐵𝑋𝑎𝑉)) → ∀𝑠 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ¬ 𝑠 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩})
25 oteq3 4812 . . . . . . . . . . . . 13 (𝑐 = 𝑒 → ⟨𝑑, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩)
2625sneqd 4570 . . . . . . . . . . . 12 (𝑐 = 𝑒 → {⟨𝑑, 𝐵, 𝑐⟩} = {⟨𝑑, 𝐵, 𝑒⟩})
2726cbviunv 4966 . . . . . . . . . . 11 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩} = 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩}
2827eleq2i 2830 . . . . . . . . . 10 (𝑠 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩} ↔ 𝑠 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩})
2928notbii 319 . . . . . . . . 9 𝑠 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩} ↔ ¬ 𝑠 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩})
3029ralbii 3090 . . . . . . . 8 (∀𝑠 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ¬ 𝑠 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩} ↔ ∀𝑠 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ¬ 𝑠 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩})
3124, 30sylibr 233 . . . . . . 7 ((¬ 𝑎 = 𝑑 ∧ (𝐵𝑋𝑎𝑉)) → ∀𝑠 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ¬ 𝑠 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩})
32 disj 4378 . . . . . . 7 (( 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ∩ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩}) = ∅ ↔ ∀𝑠 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ¬ 𝑠 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩})
3331, 32sylibr 233 . . . . . 6 ((¬ 𝑎 = 𝑑 ∧ (𝐵𝑋𝑎𝑉)) → ( 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ∩ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩}) = ∅)
3433expcom 413 . . . . 5 ((𝐵𝑋𝑎𝑉) → (¬ 𝑎 = 𝑑 → ( 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ∩ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩}) = ∅))
3534orrd 859 . . . 4 ((𝐵𝑋𝑎𝑉) → (𝑎 = 𝑑 ∨ ( 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ∩ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩}) = ∅))
3635adantrr 713 . . 3 ((𝐵𝑋 ∧ (𝑎𝑉𝑑𝑉)) → (𝑎 = 𝑑 ∨ ( 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ∩ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩}) = ∅))
3736ralrimivva 3114 . 2 (𝐵𝑋 → ∀𝑎𝑉𝑑𝑉 (𝑎 = 𝑑 ∨ ( 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ∩ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩}) = ∅))
38 sneq 4568 . . . 4 (𝑎 = 𝑑 → {𝑎} = {𝑑})
3938difeq2d 4053 . . 3 (𝑎 = 𝑑 → (𝑊 ∖ {𝑎}) = (𝑊 ∖ {𝑑}))
40 oteq1 4810 . . . 4 (𝑎 = 𝑑 → ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑐⟩)
4140sneqd 4570 . . 3 (𝑎 = 𝑑 → {⟨𝑎, 𝐵, 𝑐⟩} = {⟨𝑑, 𝐵, 𝑐⟩})
4239, 41disjiunb 5059 . 2 (Disj 𝑎𝑉 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ↔ ∀𝑎𝑉𝑑𝑉 (𝑎 = 𝑑 ∨ ( 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ∩ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩}) = ∅))
4337, 42sylibr 233 1 (𝐵𝑋Disj 𝑎𝑉 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩})
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wo 843  w3a 1085   = wceq 1539  wcel 2108  wral 3063  wrex 3064  cdif 3880  cin 3882  c0 4253  {csn 4558  cotp 4566   ciun 4921  Disj wdisj 5035
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ral 3068  df-rex 3069  df-rmo 3071  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-ot 4567  df-iun 4923  df-disj 5036
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator