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

Theorem kmlem2 9907
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 4140 . . . . . . . 8 (𝑦 = 𝑣 → (𝑧𝑦) = (𝑧𝑣))
21eleq2d 2824 . . . . . . 7 (𝑦 = 𝑣 → (𝑤 ∈ (𝑧𝑦) ↔ 𝑤 ∈ (𝑧𝑣)))
32eubidv 2586 . . . . . 6 (𝑦 = 𝑣 → (∃!𝑤 𝑤 ∈ (𝑧𝑦) ↔ ∃!𝑤 𝑤 ∈ (𝑧𝑣)))
43imbi2d 341 . . . . 5 (𝑦 = 𝑣 → ((𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦)) ↔ (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑣))))
54ralbidv 3112 . . . 4 (𝑦 = 𝑣 → (∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦)) ↔ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑣))))
65cbvexvw 2040 . . 3 (∃𝑦𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦)) ↔ ∃𝑣𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑣)))
7 indi 4207 . . . . . . . . . . . 12 (𝑧 ∩ (𝑣 ∪ {𝑢})) = ((𝑧𝑣) ∪ (𝑧 ∩ {𝑢}))
8 elssuni 4871 . . . . . . . . . . . . . . . . 17 (𝑧𝑥𝑧 𝑥)
98ssneld 3923 . . . . . . . . . . . . . . . 16 (𝑧𝑥 → (¬ 𝑢 𝑥 → ¬ 𝑢𝑧))
10 disjsn 4647 . . . . . . . . . . . . . . . 16 ((𝑧 ∩ {𝑢}) = ∅ ↔ ¬ 𝑢𝑧)
119, 10syl6ibr 251 . . . . . . . . . . . . . . 15 (𝑧𝑥 → (¬ 𝑢 𝑥 → (𝑧 ∩ {𝑢}) = ∅))
1211impcom 408 . . . . . . . . . . . . . 14 ((¬ 𝑢 𝑥𝑧𝑥) → (𝑧 ∩ {𝑢}) = ∅)
1312uneq2d 4097 . . . . . . . . . . . . 13 ((¬ 𝑢 𝑥𝑧𝑥) → ((𝑧𝑣) ∪ (𝑧 ∩ {𝑢})) = ((𝑧𝑣) ∪ ∅))
14 un0 4324 . . . . . . . . . . . . 13 ((𝑧𝑣) ∪ ∅) = (𝑧𝑣)
1513, 14eqtrdi 2794 . . . . . . . . . . . 12 ((¬ 𝑢 𝑥𝑧𝑥) → ((𝑧𝑣) ∪ (𝑧 ∩ {𝑢})) = (𝑧𝑣))
167, 15eqtr2id 2791 . . . . . . . . . . 11 ((¬ 𝑢 𝑥𝑧𝑥) → (𝑧𝑣) = (𝑧 ∩ (𝑣 ∪ {𝑢})))
1716eleq2d 2824 . . . . . . . . . 10 ((¬ 𝑢 𝑥𝑧𝑥) → (𝑤 ∈ (𝑧𝑣) ↔ 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢}))))
1817eubidv 2586 . . . . . . . . 9 ((¬ 𝑢 𝑥𝑧𝑥) → (∃!𝑤 𝑤 ∈ (𝑧𝑣) ↔ ∃!𝑤 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢}))))
1918imbi2d 341 . . . . . . . 8 ((¬ 𝑢 𝑥𝑧𝑥) → ((𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑣)) ↔ (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢})))))
2019ralbidva 3111 . . . . . . 7 𝑢 𝑥 → (∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑣)) ↔ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢})))))
21 vsnid 4598 . . . . . . . . . . . 12 𝑢 ∈ {𝑢}
2221olci 863 . . . . . . . . . . 11 (𝑢𝑣𝑢 ∈ {𝑢})
23 elun 4083 . . . . . . . . . . 11 (𝑢 ∈ (𝑣 ∪ {𝑢}) ↔ (𝑢𝑣𝑢 ∈ {𝑢}))
2422, 23mpbir 230 . . . . . . . . . 10 𝑢 ∈ (𝑣 ∪ {𝑢})
25 elssuni 4871 . . . . . . . . . . 11 ((𝑣 ∪ {𝑢}) ∈ 𝑥 → (𝑣 ∪ {𝑢}) ⊆ 𝑥)
2625sseld 3920 . . . . . . . . . 10 ((𝑣 ∪ {𝑢}) ∈ 𝑥 → (𝑢 ∈ (𝑣 ∪ {𝑢}) → 𝑢 𝑥))
2724, 26mpi 20 . . . . . . . . 9 ((𝑣 ∪ {𝑢}) ∈ 𝑥𝑢 𝑥)
2827con3i 154 . . . . . . . 8 𝑢 𝑥 → ¬ (𝑣 ∪ {𝑢}) ∈ 𝑥)
2928biantrurd 533 . . . . . . 7 𝑢 𝑥 → (∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢}))) ↔ (¬ (𝑣 ∪ {𝑢}) ∈ 𝑥 ∧ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢}))))))
3020, 29bitrd 278 . . . . . 6 𝑢 𝑥 → (∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑣)) ↔ (¬ (𝑣 ∪ {𝑢}) ∈ 𝑥 ∧ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢}))))))
31 vex 3436 . . . . . . . 8 𝑣 ∈ V
32 snex 5354 . . . . . . . 8 {𝑢} ∈ V
3331, 32unex 7596 . . . . . . 7 (𝑣 ∪ {𝑢}) ∈ V
34 eleq1 2826 . . . . . . . . 9 (𝑦 = (𝑣 ∪ {𝑢}) → (𝑦𝑥 ↔ (𝑣 ∪ {𝑢}) ∈ 𝑥))
3534notbid 318 . . . . . . . 8 (𝑦 = (𝑣 ∪ {𝑢}) → (¬ 𝑦𝑥 ↔ ¬ (𝑣 ∪ {𝑢}) ∈ 𝑥))
36 ineq2 4140 . . . . . . . . . . . 12 (𝑦 = (𝑣 ∪ {𝑢}) → (𝑧𝑦) = (𝑧 ∩ (𝑣 ∪ {𝑢})))
3736eleq2d 2824 . . . . . . . . . . 11 (𝑦 = (𝑣 ∪ {𝑢}) → (𝑤 ∈ (𝑧𝑦) ↔ 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢}))))
3837eubidv 2586 . . . . . . . . . 10 (𝑦 = (𝑣 ∪ {𝑢}) → (∃!𝑤 𝑤 ∈ (𝑧𝑦) ↔ ∃!𝑤 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢}))))
3938imbi2d 341 . . . . . . . . 9 (𝑦 = (𝑣 ∪ {𝑢}) → ((𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦)) ↔ (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢})))))
4039ralbidv 3112 . . . . . . . 8 (𝑦 = (𝑣 ∪ {𝑢}) → (∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦)) ↔ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢})))))
4135, 40anbi12d 631 . . . . . . 7 (𝑦 = (𝑣 ∪ {𝑢}) → ((¬ 𝑦𝑥 ∧ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦))) ↔ (¬ (𝑣 ∪ {𝑢}) ∈ 𝑥 ∧ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢}))))))
4233, 41spcev 3545 . . . . . 6 ((¬ (𝑣 ∪ {𝑢}) ∈ 𝑥 ∧ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧 ∩ (𝑣 ∪ {𝑢})))) → ∃𝑦𝑦𝑥 ∧ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦))))
4330, 42syl6bi 252 . . . . 5 𝑢 𝑥 → (∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑣)) → ∃𝑦𝑦𝑥 ∧ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦)))))
44 vuniex 7592 . . . . . 6 𝑥 ∈ V
45 eleq2 2827 . . . . . . . 8 (𝑦 = 𝑥 → (𝑢𝑦𝑢 𝑥))
4645notbid 318 . . . . . . 7 (𝑦 = 𝑥 → (¬ 𝑢𝑦 ↔ ¬ 𝑢 𝑥))
4746exbidv 1924 . . . . . 6 (𝑦 = 𝑥 → (∃𝑢 ¬ 𝑢𝑦 ↔ ∃𝑢 ¬ 𝑢 𝑥))
48 nalset 5237 . . . . . . . 8 ¬ ∃𝑦𝑢 𝑢𝑦
49 alexn 1847 . . . . . . . 8 (∀𝑦𝑢 ¬ 𝑢𝑦 ↔ ¬ ∃𝑦𝑢 𝑢𝑦)
5048, 49mpbir 230 . . . . . . 7 𝑦𝑢 ¬ 𝑢𝑦
5150spi 2177 . . . . . 6 𝑢 ¬ 𝑢𝑦
5244, 47, 51vtocl 3498 . . . . 5 𝑢 ¬ 𝑢 𝑥
5343, 52exlimiiv 1934 . . . 4 (∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑣)) → ∃𝑦𝑦𝑥 ∧ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦))))
5453exlimiv 1933 . . 3 (∃𝑣𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑣)) → ∃𝑦𝑦𝑥 ∧ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦))))
556, 54sylbi 216 . 2 (∃𝑦𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦)) → ∃𝑦𝑦𝑥 ∧ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦))))
56 exsimpr 1872 . 2 (∃𝑦𝑦𝑥 ∧ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦))) → ∃𝑦𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦)))
5755, 56impbii 208 1 (∃𝑦𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦)) ↔ ∃𝑦𝑦𝑥 ∧ ∀𝑧𝑥 (𝜑 → ∃!𝑤 𝑤 ∈ (𝑧𝑦))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  wo 844  wal 1537   = wceq 1539  wex 1782  wcel 2106  ∃!weu 2568  wral 3064  cun 3885  cin 3886  c0 4256  {csn 4561   cuni 4839
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-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352  ax-un 7588
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-tru 1542  df-fal 1552  df-ex 1783  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-ral 3069  df-rab 3073  df-v 3434  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-sn 4562  df-pr 4564  df-uni 4840
This theorem is referenced by:  kmlem8  9913
  Copyright terms: Public domain W3C validator