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

Theorem otiunsndisj 5434
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 4928 . . . . . . . . . 10 (𝑠 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ↔ ∃𝑐 ∈ (𝑊 ∖ {𝑎})𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩})
2 otthg 5400 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑎𝑉𝐵𝑋𝑐 ∈ (𝑊 ∖ {𝑎})) → (⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩ ↔ (𝑎 = 𝑑𝐵 = 𝐵𝑐 = 𝑒)))
3 simp1 1135 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑎 = 𝑑𝐵 = 𝐵𝑐 = 𝑒) → 𝑎 = 𝑑)
42, 3syl6bi 252 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑎𝑉𝐵𝑋𝑐 ∈ (𝑊 ∖ {𝑎})) → (⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩ → 𝑎 = 𝑑))
54con3d 152 . . . . . . . . . . . . . . . . . . . . 21 ((𝑎𝑉𝐵𝑋𝑐 ∈ (𝑊 ∖ {𝑎})) → (¬ 𝑎 = 𝑑 → ¬ ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩))
653exp 1118 . . . . . . . . . . . . . . . . . . . 20 (𝑎𝑉 → (𝐵𝑋 → (𝑐 ∈ (𝑊 ∖ {𝑎}) → (¬ 𝑎 = 𝑑 → ¬ ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩))))
76impcom 408 . . . . . . . . . . . . . . . . . . 19 ((𝐵𝑋𝑎𝑉) → (𝑐 ∈ (𝑊 ∖ {𝑎}) → (¬ 𝑎 = 𝑑 → ¬ ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩)))
87com3r 87 . . . . . . . . . . . . . . . . . 18 𝑎 = 𝑑 → ((𝐵𝑋𝑎𝑉) → (𝑐 ∈ (𝑊 ∖ {𝑎}) → ¬ ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩)))
98imp31 418 . . . . . . . . . . . . . . . . 17 (((¬ 𝑎 = 𝑑 ∧ (𝐵𝑋𝑎𝑉)) ∧ 𝑐 ∈ (𝑊 ∖ {𝑎})) → ¬ ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩)
10 velsn 4577 . . . . . . . . . . . . . . . . . 18 (𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩} ↔ 𝑠 = ⟨𝑎, 𝐵, 𝑐⟩)
11 eqeq1 2742 . . . . . . . . . . . . . . . . . . 19 (𝑠 = ⟨𝑎, 𝐵, 𝑐⟩ → (𝑠 = ⟨𝑑, 𝐵, 𝑒⟩ ↔ ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩))
1211notbid 318 . . . . . . . . . . . . . . . . . 18 (𝑠 = ⟨𝑎, 𝐵, 𝑐⟩ → (¬ 𝑠 = ⟨𝑑, 𝐵, 𝑒⟩ ↔ ¬ ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩))
1310, 12sylbi 216 . . . . . . . . . . . . . . . . 17 (𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩} → (¬ 𝑠 = ⟨𝑑, 𝐵, 𝑒⟩ ↔ ¬ ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩))
149, 13syl5ibrcom 246 . . . . . . . . . . . . . . . 16 (((¬ 𝑎 = 𝑑 ∧ (𝐵𝑋𝑎𝑉)) ∧ 𝑐 ∈ (𝑊 ∖ {𝑎})) → (𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩} → ¬ 𝑠 = ⟨𝑑, 𝐵, 𝑒⟩))
1514imp 407 . . . . . . . . . . . . . . 15 ((((¬ 𝑎 = 𝑑 ∧ (𝐵𝑋𝑎𝑉)) ∧ 𝑐 ∈ (𝑊 ∖ {𝑎})) ∧ 𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩}) → ¬ 𝑠 = ⟨𝑑, 𝐵, 𝑒⟩)
16 velsn 4577 . . . . . . . . . . . . . . 15 (𝑠 ∈ {⟨𝑑, 𝐵, 𝑒⟩} ↔ 𝑠 = ⟨𝑑, 𝐵, 𝑒⟩)
1715, 16sylnibr 329 . . . . . . . . . . . . . 14 ((((¬ 𝑎 = 𝑑 ∧ (𝐵𝑋𝑎𝑉)) ∧ 𝑐 ∈ (𝑊 ∖ {𝑎})) ∧ 𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩}) → ¬ 𝑠 ∈ {⟨𝑑, 𝐵, 𝑒⟩})
1817adantr 481 . . . . . . . . . . . . 13 (((((¬ 𝑎 = 𝑑 ∧ (𝐵𝑋𝑎𝑉)) ∧ 𝑐 ∈ (𝑊 ∖ {𝑎})) ∧ 𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩}) ∧ 𝑒 ∈ (𝑊 ∖ {𝑑})) → ¬ 𝑠 ∈ {⟨𝑑, 𝐵, 𝑒⟩})
1918nrexdv 3198 . . . . . . . . . . . 12 ((((¬ 𝑎 = 𝑑 ∧ (𝐵𝑋𝑎𝑉)) ∧ 𝑐 ∈ (𝑊 ∖ {𝑎})) ∧ 𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩}) → ¬ ∃𝑒 ∈ (𝑊 ∖ {𝑑})𝑠 ∈ {⟨𝑑, 𝐵, 𝑒⟩})
20 eliun 4928 . . . . . . . . . . . 12 (𝑠 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩} ↔ ∃𝑒 ∈ (𝑊 ∖ {𝑑})𝑠 ∈ {⟨𝑑, 𝐵, 𝑒⟩})
2119, 20sylnibr 329 . . . . . . . . . . 11 ((((¬ 𝑎 = 𝑑 ∧ (𝐵𝑋𝑎𝑉)) ∧ 𝑐 ∈ (𝑊 ∖ {𝑎})) ∧ 𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩}) → ¬ 𝑠 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩})
2221rexlimdva2 3216 . . . . . . . . . 10 ((¬ 𝑎 = 𝑑 ∧ (𝐵𝑋𝑎𝑉)) → (∃𝑐 ∈ (𝑊 ∖ {𝑎})𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩} → ¬ 𝑠 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩}))
231, 22syl5bi 241 . . . . . . . . 9 ((¬ 𝑎 = 𝑑 ∧ (𝐵𝑋𝑎𝑉)) → (𝑠 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} → ¬ 𝑠 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩}))
2423ralrimiv 3102 . . . . . . . 8 ((¬ 𝑎 = 𝑑 ∧ (𝐵𝑋𝑎𝑉)) → ∀𝑠 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ¬ 𝑠 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩})
25 oteq3 4815 . . . . . . . . . . . . 13 (𝑐 = 𝑒 → ⟨𝑑, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩)
2625sneqd 4573 . . . . . . . . . . . 12 (𝑐 = 𝑒 → {⟨𝑑, 𝐵, 𝑐⟩} = {⟨𝑑, 𝐵, 𝑒⟩})
2726cbviunv 4970 . . . . . . . . . . 11 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩} = 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩}
2827eleq2i 2830 . . . . . . . . . 10 (𝑠 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩} ↔ 𝑠 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩})
2928notbii 320 . . . . . . . . 9 𝑠 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩} ↔ ¬ 𝑠 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩})
3029ralbii 3092 . . . . . . . 8 (∀𝑠 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ¬ 𝑠 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩} ↔ ∀𝑠 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ¬ 𝑠 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩})
3124, 30sylibr 233 . . . . . . 7 ((¬ 𝑎 = 𝑑 ∧ (𝐵𝑋𝑎𝑉)) → ∀𝑠 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ¬ 𝑠 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩})
32 disj 4381 . . . . . . 7 (( 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ∩ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩}) = ∅ ↔ ∀𝑠 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ¬ 𝑠 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩})
3331, 32sylibr 233 . . . . . 6 ((¬ 𝑎 = 𝑑 ∧ (𝐵𝑋𝑎𝑉)) → ( 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ∩ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩}) = ∅)
3433expcom 414 . . . . 5 ((𝐵𝑋𝑎𝑉) → (¬ 𝑎 = 𝑑 → ( 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ∩ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩}) = ∅))
3534orrd 860 . . . 4 ((𝐵𝑋𝑎𝑉) → (𝑎 = 𝑑 ∨ ( 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ∩ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩}) = ∅))
3635adantrr 714 . . 3 ((𝐵𝑋 ∧ (𝑎𝑉𝑑𝑉)) → (𝑎 = 𝑑 ∨ ( 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ∩ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩}) = ∅))
3736ralrimivva 3123 . 2 (𝐵𝑋 → ∀𝑎𝑉𝑑𝑉 (𝑎 = 𝑑 ∨ ( 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ∩ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩}) = ∅))
38 sneq 4571 . . . 4 (𝑎 = 𝑑 → {𝑎} = {𝑑})
3938difeq2d 4057 . . 3 (𝑎 = 𝑑 → (𝑊 ∖ {𝑎}) = (𝑊 ∖ {𝑑}))
40 oteq1 4813 . . . 4 (𝑎 = 𝑑 → ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑐⟩)
4140sneqd 4573 . . 3 (𝑎 = 𝑑 → {⟨𝑎, 𝐵, 𝑐⟩} = {⟨𝑑, 𝐵, 𝑐⟩})
4239, 41disjiunb 5063 . 2 (Disj 𝑎𝑉 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ↔ ∀𝑎𝑉𝑑𝑉 (𝑎 = 𝑑 ∨ ( 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ∩ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩}) = ∅))
4337, 42sylibr 233 1 (𝐵𝑋Disj 𝑎𝑉 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩})
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  wo 844  w3a 1086   = wceq 1539  wcel 2106  wral 3064  wrex 3065  cdif 3884  cin 3886  c0 4256  {csn 4561  cotp 4569   ciun 4924  Disj wdisj 5039
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-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352
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-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ral 3069  df-rex 3070  df-rmo 3071  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-ot 4570  df-iun 4926  df-disj 5040
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator