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 37603
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 37598 . . 3 {𝐵𝑥𝜓} = {𝑦 ∣ ∃𝑥(𝐵 = 𝑦𝜓)}
21eleq2i 2855 . 2 (𝐴 ∈ {𝐵𝑥𝜓} ↔ 𝐴 ∈ {𝑦 ∣ ∃𝑥(𝐵 = 𝑦𝜓)})
3 bj-elgab.ex . . . 4 (𝜑𝐴𝑉)
4 bj-elgab.nf . . . . . . . . 9 (𝜑 → ∀𝑥𝜑)
54adantr 485 . . . . . . . 8 ((𝜑𝑦 = 𝐴) → ∀𝑥𝜑)
6 bj-elgab.nfa . . . . . . . . . 10 (𝜑𝑥𝐴)
7 nfcvd 2926 . . . . . . . . . . . 12 (𝑥𝐴𝑥𝑦)
8 id 23 . . . . . . . . . . . 12 (𝑥𝐴𝑥𝐴)
97, 8nfeqd 2935 . . . . . . . . . . 11 (𝑥𝐴 → Ⅎ𝑥 𝑦 = 𝐴)
109nf5rd 2232 . . . . . . . . . 10 (𝑥𝐴 → (𝑦 = 𝐴 → ∀𝑥 𝑦 = 𝐴))
116, 10syl 18 . . . . . . . . 9 (𝜑 → (𝑦 = 𝐴 → ∀𝑥 𝑦 = 𝐴))
1211imp 411 . . . . . . . 8 ((𝜑𝑦 = 𝐴) → ∀𝑥 𝑦 = 𝐴)
13 19.26 1900 . . . . . . . 8 (∀𝑥(𝜑𝑦 = 𝐴) ↔ (∀𝑥𝜑 ∧ ∀𝑥 𝑦 = 𝐴))
145, 12, 13sylanbrc 594 . . . . . . 7 ((𝜑𝑦 = 𝐴) → ∀𝑥(𝜑𝑦 = 𝐴))
15 eqeq2 2775 . . . . . . . . . 10 (𝑦 = 𝐴 → (𝐵 = 𝑦𝐵 = 𝐴))
16 eqcom 2770 . . . . . . . . . 10 (𝐵 = 𝐴𝐴 = 𝐵)
1715, 16bitrdi 290 . . . . . . . . 9 (𝑦 = 𝐴 → (𝐵 = 𝑦𝐴 = 𝐵))
1817anbi1d 642 . . . . . . . 8 (𝑦 = 𝐴 → ((𝐵 = 𝑦𝜓) ↔ (𝐴 = 𝐵𝜓)))
1918adantl 486 . . . . . . 7 ((𝜑𝑦 = 𝐴) → ((𝐵 = 𝑦𝜓) ↔ (𝐴 = 𝐵𝜓)))
2014, 19exbidh 1897 . . . . . 6 ((𝜑𝑦 = 𝐴) → (∃𝑥(𝐵 = 𝑦𝜓) ↔ ∃𝑥(𝐴 = 𝐵𝜓)))
2120ex 417 . . . . 5 (𝜑 → (𝑦 = 𝐴 → (∃𝑥(𝐵 = 𝑦𝜓) ↔ ∃𝑥(𝐴 = 𝐵𝜓))))
2221alrimiv 1957 . . . 4 (𝜑 → ∀𝑦(𝑦 = 𝐴 → (∃𝑥(𝐵 = 𝑦𝜓) ↔ ∃𝑥(𝐴 = 𝐵𝜓))))
23 elabgt 3631 . . . 4 ((𝐴𝑉 ∧ ∀𝑦(𝑦 = 𝐴 → (∃𝑥(𝐵 = 𝑦𝜓) ↔ ∃𝑥(𝐴 = 𝐵𝜓)))) → (𝐴 ∈ {𝑦 ∣ ∃𝑥(𝐵 = 𝑦𝜓)} ↔ ∃𝑥(𝐴 = 𝐵𝜓)))
243, 22, 23syl2anc 595 . . 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 400  wal 1568   = wceq 1570  wex 1809  wcel 2143  {cab 2741  wnfc 2910  {bj-cgab 37597
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1825  ax-4 1839  ax-5 1940  ax-6 1997  ax-7 2038  ax-8 2145  ax-9 2153  ax-10 2176  ax-11 2192  ax-12 2213  ax-ext 2735
This proof depends on definitions:  df-bi 210  df-an 401  df-or 861  df-tru 1573  df-ex 1810  df-nf 1814  df-sb 2097  df-clab 2742  df-cleq 2755  df-clel 2838  df-nfc 2912  df-bj-gab 37598
This theorem is used by:  bj-gabima  37604
  Copyright terms: Public domain W3C validator