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

Theorem replem 5253
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 3198 . . . . . . . 8 (∀𝑥𝑧 (𝜑𝑦𝑤) ↔ (∃𝑥𝑧 𝜑𝑦𝑤))
32biimpri 231 . . . . . . 7 ((∃𝑥𝑧 𝜑𝑦𝑤) → ∀𝑥𝑧 (𝜑𝑦𝑤))
4 ancr 555 . . . . . . . 8 ((𝜑𝑦𝑤) → (𝜑 → (𝑦𝑤𝜑)))
54ralimi 3108 . . . . . . 7 (∀𝑥𝑧 (𝜑𝑦𝑤) → ∀𝑥𝑧 (𝜑 → (𝑦𝑤𝜑)))
61, 3, 53syl 19 . . . . . 6 ((𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → ∀𝑥𝑧 (𝜑 → (𝑦𝑤𝜑)))
76alimi 1838 . . . . 5 (∀𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → ∀𝑦𝑥𝑧 (𝜑 → (𝑦𝑤𝜑)))
8 ralcom4 3297 . . . . . 6 (∀𝑥𝑧𝑦(𝜑 → (𝑦𝑤𝜑)) ↔ ∀𝑦𝑥𝑧 (𝜑 → (𝑦𝑤𝜑)))
98biimpri 231 . . . . 5 (∀𝑦𝑥𝑧 (𝜑 → (𝑦𝑤𝜑)) → ∀𝑥𝑧𝑦(𝜑 → (𝑦𝑤𝜑)))
10 exim 1861 . . . . . . 7 (∀𝑦(𝜑 → (𝑦𝑤𝜑)) → (∃𝑦𝜑 → ∃𝑦(𝑦𝑤𝜑)))
11 df-rex 3096 . . . . . . 7 (∃𝑦𝑤 𝜑 ↔ ∃𝑦(𝑦𝑤𝜑))
1210, 11imbitrrdi 255 . . . . . 6 (∀𝑦(𝜑 → (𝑦𝑤𝜑)) → (∃𝑦𝜑 → ∃𝑦𝑤 𝜑))
1312ralimi 3108 . . . . 5 (∀𝑥𝑧𝑦(𝜑 → (𝑦𝑤𝜑)) → ∀𝑥𝑧 (∃𝑦𝜑 → ∃𝑦𝑤 𝜑))
147, 9, 133syl 19 . . . 4 (∀𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → ∀𝑥𝑧 (∃𝑦𝜑 → ∃𝑦𝑤 𝜑))
15 pm2.27 43 . . . . 5 (∃𝑦𝜑 → ((∃𝑦𝜑 → ∃𝑦𝑤 𝜑) → ∃𝑦𝑤 𝜑))
1615ral2imi 3110 . . . 4 (∀𝑥𝑧𝑦𝜑 → (∀𝑥𝑧 (∃𝑦𝜑 → ∃𝑦𝑤 𝜑) → ∀𝑥𝑧𝑦𝑤 𝜑))
1714, 16syl5 35 . . 3 (∀𝑥𝑧𝑦𝜑 → (∀𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → ∀𝑥𝑧𝑦𝑤 𝜑))
1817eximdv 1944 . 2 (∀𝑥𝑧𝑦𝜑 → (∃𝑤𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → ∃𝑤𝑥𝑧𝑦𝑤 𝜑))
1918imp 411 1 ((∀𝑥𝑧𝑦𝜑 ∧ ∃𝑤𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑)) → ∃𝑤𝑥𝑧𝑦𝑤 𝜑)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 400  wal 1565  wex 1806  wral 3085  wrex 3095
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1822  ax-4 1836  ax-5 1937  ax-11 2198
This theorem depends on definitions:  df-bi 210  df-an 401  df-ex 1807  df-ral 3086  df-rex 3096
This theorem is referenced by:  zfrep6  5254
  Copyright terms: Public domain W3C validator