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

Theorem otiunsndisj 5496
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 4957 . . . . . . . . . 10 (𝑠 ∈ ∪ 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ↔ ∃𝑐 ∈ (𝑊 ∖ {𝑎})𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩})
2 otthg 5457 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑎 ∈ 𝑉 ∧ 𝐵 ∈ 𝑋 ∧ 𝑐 ∈ (𝑊 ∖ {𝑎})) → (⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩ ↔ (𝑎 = 𝑑 ∧ 𝐵 = 𝐵 ∧ 𝑐 = 𝑒)))
3 simp1 1154 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑎 = 𝑑 ∧ 𝐵 = 𝐵 ∧ 𝑐 = 𝑒) → 𝑎 = 𝑑)
42, 3biimtrdi 256 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑎 ∈ 𝑉 ∧ 𝐵 ∈ 𝑋 ∧ 𝑐 ∈ (𝑊 ∖ {𝑎})) → (⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩ → 𝑎 = 𝑑))
54con3d 153 . . . . . . . . . . . . . . . . . . . . 21 ((𝑎 ∈ 𝑉 ∧ 𝐵 ∈ 𝑋 ∧ 𝑐 ∈ (𝑊 ∖ {𝑎})) → (¬ 𝑎 = 𝑑 → ¬ ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩))
653exp 1137 . . . . . . . . . . . . . . . . . . . 20 (𝑎 ∈ 𝑉 → (𝐵 ∈ 𝑋 → (𝑐 ∈ (𝑊 ∖ {𝑎}) → (¬ 𝑎 = 𝑑 → ¬ ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩))))
76impcom 413 . . . . . . . . . . . . . . . . . . 19 ((𝐵 ∈ 𝑋 ∧ 𝑎 ∈ 𝑉) → (𝑐 ∈ (𝑊 ∖ {𝑎}) → (¬ 𝑎 = 𝑑 → ¬ ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩)))
87com3r 88 . . . . . . . . . . . . . . . . . 18 (¬ 𝑎 = 𝑑 → ((𝐵 ∈ 𝑋 ∧ 𝑎 ∈ 𝑉) → (𝑐 ∈ (𝑊 ∖ {𝑎}) → ¬ ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩)))
98imp31 423 . . . . . . . . . . . . . . . . 17 (((¬ 𝑎 = 𝑑 ∧ (𝐵 ∈ 𝑋 ∧ 𝑎 ∈ 𝑉)) ∧ 𝑐 ∈ (𝑊 ∖ {𝑎})) → ¬ ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩)
10 velsn 4599 . . . . . . . . . . . . . . . . . 18 (𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩} ↔ 𝑠 = ⟨𝑎, 𝐵, 𝑐⟩)
11 eqeq1 2767 . . . . . . . . . . . . . . . . . . 19 (𝑠 = ⟨𝑎, 𝐵, 𝑐⟩ → (𝑠 = ⟨𝑑, 𝐵, 𝑒⟩ ↔ ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩))
1211notbid 321 . . . . . . . . . . . . . . . . . 18 (𝑠 = ⟨𝑎, 𝐵, 𝑐⟩ → (¬ 𝑠 = ⟨𝑑, 𝐵, 𝑒⟩ ↔ ¬ ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩))
1310, 12sylbi 220 . . . . . . . . . . . . . . . . 17 (𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩} → (¬ 𝑠 = ⟨𝑑, 𝐵, 𝑒⟩ ↔ ¬ ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩))
149, 13syl5ibrcom 250 . . . . . . . . . . . . . . . 16 (((¬ 𝑎 = 𝑑 ∧ (𝐵 ∈ 𝑋 ∧ 𝑎 ∈ 𝑉)) ∧ 𝑐 ∈ (𝑊 ∖ {𝑎})) → (𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩} → ¬ 𝑠 = ⟨𝑑, 𝐵, 𝑒⟩))
1514imp 412 . . . . . . . . . . . . . . 15 ((((¬ 𝑎 = 𝑑 ∧ (𝐵 ∈ 𝑋 ∧ 𝑎 ∈ 𝑉)) ∧ 𝑐 ∈ (𝑊 ∖ {𝑎})) ∧ 𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩}) → ¬ 𝑠 = ⟨𝑑, 𝐵, 𝑒⟩)
16 velsn 4599 . . . . . . . . . . . . . . 15 (𝑠 ∈ {⟨𝑑, 𝐵, 𝑒⟩} ↔ 𝑠 = ⟨𝑑, 𝐵, 𝑒⟩)
1715, 16sylnibr 332 . . . . . . . . . . . . . 14 ((((¬ 𝑎 = 𝑑 ∧ (𝐵 ∈ 𝑋 ∧ 𝑎 ∈ 𝑉)) ∧ 𝑐 ∈ (𝑊 ∖ {𝑎})) ∧ 𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩}) → ¬ 𝑠 ∈ {⟨𝑑, 𝐵, 𝑒⟩})
1817adantr 486 . . . . . . . . . . . . 13 (((((¬ 𝑎 = 𝑑 ∧ (𝐵 ∈ 𝑋 ∧ 𝑎 ∈ 𝑉)) ∧ 𝑐 ∈ (𝑊 ∖ {𝑎})) ∧ 𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩}) ∧ 𝑒 ∈ (𝑊 ∖ {𝑑})) → ¬ 𝑠 ∈ {⟨𝑑, 𝐵, 𝑒⟩})
1918nrexdv 3160 . . . . . . . . . . . 12 ((((¬ 𝑎 = 𝑑 ∧ (𝐵 ∈ 𝑋 ∧ 𝑎 ∈ 𝑉)) ∧ 𝑐 ∈ (𝑊 ∖ {𝑎})) ∧ 𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩}) → ¬ ∃𝑒 ∈ (𝑊 ∖ {𝑑})𝑠 ∈ {⟨𝑑, 𝐵, 𝑒⟩})
20 eliun 4957 . . . . . . . . . . . 12 (𝑠 ∈ ∪ 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩} ↔ ∃𝑒 ∈ (𝑊 ∖ {𝑑})𝑠 ∈ {⟨𝑑, 𝐵, 𝑒⟩})
2119, 20sylnibr 332 . . . . . . . . . . 11 ((((¬ 𝑎 = 𝑑 ∧ (𝐵 ∈ 𝑋 ∧ 𝑎 ∈ 𝑉)) ∧ 𝑐 ∈ (𝑊 ∖ {𝑎})) ∧ 𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩}) → ¬ 𝑠 ∈ ∪ 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩})
2221rexlimdva2 3168 . . . . . . . . . 10 ((¬ 𝑎 = 𝑑 ∧ (𝐵 ∈ 𝑋 ∧ 𝑎 ∈ 𝑉)) → (∃𝑐 ∈ (𝑊 ∖ {𝑎})𝑠 ∈ {⟨𝑎, 𝐵, 𝑐⟩} → ¬ 𝑠 ∈ ∪ 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩}))
231, 22biimtrid 245 . . . . . . . . 9 ((¬ 𝑎 = 𝑑 ∧ (𝐵 ∈ 𝑋 ∧ 𝑎 ∈ 𝑉)) → (𝑠 ∈ ∪ 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} → ¬ 𝑠 ∈ ∪ 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩}))
2423ralrimiv 3156 . . . . . . . 8 ((¬ 𝑎 = 𝑑 ∧ (𝐵 ∈ 𝑋 ∧ 𝑎 ∈ 𝑉)) → ∀𝑠 ∈ ∪ 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ¬ 𝑠 ∈ ∪ 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩})
25 oteq3 4864 . . . . . . . . . . . . 13 (𝑐 = 𝑒 → ⟨𝑑, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑒⟩)
2625sneqd 4595 . . . . . . . . . . . 12 (𝑐 = 𝑒 → {⟨𝑑, 𝐵, 𝑐⟩} = {⟨𝑑, 𝐵, 𝑒⟩})
2726cbviunv 4999 . . . . . . . . . . 11 ∪ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩} = ∪ 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩}
2827eleq2i 2855 . . . . . . . . . 10 (𝑠 ∈ ∪ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩} ↔ 𝑠 ∈ ∪ 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩})
2928notbii 323 . . . . . . . . 9 (¬ 𝑠 ∈ ∪ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩} ↔ ¬ 𝑠 ∈ ∪ 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩})
3029ralbii 3111 . . . . . . . 8 (∀𝑠 ∈ ∪ 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ¬ 𝑠 ∈ ∪ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩} ↔ ∀𝑠 ∈ ∪ 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ¬ 𝑠 ∈ ∪ 𝑒 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑒⟩})
3124, 30sylibr 237 . . . . . . 7 ((¬ 𝑎 = 𝑑 ∧ (𝐵 ∈ 𝑋 ∧ 𝑎 ∈ 𝑉)) → ∀𝑠 ∈ ∪ 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ¬ 𝑠 ∈ ∪ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩})
32 disj 4405 . . . . . . 7 ((∪ 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ∩ ∪ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩}) = ∅ ↔ ∀𝑠 ∈ ∪ 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ¬ 𝑠 ∈ ∪ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩})
3331, 32sylibr 237 . . . . . 6 ((¬ 𝑎 = 𝑑 ∧ (𝐵 ∈ 𝑋 ∧ 𝑎 ∈ 𝑉)) → (∪ 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ∩ ∪ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩}) = ∅)
3433expcom 419 . . . . 5 ((𝐵 ∈ 𝑋 ∧ 𝑎 ∈ 𝑉) → (¬ 𝑎 = 𝑑 → (∪ 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ∩ ∪ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩}) = ∅))
3534orrd 877 . . . 4 ((𝐵 ∈ 𝑋 ∧ 𝑎 ∈ 𝑉) → (𝑎 = 𝑑 ∨ (∪ 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ∩ ∪ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩}) = ∅))
3635adantrr 730 . . 3 ((𝐵 ∈ 𝑋 ∧ (𝑎 ∈ 𝑉 ∧ 𝑑 ∈ 𝑉)) → (𝑎 = 𝑑 ∨ (∪ 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ∩ ∪ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩}) = ∅))
3736ralrimivva 3208 . 2 (𝐵 ∈ 𝑋 → ∀𝑎 ∈ 𝑉 ∀𝑑 ∈ 𝑉 (𝑎 = 𝑑 ∨ (∪ 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ∩ ∪ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩}) = ∅))
38 sneq 4593 . . . 4 (𝑎 = 𝑑 → {𝑎} = {𝑑})
3938difeq2d 4065 . . 3 (𝑎 = 𝑑 → (𝑊 ∖ {𝑎}) = (𝑊 ∖ {𝑑}))
40 oteq1 4862 . . . 4 (𝑎 = 𝑑 → ⟨𝑎, 𝐵, 𝑐⟩ = ⟨𝑑, 𝐵, 𝑐⟩)
4140sneqd 4595 . . 3 (𝑎 = 𝑑 → {⟨𝑎, 𝐵, 𝑐⟩} = {⟨𝑑, 𝐵, 𝑐⟩})
4239, 41disjiunb 5095 . 2 (Disj 𝑎 ∈ 𝑉 ∪ 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ↔ ∀𝑎 ∈ 𝑉 ∀𝑑 ∈ 𝑉 (𝑎 = 𝑑 ∨ (∪ 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩} ∩ ∪ 𝑐 ∈ (𝑊 ∖ {𝑑}){⟨𝑑, 𝐵, 𝑐⟩}) = ∅))
4337, 42sylibr 237 1 (𝐵 ∈ 𝑋 → Disj 𝑎 ∈ 𝑉 ∪ 𝑐 ∈ (𝑊 ∖ {𝑎}){⟨𝑎, 𝐵, 𝑐⟩})
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   ∧ wa 401   ∨ wo 861   ∧ w3a 1103   = wceq 1569   ∈ wcel 2146  ∀wral 3079  ∃wrex 3089   ∖ cdif 4047   ∩ cin 4091  ∅c0 4280  {csn 4587  ⟨cotp 4860  ∪ ciun 4953  Disj wdisj 5072
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1944  ax-6 2001  ax-7 2042  ax-8 2148  ax-9 2156  ax-11 2196  ax-ext 2735  ax-sep 5251  ax-pr 5394
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-sb 2101  df-mo 2567  df-clab 2742  df-cleq 2755  df-clel 2838  df-ral 3080  df-rex 3090  df-rmo 3368  df-rab 3416  df-v 3455  df-ss 3900  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485  df-sn 4588  df-pr 4590  df-op 4838  df-ot 4861  df-iun 4955  df-disj 5073
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator