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

Theorem eltg2 23354
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 23352 . . 3 (𝐵 ∈ 𝑉 → (topGen‘𝐵) = {𝑧 ∣ (𝑧 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧))})
21eleq2d 2856 . 2 (𝐵 ∈ 𝑉 → (𝐴 ∈ (topGen‘𝐵) ↔ 𝐴 ∈ {𝑧 ∣ (𝑧 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧))}))
3 elex 3477 . . . 4 (𝐴 ∈ {𝑧 ∣ (𝑧 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧))} → 𝐴 ∈ V)
43adantl 487 . . 3 ((𝐵 ∈ 𝑉 ∧ 𝐴 ∈ {𝑧 ∣ (𝑧 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧))}) → 𝐴 ∈ V)
5 uniexg 7799 . . . . . 6 (𝐵 ∈ 𝑉 → ∪ 𝐵 ∈ V)
6 ssexg 5291 . . . . . 6 ((𝐴 ⊆ ∪ 𝐵 ∧ ∪ 𝐵 ∈ V) → 𝐴 ∈ V)
75, 6sylan2 605 . . . . 5 ((𝐴 ⊆ ∪ 𝐵 ∧ 𝐵 ∈ 𝑉) → 𝐴 ∈ V)
87ancoms 464 . . . 4 ((𝐵 ∈ 𝑉 ∧ 𝐴 ⊆ ∪ 𝐵) → 𝐴 ∈ V)
98adantrr 730 . . 3 ((𝐵 ∈ 𝑉 ∧ (𝐴 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝐴))) → 𝐴 ∈ V)
10 sseq1 3940 . . . . 5 (𝑧 = 𝐴 → (𝑧 ⊆ ∪ 𝐵 ↔ 𝐴 ⊆ ∪ 𝐵))
11 sseq2 3941 . . . . . . . 8 (𝑧 = 𝐴 → (𝑦 ⊆ 𝑧 ↔ 𝑦 ⊆ 𝐴))
1211anbi2d 642 . . . . . . 7 (𝑧 = 𝐴 → ((𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧) ↔ (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝐴)))
1312rexbidv 3196 . . . . . 6 (𝑧 = 𝐴 → (∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧) ↔ ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝐴)))
1413raleqbi1dv 3336 . . . . 5 (𝑧 = 𝐴 → (∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧) ↔ ∀𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝐴)))
1510, 14anbi12d 644 . . . 4 (𝑧 = 𝐴 → ((𝑧 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧)) ↔ (𝐴 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝐴))))
1615elabg 3635 . . 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 1572   ∈ wcel 2151  {cab 2747  ∀wral 3086  ∃wrex 3096  Vcvv 3456   ⊆ wss 3902  ∪ cuni 4875  ‘cfv 6573  topGenctg 17675
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-10 2184  ax-11 2201  ax-12 2220  ax-ext 2741  ax-sep 5258  ax-pow 5337  ax-pr 5401  ax-un 7793
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2105  df-mo 2571  df-eu 2601  df-clab 2748  df-cleq 2761  df-clel 2845  df-nfc 2919  df-ral 3087  df-rex 3097  df-rab 3419  df-v 3458  df-ss 3903  df-dif 4052  df-in 4096  df-un 4156  df-nul 4284  df-if 4488  df-pw 4564  df-sn 4591  df-pr 4593  df-op 4844  df-uni 4876  df-br 5112  df-opab 5177  df-mpt 5196  df-id 5556  df-xp 5667  df-rel 5668  df-cnv 5669  df-co 5670  df-dm 5671  df-iota 6527  df-fun 6575  df-fv 6581  df-topgen 17681
This theorem is used by:  eltg2b  23355  tg1  23360  tgcl  23365  elmopn  24839  psmetutop  24964
  Copyright terms: Public domain W3C validator