Users' Mathboxes Mathbox for BJ < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  bj-elgab Structured version   Visualization version   GIF version

Theorem bj-elgab 37852
Description: Elements of a generalized class abstraction. (Contributed by BJ, 4-Oct-2024.)
Hypotheses
Ref Expression
bj-elgab.nf (𝜑 → ∀𝑥𝜑)
bj-elgab.nfa (𝜑 → Ⅎ𝑥𝐴)
bj-elgab.ex (𝜑 → 𝐴 ∈ 𝑉)
bj-elgab.is (𝜑 → (∃𝑥(𝐴 = 𝐵 ∧ 𝜓) ↔ 𝜒))
Assertion
Ref Expression
bj-elgab (𝜑 → (𝐴 ∈ {𝐵 ∣ 𝑥 ∣ 𝜓} ↔ 𝜒))

Proof of Theorem bj-elgab
Dummy variable 𝑦 is distinct from all other variables.
StepHypRef Expression
1 df-bj-gab 37847 . . 3 {𝐵 ∣ 𝑥 ∣ 𝜓} = {𝑦 ∣ ∃𝑥(𝐵 = 𝑦 ∧ 𝜓)}
21eleq2i 2853 . 2 (𝐴 ∈ {𝐵 ∣ 𝑥 ∣ 𝜓} ↔ 𝐴 ∈ {𝑦 ∣ ∃𝑥(𝐵 = 𝑦 ∧ 𝜓)})
3 bj-elgab.ex . . . 4 (𝜑 → 𝐴 ∈ 𝑉)
4 bj-elgab.nf . . . . . . . . 9 (𝜑 → ∀𝑥𝜑)
54adantr 486 . . . . . . . 8 ((𝜑 ∧ 𝑦 = 𝐴) → ∀𝑥𝜑)
6 bj-elgab.nfa . . . . . . . . . 10 (𝜑 → Ⅎ𝑥𝐴)
7 nfcvd 2924 . . . . . . . . . . . 12 (Ⅎ𝑥𝐴 → Ⅎ𝑥𝑦)
8 id 23 . . . . . . . . . . . 12 (Ⅎ𝑥𝐴 → Ⅎ𝑥𝐴)
97, 8nfeqd 2933 . . . . . . . . . . 11 (Ⅎ𝑥𝐴 → Ⅎ𝑥 𝑦 = 𝐴)
109nf5rd 2233 . . . . . . . . . 10 (Ⅎ𝑥𝐴 → (𝑦 = 𝐴 → ∀𝑥 𝑦 = 𝐴))
116, 10syl 18 . . . . . . . . 9 (𝜑 → (𝑦 = 𝐴 → ∀𝑥 𝑦 = 𝐴))
1211imp 412 . . . . . . . 8 ((𝜑 ∧ 𝑦 = 𝐴) → ∀𝑥 𝑦 = 𝐴)
13 19.26 1903 . . . . . . . 8 (∀𝑥(𝜑 ∧ 𝑦 = 𝐴) ↔ (∀𝑥𝜑 ∧ ∀𝑥 𝑦 = 𝐴))
145, 12, 13sylanbrc 595 . . . . . . 7 ((𝜑 ∧ 𝑦 = 𝐴) → ∀𝑥(𝜑 ∧ 𝑦 = 𝐴))
15 eqeq2 2773 . . . . . . . . . 10 (𝑦 = 𝐴 → (𝐵 = 𝑦 ↔ 𝐵 = 𝐴))
16 eqcom 2768 . . . . . . . . . 10 (𝐵 = 𝐴 ↔ 𝐴 = 𝐵)
1715, 16bitrdi 290 . . . . . . . . 9 (𝑦 = 𝐴 → (𝐵 = 𝑦 ↔ 𝐴 = 𝐵))
1817anbi1d 643 . . . . . . . 8 (𝑦 = 𝐴 → ((𝐵 = 𝑦 ∧ 𝜓) ↔ (𝐴 = 𝐵 ∧ 𝜓)))
1918adantl 487 . . . . . . 7 ((𝜑 ∧ 𝑦 = 𝐴) → ((𝐵 = 𝑦 ∧ 𝜓) ↔ (𝐴 = 𝐵 ∧ 𝜓)))
2014, 19exbidh 1900 . . . . . 6 ((𝜑 ∧ 𝑦 = 𝐴) → (∃𝑥(𝐵 = 𝑦 ∧ 𝜓) ↔ ∃𝑥(𝐴 = 𝐵 ∧ 𝜓)))
2120ex 418 . . . . 5 (𝜑 → (𝑦 = 𝐴 → (∃𝑥(𝐵 = 𝑦 ∧ 𝜓) ↔ ∃𝑥(𝐴 = 𝐵 ∧ 𝜓))))
2221alrimiv 1960 . . . 4 (𝜑 → ∀𝑦(𝑦 = 𝐴 → (∃𝑥(𝐵 = 𝑦 ∧ 𝜓) ↔ ∃𝑥(𝐴 = 𝐵 ∧ 𝜓))))
23 elabgt 3626 . . . 4 ((𝐴 ∈ 𝑉 ∧ ∀𝑦(𝑦 = 𝐴 → (∃𝑥(𝐵 = 𝑦 ∧ 𝜓) ↔ ∃𝑥(𝐴 = 𝐵 ∧ 𝜓)))) → (𝐴 ∈ {𝑦 ∣ ∃𝑥(𝐵 = 𝑦 ∧ 𝜓)} ↔ ∃𝑥(𝐴 = 𝐵 ∧ 𝜓)))
243, 22, 23syl2anc 596 . . 3 (𝜑 → (𝐴 ∈ {𝑦 ∣ ∃𝑥(𝐵 = 𝑦 ∧ 𝜓)} ↔ ∃𝑥(𝐴 = 𝐵 ∧ 𝜓)))
25 bj-elgab.is . . 3 (𝜑 → (∃𝑥(𝐴 = 𝐵 ∧ 𝜓) ↔ 𝜒))
2624, 25bitrd 282 . 2 (𝜑 → (𝐴 ∈ {𝑦 ∣ ∃𝑥(𝐵 = 𝑦 ∧ 𝜓)} ↔ 𝜒))
272, 26bitrid 286 1 (𝜑 → (𝐴 ∈ {𝐵 ∣ 𝑥 ∣ 𝜓} ↔ 𝜒))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401  ∀wal 1568   = wceq 1570  ∃wex 1812   ∈ wcel 2145  {cab 2739  Ⅎwnfc 2908  {bj-cgab 37846
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
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1573  df-ex 1813  df-nf 1817  df-sb 2100  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-bj-gab 37847
This theorem is used by:  bj-gabima  37853
  Copyright terms: Public domain W3C validator