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

Theorem kmlem2 9838
Description: Lemma for 5-quantifier AC of Kurt Maes, Th. 4, part of 3 => 4. (Contributed by NM, 25-Mar-2004.)
Assertion
Ref Expression
kmlem2 (∃𝑦𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦)) ↔ ∃𝑦𝑦𝑥 ∧ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦))))
Distinct variable groups:   𝑥,𝑦,𝜑   𝑥,𝑤,𝑦,𝑧
Allowed substitution hints:   𝜑(𝑧,𝑤)

Proof of Theorem kmlem2
Dummy variables 𝑣 𝑢 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ineq2 4137 . . . . . . . 8 (𝑦 = 𝑣 → (𝑧𝑦) = (𝑧𝑣))
21eleq2d 2824 . . . . . . 7 (𝑦 = 𝑣 → (𝑤 ∈ (𝑧𝑦) ↔ 𝑤 ∈ (𝑧𝑣)))
32eubidv 2586 . . . . . 6 (𝑦 = 𝑣 → (∃!𝑤 𝑤 ∈ (𝑧𝑦) ↔ ∃!𝑤 𝑤 ∈ (𝑧𝑣)))
43imbi2d 340 . . . . 5 (𝑦 = 𝑣 → ((𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦)) ↔ (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑣))))
54ralbidv 3120 . . . 4 (𝑦 = 𝑣 → (∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦)) ↔ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑣))))
65cbvexvw 2041 . . 3 (∃𝑦𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦)) ↔ ∃𝑣𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑣)))
7 indi 4204 . . . . . . . . . . . 12 (𝑧 ∩ (𝑣 ∪ {𝑢})) = ((𝑧𝑣) ∪ (𝑧 ∩ {𝑢}))
8 elssuni 4868 . . . . . . . . . . . . . . . . 17 (𝑧𝑥𝑧 𝑥)
98ssneld 3919 . . . . . . . . . . . . . . . 16 (𝑧𝑥 → (¬ 𝑢 𝑥 → ¬ 𝑢𝑧))
10 disjsn 4644 . . . . . . . . . . . . . . . 16 ((𝑧 ∩ {𝑢}) = ∅ ↔ ¬ 𝑢𝑧)
119, 10syl6ibr 251 . . . . . . . . . . . . . . 15 (𝑧𝑥 → (¬ 𝑢 𝑥 → (𝑧 ∩ {𝑢}) = ∅))
1211impcom 407 . . . . . . . . . . . . . 14 ((¬ 𝑢 𝑥𝑧𝑥) → (𝑧 ∩ {𝑢}) = ∅)
1312uneq2d 4093 . . . . . . . . . . . . 13 ((¬ 𝑢 𝑥𝑧𝑥) → ((𝑧𝑣) ∪ (𝑧 ∩ {𝑢})) = ((𝑧𝑣) ∪ ∅))
14 un0 4321 . . . . . . . . . . . . 13 ((𝑧𝑣) ∪ ∅) = (𝑧𝑣)
1513, 14eqtrdi 2795 . . . . . . . . . . . 12 ((¬ 𝑢 𝑥𝑧𝑥) → ((𝑧𝑣) ∪ (𝑧 ∩ {𝑢})) = (𝑧𝑣))
167, 15eqtr2id 2792 . . . . . . . . . . 11 ((¬ 𝑢 𝑥𝑧𝑥) → (𝑧𝑣) = (𝑧 ∩ (𝑣 ∪ {𝑢})))
1716eleq2d 2824 . . . . . . . . . 10 ((¬ 𝑢 𝑥𝑧𝑥) → (𝑤 ∈ (𝑧𝑣) ↔ 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢}))))
1817eubidv 2586 . . . . . . . . 9 ((¬ 𝑢 𝑥𝑧𝑥) → (∃!𝑤 𝑤 ∈ (𝑧𝑣) ↔ ∃!𝑤 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢}))))
1918imbi2d 340 . . . . . . . 8 ((¬ 𝑢 𝑥𝑧𝑥) → ((𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑣)) ↔ (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢})))))
2019ralbidva 3119 . . . . . . 7 𝑢 𝑥 → (∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑣)) ↔ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢})))))
21 vsnid 4595 . . . . . . . . . . . 12 𝑢 ∈ {𝑢}
2221olci 862 . . . . . . . . . . 11 (𝑢𝑣𝑢 ∈ {𝑢})
23 elun 4079 . . . . . . . . . . 11 (𝑢 ∈ (𝑣 ∪ {𝑢}) ↔ (𝑢𝑣𝑢 ∈ {𝑢}))
2422, 23mpbir 230 . . . . . . . . . 10 𝑢 ∈ (𝑣 ∪ {𝑢})
25 elssuni 4868 . . . . . . . . . . 11 ((𝑣 ∪ {𝑢}) ∈ 𝑥 → (𝑣 ∪ {𝑢}) ⊆ 𝑥)
2625sseld 3916 . . . . . . . . . 10 ((𝑣 ∪ {𝑢}) ∈ 𝑥 → (𝑢 ∈ (𝑣 ∪ {𝑢}) → 𝑢 𝑥))
2724, 26mpi 20 . . . . . . . . 9 ((𝑣 ∪ {𝑢}) ∈ 𝑥𝑢 𝑥)
2827con3i 154 . . . . . . . 8 𝑢 𝑥 → ¬ (𝑣 ∪ {𝑢}) ∈ 𝑥)
2928biantrurd 532 . . . . . . 7 𝑢 𝑥 → (∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢}))) ↔ (¬ (𝑣 ∪ {𝑢}) ∈ 𝑥 ∧ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢}))))))
3020, 29bitrd 278 . . . . . 6 𝑢 𝑥 → (∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑣)) ↔ (¬ (𝑣 ∪ {𝑢}) ∈ 𝑥 ∧ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢}))))))
31 vex 3426 . . . . . . . 8 𝑣 ∈ V
32 snex 5349 . . . . . . . 8 {𝑢} ∈ V
3331, 32unex 7574 . . . . . . 7 (𝑣 ∪ {𝑢}) ∈ V
34 eleq1 2826 . . . . . . . . 9 (𝑦 = (𝑣 ∪ {𝑢}) → (𝑦𝑥 ↔ (𝑣 ∪ {𝑢}) ∈ 𝑥))
3534notbid 317 . . . . . . . 8 (𝑦 = (𝑣 ∪ {𝑢}) → (¬ 𝑦𝑥 ↔ ¬ (𝑣 ∪ {𝑢}) ∈ 𝑥))
36 ineq2 4137 . . . . . . . . . . . 12 (𝑦 = (𝑣 ∪ {𝑢}) → (𝑧𝑦) = (𝑧 ∩ (𝑣 ∪ {𝑢})))
3736eleq2d 2824 . . . . . . . . . . 11 (𝑦 = (𝑣 ∪ {𝑢}) → (𝑤 ∈ (𝑧𝑦) ↔ 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢}))))
3837eubidv 2586 . . . . . . . . . 10 (𝑦 = (𝑣 ∪ {𝑢}) → (∃!𝑤 𝑤 ∈ (𝑧𝑦) ↔ ∃!𝑤 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢}))))
3938imbi2d 340 . . . . . . . . 9 (𝑦 = (𝑣 ∪ {𝑢}) → ((𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦)) ↔ (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢})))))
4039ralbidv 3120 . . . . . . . 8 (𝑦 = (𝑣 ∪ {𝑢}) → (∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦)) ↔ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢})))))
4135, 40anbi12d 630 . . . . . . 7 (𝑦 = (𝑣 ∪ {𝑢}) → ((¬ 𝑦𝑥 ∧ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦))) ↔ (¬ (𝑣 ∪ {𝑢}) ∈ 𝑥 ∧ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢}))))))
4233, 41spcev 3535 . . . . . 6 ((¬ (𝑣 ∪ {𝑢}) ∈ 𝑥 ∧ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢})))) → ∃𝑦𝑦𝑥 ∧ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦))))
4330, 42syl6bi 252 . . . . 5 𝑢 𝑥 → (∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑣)) → ∃𝑦𝑦𝑥 ∧ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦)))))
44 vuniex 7570 . . . . . 6 𝑥 ∈ V
45 eleq2 2827 . . . . . . . 8 (𝑦 = 𝑥 → (𝑢𝑦𝑢 𝑥))
4645notbid 317 . . . . . . 7 (𝑦 = 𝑥 → (¬ 𝑢𝑦 ↔ ¬ 𝑢 𝑥))
4746exbidv 1925 . . . . . 6 (𝑦 = 𝑥 → (∃𝑢 ¬ 𝑢𝑦 ↔ ∃𝑢 ¬ 𝑢 𝑥))
48 nalset 5232 . . . . . . . 8 ¬ ∃𝑦𝑢 𝑢𝑦
49 alexn 1848 . . . . . . . 8 (∀𝑦𝑢 ¬ 𝑢𝑦 ↔ ¬ ∃𝑦𝑢 𝑢𝑦)
5048, 49mpbir 230 . . . . . . 7 𝑦𝑢 ¬ 𝑢𝑦
5150spi 2179 . . . . . 6 𝑢 ¬ 𝑢𝑦
5244, 47, 51vtocl 3488 . . . . 5 𝑢 ¬ 𝑢 𝑥
5343, 52exlimiiv 1935 . . . 4 (∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑣)) → ∃𝑦𝑦𝑥 ∧ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦))))
5453exlimiv 1934 . . 3 (∃𝑣𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑣)) → ∃𝑦𝑦𝑥 ∧ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦))))
556, 54sylbi 216 . 2 (∃𝑦𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦)) → ∃𝑦𝑦𝑥 ∧ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦))))
56 exsimpr 1873 . 2 (∃𝑦𝑦𝑥 ∧ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦))) → ∃𝑦𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦)))
5755, 56impbii 208 1 (∃𝑦𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦)) ↔ ∃𝑦𝑦𝑥 ∧ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wo 843  wal 1537   = wceq 1539  wex 1783  wcel 2108  ∃!weu 2568  wral 3063  cun 3881  cin 3882  c0 4253  {csn 4558   cuni 4836
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-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-tru 1542  df-fal 1552  df-ex 1784  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-ral 3068  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-sn 4559  df-pr 4561  df-uni 4837
This theorem is referenced by:  kmlem8  9844
  Copyright terms: Public domain W3C validator