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

Theorem eltg2 23281
Description: Membership in a topology generated by a basis. (Contributed by NM, 15-Jul-2006.) (Revised by Mario Carneiro, 10-Jan-2015.)
Assertion
Ref Expression
eltg2 (𝐵 ∈ 𝑉 → (𝐴 ∈ (topGen‘𝐵) ↔ (𝐴 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝐴))))
Distinct variable groups:   𝑥,𝑦,𝐴   𝑥,𝐵,𝑦   𝑥,𝑉,𝑦

Proof of Theorem eltg2
Dummy variable 𝑧 is distinct from all other variables.
StepHypRef Expression
1 tgval2 23279 . . 3 (𝐵 ∈ 𝑉 → (topGen‘𝐵) = {𝑧 ∣ (𝑧 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧))})
21eleq2d 2846 . 2 (𝐵 ∈ 𝑉 → (𝐴 ∈ (topGen‘𝐵) ↔ 𝐴 ∈ {𝑧 ∣ (𝑧 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧))}))
3 elex 3471 . . . 4 (𝐴 ∈ {𝑧 ∣ (𝑧 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧))} → 𝐴 ∈ V)
43adantl 487 . . 3 ((𝐵 ∈ 𝑉 ∧ 𝐴 ∈ {𝑧 ∣ (𝑧 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧))}) → 𝐴 ∈ V)
5 uniexg 7757 . . . . . 6 (𝐵 ∈ 𝑉 → ∪ 𝐵 ∈ V)
6 ssexg 5280 . . . . . 6 ((𝐴 ⊆ ∪ 𝐵 ∧ ∪ 𝐵 ∈ V) → 𝐴 ∈ V)
75, 6sylan2 605 . . . . 5 ((𝐴 ⊆ ∪ 𝐵 ∧ 𝐵 ∈ 𝑉) → 𝐴 ∈ V)
87ancoms 464 . . . 4 ((𝐵 ∈ 𝑉 ∧ 𝐴 ⊆ ∪ 𝐵) → 𝐴 ∈ V)
98adantrr 730 . . 3 ((𝐵 ∈ 𝑉 ∧ (𝐴 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝐴))) → 𝐴 ∈ V)
10 sseq1 3933 . . . . 5 (𝑧 = 𝐴 → (𝑧 ⊆ ∪ 𝐵 ↔ 𝐴 ⊆ ∪ 𝐵))
11 sseq2 3934 . . . . . . . 8 (𝑧 = 𝐴 → (𝑦 ⊆ 𝑧 ↔ 𝑦 ⊆ 𝐴))
1211anbi2d 642 . . . . . . 7 (𝑧 = 𝐴 → ((𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧) ↔ (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝐴)))
1312rexbidv 3186 . . . . . 6 (𝑧 = 𝐴 → (∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧) ↔ ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝐴)))
1413raleqbi1dv 3329 . . . . 5 (𝑧 = 𝐴 → (∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧) ↔ ∀𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝐴)))
1510, 14anbi12d 644 . . . 4 (𝑧 = 𝐴 → ((𝑧 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧)) ↔ (𝐴 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝐴))))
1615elabg 3629 . . 3 (𝐴 ∈ V → (𝐴 ∈ {𝑧 ∣ (𝑧 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧))} ↔ (𝐴 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝐴))))
174, 9, 16pm5.21nd 814 . 2 (𝐵 ∈ 𝑉 → (𝐴 ∈ {𝑧 ∣ (𝑧 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧))} ↔ (𝐴 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝐴))))
182, 17bitrd 282 1 (𝐵 ∈ 𝑉 → (𝐴 ∈ (topGen‘𝐵) ↔ (𝐴 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝐴))))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1569   ∈ wcel 2144  {cab 2738  ∀wral 3076  ∃wrex 3086  Vcvv 3450   ⊆ wss 3895  ∪ cuni 4866  ‘cfv 6538  topGenctg 17613
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 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-sep 5248  ax-pow 5326  ax-pr 5390  ax-un 7751
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-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-pw 4558  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-br 5103  df-opab 5167  df-mpt 5186  df-id 5545  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-iota 6494  df-fun 6540  df-fv 6546  df-topgen 17619
This theorem is used by:  eltg2b  23282  tg1  23287  tgcl  23292  elmopn  24766  psmetutop  24891
  Copyright terms: Public domain W3C validator