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

Theorem replem 5213
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 222 . . . . . . 7 ((𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → (∃𝑥𝑧 𝜑𝑦𝑤))
2 r19.23v 3168 . . . . . . . 8 (∀𝑥𝑧 (𝜑𝑦𝑤) ↔ (∃𝑥𝑧 𝜑𝑦𝑤))
32biimpri 230 . . . . . . 7 ((∃𝑥𝑧 𝜑𝑦𝑤) → ∀𝑥𝑧 (𝜑𝑦𝑤))
4 ancr 552 . . . . . . . 8 ((𝜑𝑦𝑤) → (𝜑 → (𝑦𝑤𝜑)))
54ralimi 3078 . . . . . . 7 (∀𝑥𝑧 (𝜑𝑦𝑤) → ∀𝑥𝑧 (𝜑 → (𝑦𝑤𝜑)))
61, 3, 53syl 18 . . . . . 6 ((𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → ∀𝑥𝑧 (𝜑 → (𝑦𝑤𝜑)))
76alimi 1819 . . . . 5 (∀𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → ∀𝑦𝑥𝑧 (𝜑 → (𝑦𝑤𝜑)))
8 ralcom4 3267 . . . . . 6 (∀𝑥𝑧𝑦(𝜑 → (𝑦𝑤𝜑)) ↔ ∀𝑦𝑥𝑧 (𝜑 → (𝑦𝑤𝜑)))
98biimpri 230 . . . . 5 (∀𝑦𝑥𝑧 (𝜑 → (𝑦𝑤𝜑)) → ∀𝑥𝑧𝑦(𝜑 → (𝑦𝑤𝜑)))
10 exim 1842 . . . . . . 7 (∀𝑦(𝜑 → (𝑦𝑤𝜑)) → (∃𝑦𝜑 → ∃𝑦(𝑦𝑤𝜑)))
11 df-rex 3066 . . . . . . 7 (∃𝑦𝑤 𝜑 ↔ ∃𝑦(𝑦𝑤𝜑))
1210, 11imbitrrdi 254 . . . . . 6 (∀𝑦(𝜑 → (𝑦𝑤𝜑)) → (∃𝑦𝜑 → ∃𝑦𝑤 𝜑))
1312ralimi 3078 . . . . 5 (∀𝑥𝑧𝑦(𝜑 → (𝑦𝑤𝜑)) → ∀𝑥𝑧 (∃𝑦𝜑 → ∃𝑦𝑤 𝜑))
147, 9, 133syl 18 . . . 4 (∀𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → ∀𝑥𝑧 (∃𝑦𝜑 → ∃𝑦𝑤 𝜑))
15 pm2.27 42 . . . . 5 (∃𝑦𝜑 → ((∃𝑦𝜑 → ∃𝑦𝑤 𝜑) → ∃𝑦𝑤 𝜑))
1615ral2imi 3080 . . . 4 (∀𝑥𝑧𝑦𝜑 → (∀𝑥𝑧 (∃𝑦𝜑 → ∃𝑦𝑤 𝜑) → ∀𝑥𝑧𝑦𝑤 𝜑))
1714, 16syl5 34 . . 3 (∀𝑥𝑧𝑦𝜑 → (∀𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → ∀𝑥𝑧𝑦𝑤 𝜑))
1817eximdv 1925 . 2 (∀𝑥𝑧𝑦𝜑 → (∃𝑤𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → ∃𝑤𝑥𝑧𝑦𝑤 𝜑))
1918imp 408 1 ((∀𝑥𝑧𝑦𝜑 ∧ ∃𝑤𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑)) → ∃𝑤𝑥𝑧𝑦𝑤 𝜑)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 397  wal 1546  wex 1787  wral 3055  wrex 3065
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-11 2170
This theorem depends on definitions:  df-bi 209  df-an 398  df-ex 1788  df-ral 3056  df-rex 3066
This theorem is referenced by:  zfrep6  5214
  Copyright terms: Public domain W3C validator