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

Theorem replem 5237
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 220 . . . . . . 7 ((𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → (∃𝑥𝑧 𝜑𝑦𝑤))
2 r19.23v 3165 . . . . . . . 8 (∀𝑥𝑧 (𝜑𝑦𝑤) ↔ (∃𝑥𝑧 𝜑𝑦𝑤))
32biimpri 228 . . . . . . 7 ((∃𝑥𝑧 𝜑𝑦𝑤) → ∀𝑥𝑧 (𝜑𝑦𝑤))
4 ancr 546 . . . . . . . 8 ((𝜑𝑦𝑤) → (𝜑 → (𝑦𝑤𝜑)))
54ralimi 3075 . . . . . . 7 (∀𝑥𝑧 (𝜑𝑦𝑤) → ∀𝑥𝑧 (𝜑 → (𝑦𝑤𝜑)))
61, 3, 53syl 18 . . . . . 6 ((𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → ∀𝑥𝑧 (𝜑 → (𝑦𝑤𝜑)))
76alimi 1813 . . . . 5 (∀𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → ∀𝑦𝑥𝑧 (𝜑 → (𝑦𝑤𝜑)))
8 ralcom4 3264 . . . . . 6 (∀𝑥𝑧𝑦(𝜑 → (𝑦𝑤𝜑)) ↔ ∀𝑦𝑥𝑧 (𝜑 → (𝑦𝑤𝜑)))
98biimpri 228 . . . . 5 (∀𝑦𝑥𝑧 (𝜑 → (𝑦𝑤𝜑)) → ∀𝑥𝑧𝑦(𝜑 → (𝑦𝑤𝜑)))
10 exim 1836 . . . . . . 7 (∀𝑦(𝜑 → (𝑦𝑤𝜑)) → (∃𝑦𝜑 → ∃𝑦(𝑦𝑤𝜑)))
11 df-rex 3063 . . . . . . 7 (∃𝑦𝑤 𝜑 ↔ ∃𝑦(𝑦𝑤𝜑))
1210, 11imbitrrdi 252 . . . . . 6 (∀𝑦(𝜑 → (𝑦𝑤𝜑)) → (∃𝑦𝜑 → ∃𝑦𝑤 𝜑))
1312ralimi 3075 . . . . 5 (∀𝑥𝑧𝑦(𝜑 → (𝑦𝑤𝜑)) → ∀𝑥𝑧 (∃𝑦𝜑 → ∃𝑦𝑤 𝜑))
147, 9, 133syl 18 . . . 4 (∀𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → ∀𝑥𝑧 (∃𝑦𝜑 → ∃𝑦𝑤 𝜑))
15 pm2.27 42 . . . . 5 (∃𝑦𝜑 → ((∃𝑦𝜑 → ∃𝑦𝑤 𝜑) → ∃𝑦𝑤 𝜑))
1615ral2imi 3077 . . . 4 (∀𝑥𝑧𝑦𝜑 → (∀𝑥𝑧 (∃𝑦𝜑 → ∃𝑦𝑤 𝜑) → ∀𝑥𝑧𝑦𝑤 𝜑))
1714, 16syl5 34 . . 3 (∀𝑥𝑧𝑦𝜑 → (∀𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → ∀𝑥𝑧𝑦𝑤 𝜑))
1817eximdv 1919 . 2 (∀𝑥𝑧𝑦𝜑 → (∃𝑤𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → ∃𝑤𝑥𝑧𝑦𝑤 𝜑))
1918imp 406 1 ((∀𝑥𝑧𝑦𝜑 ∧ ∃𝑤𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑)) → ∃𝑤𝑥𝑧𝑦𝑤 𝜑)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 206  wa 395  wal 1540  wex 1781  wral 3052  wrex 3062
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1912  ax-11 2163
This theorem depends on definitions:  df-bi 207  df-an 396  df-ex 1782  df-ral 3053  df-rex 3063
This theorem is referenced by:  zfrep6  5238
  Copyright terms: Public domain W3C validator