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 37985
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 37980 . . 3 {𝐵 ∣ 𝑥 ∣ 𝜓} = {𝑦 ∣ ∃𝑥(𝐵 = 𝑦 ∧ 𝜓)}
21eleq2i 2856 . 2 (𝐴 ∈ {𝐵 ∣ 𝑥 ∣ 𝜓} ↔ 𝐴 ∈ {𝑦 ∣ ∃𝑥(𝐵 = 𝑦 ∧ 𝜓)})
3 bj-elgab.ex . . . 4 (𝜑 → 𝐴 ∈ 𝑉)
4 bj-elgab.nf . . . . . . . . 9 (𝜑 → ∀𝑥𝜑)
54adantr 486 . . . . . . . 8 ((𝜑 ∧ 𝑦 = 𝐴) → ∀𝑥𝜑)
6 bj-elgab.nfa . . . . . . . . . 10 (𝜑 → Ⅎ𝑥𝐴)
7 nfcvd 2927 . . . . . . . . . . . 12 (Ⅎ𝑥𝐴 → Ⅎ𝑥𝑦)
8 id 23 . . . . . . . . . . . 12 (Ⅎ𝑥𝐴 → Ⅎ𝑥𝐴)
97, 8nfeqd 2936 . . . . . . . . . . 11 (Ⅎ𝑥𝐴 → Ⅎ𝑥 𝑦 = 𝐴)
109nf5rd 2235 . . . . . . . . . 10 (Ⅎ𝑥𝐴 → (𝑦 = 𝐴 → ∀𝑥 𝑦 = 𝐴))
116, 10syl 18 . . . . . . . . 9 (𝜑 → (𝑦 = 𝐴 → ∀𝑥 𝑦 = 𝐴))
1211imp 412 . . . . . . . 8 ((𝜑 ∧ 𝑦 = 𝐴) → ∀𝑥 𝑦 = 𝐴)
13 19.26 1902 . . . . . . . 8 (∀𝑥(𝜑 ∧ 𝑦 = 𝐴) ↔ (∀𝑥𝜑 ∧ ∀𝑥 𝑦 = 𝐴))
145, 12, 13sylanbrc 595 . . . . . . 7 ((𝜑 ∧ 𝑦 = 𝐴) → ∀𝑥(𝜑 ∧ 𝑦 = 𝐴))
15 eqeq2 2775 . . . . . . . . . 10 (𝑦 = 𝐴 → (𝐵 = 𝑦 ↔ 𝐵 = 𝐴))
16 eqcom 2770 . . . . . . . . . 10 (𝐵 = 𝐴 ↔ 𝐴 = 𝐵)
1715, 16bitrdi 290 . . . . . . . . 9 (𝑦 = 𝐴 → (𝐵 = 𝑦 ↔ 𝐴 = 𝐵))
1817anbi1d 643 . . . . . . . 8 (𝑦 = 𝐴 → ((𝐵 = 𝑦 ∧ 𝜓) ↔ (𝐴 = 𝐵 ∧ 𝜓)))
1918adantl 487 . . . . . . 7 ((𝜑 ∧ 𝑦 = 𝐴) → ((𝐵 = 𝑦 ∧ 𝜓) ↔ (𝐴 = 𝐵 ∧ 𝜓)))
2014, 19exbidh 1899 . . . . . 6 ((𝜑 ∧ 𝑦 = 𝐴) → (∃𝑥(𝐵 = 𝑦 ∧ 𝜓) ↔ ∃𝑥(𝐴 = 𝐵 ∧ 𝜓)))
2120ex 418 . . . . 5 (𝜑 → (𝑦 = 𝐴 → (∃𝑥(𝐵 = 𝑦 ∧ 𝜓) ↔ ∃𝑥(𝐴 = 𝐵 ∧ 𝜓))))
2221alrimiv 1961 . . . 4 (𝜑 → ∀𝑦(𝑦 = 𝐴 → (∃𝑥(𝐵 = 𝑦 ∧ 𝜓) ↔ ∃𝑥(𝐴 = 𝐵 ∧ 𝜓))))
23 elabgt 3629 . . . 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 1567   = wceq 1569  ∃wex 1811   ∈ wcel 2146  {cab 2741  Ⅎwnfc 2911  {bj-cgab 37979
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1944  ax-6 2001  ax-7 2042  ax-8 2148  ax-9 2156  ax-10 2179  ax-11 2196  ax-12 2215  ax-ext 2735
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1572  df-ex 1812  df-nf 1816  df-sb 2101  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-bj-gab 37980
This theorem is used by:  bj-gabima  37986
  Copyright terms: Public domain W3C validator