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

Theorem eltg2 23306
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 23304 . . 3 (𝐵 ∈ 𝑉 → (topGen‘𝐵) = {𝑧 ∣ (𝑧 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧))})
21eleq2d 2850 . 2 (𝐵 ∈ 𝑉 → (𝐴 ∈ (topGen‘𝐵) ↔ 𝐴 ∈ {𝑧 ∣ (𝑧 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧))}))
3 elex 3475 . . . 4 (𝐴 ∈ {𝑧 ∣ (𝑧 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧))} → 𝐴 ∈ V)
43adantl 487 . . 3 ((𝐵 ∈ 𝑉 ∧ 𝐴 ∈ {𝑧 ∣ (𝑧 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧))}) → 𝐴 ∈ V)
5 uniexg 7781 . . . . . 6 (𝐵 ∈ 𝑉 → ∪ 𝐵 ∈ V)
6 ssexg 5285 . . . . . 6 ((𝐴 ⊆ ∪ 𝐵 ∧ ∪ 𝐵 ∈ V) → 𝐴 ∈ V)
75, 6sylan2 605 . . . . 5 ((𝐴 ⊆ ∪ 𝐵 ∧ 𝐵 ∈ 𝑉) → 𝐴 ∈ V)
87ancoms 464 . . . 4 ((𝐵 ∈ 𝑉 ∧ 𝐴 ⊆ ∪ 𝐵) → 𝐴 ∈ V)
98adantrr 730 . . 3 ((𝐵 ∈ 𝑉 ∧ (𝐴 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝐴))) → 𝐴 ∈ V)
10 sseq1 3938 . . . . 5 (𝑧 = 𝐴 → (𝑧 ⊆ ∪ 𝐵 ↔ 𝐴 ⊆ ∪ 𝐵))
11 sseq2 3939 . . . . . . . 8 (𝑧 = 𝐴 → (𝑦 ⊆ 𝑧 ↔ 𝑦 ⊆ 𝐴))
1211anbi2d 642 . . . . . . 7 (𝑧 = 𝐴 → ((𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧) ↔ (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝐴)))
1312rexbidv 3190 . . . . . 6 (𝑧 = 𝐴 → (∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧) ↔ ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝐴)))
1413raleqbi1dv 3333 . . . . 5 (𝑧 = 𝐴 → (∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧) ↔ ∀𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝐴)))
1510, 14anbi12d 644 . . . 4 (𝑧 = 𝐴 → ((𝑧 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧)) ↔ (𝐴 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝐴))))
1615elabg 3633 . . 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 1570   ∈ wcel 2147  {cab 2741  ∀wral 3080  ∃wrex 3090  Vcvv 3454   ⊆ wss 3900  ∪ cuni 4870  ‘cfv 6558  topGenctg 17637
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5252  ax-pow 5331  ax-pr 5395  ax-un 7775
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ral 3081  df-rex 3091  df-rab 3417  df-v 3456  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-br 5107  df-opab 5171  df-mpt 5190  df-id 5550  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-iota 6512  df-fun 6560  df-fv 6566  df-topgen 17643
This theorem is used by:  eltg2b  23307  tg1  23312  tgcl  23317  elmopn  24791  psmetutop  24916
  Copyright terms: Public domain W3C validator