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

Theorem replem 5248
Description: A lemma for variants of the axiom of replacement: if we can form the set of images of the functional relation, then we can also form a set containing all its images. The converse requires the axiom of separation. (Contributed by BJ, 5-Apr-2026.)
Assertion
Ref Expression
replem ((∀𝑥𝑧𝑦𝜑 ∧ ∃𝑤𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑)) → ∃𝑤𝑥𝑧𝑦𝑤 𝜑)
Distinct variable groups:   𝜑,𝑤   𝑥,𝑤,𝑦   𝑧,𝑤,𝑦
Allowed substitution hints:   𝜑(𝑥, 𝑦, 𝑧)

Proof of Theorem replem
StepHypRef Expression
1 biimpr 223 . . . . . . 7 ((𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → (∃𝑥𝑧 𝜑𝑦𝑤))
2 r19.23v 3191 . . . . . . . 8 (∀𝑥𝑧 (𝜑𝑦𝑤) ↔ (∃𝑥𝑧 𝜑𝑦𝑤))
32biimpri 231 . . . . . . 7 ((∃𝑥𝑧 𝜑𝑦𝑤) → ∀𝑥𝑧 (𝜑𝑦𝑤))
4 ancr 555 . . . . . . . 8 ((𝜑𝑦𝑤) → (𝜑 → (𝑦𝑤𝜑)))
54ralimi 3101 . . . . . . 7 (∀𝑥𝑧 (𝜑𝑦𝑤) → ∀𝑥𝑧 (𝜑 → (𝑦𝑤𝜑)))
61, 3, 53syl 19 . . . . . 6 ((𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → ∀𝑥𝑧 (𝜑 → (𝑦𝑤𝜑)))
76alimi 1840 . . . . 5 (∀𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → ∀𝑦𝑥𝑧 (𝜑 → (𝑦𝑤𝜑)))
8 ralcom4 3290 . . . . . 6 (∀𝑥𝑧𝑦(𝜑 → (𝑦𝑤𝜑)) ↔ ∀𝑦𝑥𝑧 (𝜑 → (𝑦𝑤𝜑)))
98biimpri 231 . . . . 5 (∀𝑦𝑥𝑧 (𝜑 → (𝑦𝑤𝜑)) → ∀𝑥𝑧𝑦(𝜑 → (𝑦𝑤𝜑)))
10 exim 1863 . . . . . . 7 (∀𝑦(𝜑 → (𝑦𝑤𝜑)) → (∃𝑦𝜑 → ∃𝑦(𝑦𝑤𝜑)))
11 df-rex 3089 . . . . . . 7 (∃𝑦𝑤 𝜑 ↔ ∃𝑦(𝑦𝑤𝜑))
1210, 11imbitrrdi 255 . . . . . 6 (∀𝑦(𝜑 → (𝑦𝑤𝜑)) → (∃𝑦𝜑 → ∃𝑦𝑤 𝜑))
1312ralimi 3101 . . . . 5 (∀𝑥𝑧𝑦(𝜑 → (𝑦𝑤𝜑)) → ∀𝑥𝑧 (∃𝑦𝜑 → ∃𝑦𝑤 𝜑))
147, 9, 133syl 19 . . . 4 (∀𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → ∀𝑥𝑧 (∃𝑦𝜑 → ∃𝑦𝑤 𝜑))
15 pm2.27 43 . . . . 5 (∃𝑦𝜑 → ((∃𝑦𝜑 → ∃𝑦𝑤 𝜑) → ∃𝑦𝑤 𝜑))
1615ral2imi 3103 . . . 4 (∀𝑥𝑧𝑦𝜑 → (∀𝑥𝑧 (∃𝑦𝜑 → ∃𝑦𝑤 𝜑) → ∀𝑥𝑧𝑦𝑤 𝜑))
1714, 16syl5 35 . . 3 (∀𝑥𝑧𝑦𝜑 → (∀𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → ∀𝑥𝑧𝑦𝑤 𝜑))
1817eximdv 1946 . 2 (∀𝑥𝑧𝑦𝜑 → (∃𝑤𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → ∃𝑤𝑥𝑧𝑦𝑤 𝜑))
1918imp 411 1 ((∀𝑥𝑧𝑦𝜑 ∧ ∃𝑤𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑)) → ∃𝑤𝑥𝑧𝑦𝑤 𝜑)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  wi 4  wb 209  wa 400  wal 1567  wex 1808  wral 3078  wrex 3088
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1824  ax-4 1838  ax-5 1939  ax-11 2191
This proof depends on definitions:  df-bi 210  df-an 401  df-ex 1809  df-ral 3079  df-rex 3089
This theorem is used by:  zfrep6  5249
  Copyright terms: Public domain W3C validator