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

Theorem eltg2 23256
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 23254 . . 3 (𝐵 ∈ 𝑉 → (topGen‘𝐵) = {𝑧 ∣ (𝑧 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧))})
21eleq2d 2847 . 2 (𝐵 ∈ 𝑉 → (𝐴 ∈ (topGen‘𝐵) ↔ 𝐴 ∈ {𝑧 ∣ (𝑧 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧))}))
3 elex 3472 . . . 4 (𝐴 ∈ {𝑧 ∣ (𝑧 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧))} → 𝐴 ∈ V)
43adantl 487 . . 3 ((𝐵 ∈ 𝑉 ∧ 𝐴 ∈ {𝑧 ∣ (𝑧 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧))}) → 𝐴 ∈ V)
5 uniexg 7746 . . . . . 6 (𝐵 ∈ 𝑉 → ∪ 𝐵 ∈ V)
6 ssexg 5281 . . . . . 6 ((𝐴 ⊆ ∪ 𝐵 ∧ ∪ 𝐵 ∈ V) → 𝐴 ∈ V)
75, 6sylan2 605 . . . . 5 ((𝐴 ⊆ ∪ 𝐵 ∧ 𝐵 ∈ 𝑉) → 𝐴 ∈ V)
87ancoms 464 . . . 4 ((𝐵 ∈ 𝑉 ∧ 𝐴 ⊆ ∪ 𝐵) → 𝐴 ∈ V)
98adantrr 730 . . 3 ((𝐵 ∈ 𝑉 ∧ (𝐴 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝐴))) → 𝐴 ∈ V)
10 sseq1 3956 . . . . 5 (𝑧 = 𝐴 → (𝑧 ⊆ ∪ 𝐵 ↔ 𝐴 ⊆ ∪ 𝐵))
11 sseq2 3957 . . . . . . . 8 (𝑧 = 𝐴 → (𝑦 ⊆ 𝑧 ↔ 𝑦 ⊆ 𝐴))
1211anbi2d 642 . . . . . . 7 (𝑧 = 𝐴 → ((𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧) ↔ (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝐴)))
1312rexbidv 3187 . . . . . 6 (𝑧 = 𝐴 → (∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧) ↔ ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝐴)))
1413raleqbi1dv 3330 . . . . 5 (𝑧 = 𝐴 → (∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧) ↔ ∀𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝐴)))
1510, 14anbi12d 644 . . . 4 (𝑧 = 𝐴 → ((𝑧 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝑧 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝑧)) ↔ (𝐴 ⊆ ∪ 𝐵 ∧ ∀𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 (𝑥 ∈ 𝑦 ∧ 𝑦 ⊆ 𝐴))))
1615elabg 3630 . . 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 2145  {cab 2739  ∀wral 3077  ∃wrex 3087  Vcvv 3451   ⊆ wss 3899  ∪ cuni 4867  ‘cfv 6531  topGenctg 17588
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 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-sep 5249  ax-pow 5327  ax-pr 5391  ax-un 7740
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 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ral 3078  df-rex 3088  df-rab 3414  df-v 3453  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-br 5104  df-opab 5168  df-mpt 5187  df-id 5546  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-iota 6487  df-fun 6533  df-fv 6539  df-topgen 17594
This theorem is used by:  eltg2b  23257  tg1  23262  tgcl  23267  elmopn  24741  psmetutop  24866
  Copyright terms: Public domain W3C validator