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

Theorem replem 5240
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 3191 . . . . . . . 8 (∀𝑥𝑧 (𝜑𝑦𝑤) ↔ (∃𝑥𝑧 𝜑𝑦𝑤))
32biimpri 230 . . . . . . 7 ((∃𝑥𝑧 𝜑𝑦𝑤) → ∀𝑥𝑧 (𝜑𝑦𝑤))
4 ancr 554 . . . . . . . 8 ((𝜑𝑦𝑤) → (𝜑 → (𝑦𝑤𝜑)))
54ralimi 3101 . . . . . . 7 (∀𝑥𝑧 (𝜑𝑦𝑤) → ∀𝑥𝑧 (𝜑 → (𝑦𝑤𝜑)))
61, 3, 53syl 18 . . . . . 6 ((𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → ∀𝑥𝑧 (𝜑 → (𝑦𝑤𝜑)))
76alimi 1833 . . . . 5 (∀𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → ∀𝑦𝑥𝑧 (𝜑 → (𝑦𝑤𝜑)))
8 ralcom4 3290 . . . . . 6 (∀𝑥𝑧𝑦(𝜑 → (𝑦𝑤𝜑)) ↔ ∀𝑦𝑥𝑧 (𝜑 → (𝑦𝑤𝜑)))
98biimpri 230 . . . . 5 (∀𝑦𝑥𝑧 (𝜑 → (𝑦𝑤𝜑)) → ∀𝑥𝑧𝑦(𝜑 → (𝑦𝑤𝜑)))
10 exim 1856 . . . . . . 7 (∀𝑦(𝜑 → (𝑦𝑤𝜑)) → (∃𝑦𝜑 → ∃𝑦(𝑦𝑤𝜑)))
11 df-rex 3089 . . . . . . 7 (∃𝑦𝑤 𝜑 ↔ ∃𝑦(𝑦𝑤𝜑))
1210, 11imbitrrdi 254 . . . . . 6 (∀𝑦(𝜑 → (𝑦𝑤𝜑)) → (∃𝑦𝜑 → ∃𝑦𝑤 𝜑))
1312ralimi 3101 . . . . 5 (∀𝑥𝑧𝑦(𝜑 → (𝑦𝑤𝜑)) → ∀𝑥𝑧 (∃𝑦𝜑 → ∃𝑦𝑤 𝜑))
147, 9, 133syl 18 . . . 4 (∀𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → ∀𝑥𝑧 (∃𝑦𝜑 → ∃𝑦𝑤 𝜑))
15 pm2.27 42 . . . . 5 (∃𝑦𝜑 → ((∃𝑦𝜑 → ∃𝑦𝑤 𝜑) → ∃𝑦𝑤 𝜑))
1615ral2imi 3103 . . . 4 (∀𝑥𝑧𝑦𝜑 → (∀𝑥𝑧 (∃𝑦𝜑 → ∃𝑦𝑤 𝜑) → ∀𝑥𝑧𝑦𝑤 𝜑))
1714, 16syl5 34 . . 3 (∀𝑥𝑧𝑦𝜑 → (∀𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → ∀𝑥𝑧𝑦𝑤 𝜑))
1817eximdv 1939 . 2 (∀𝑥𝑧𝑦𝜑 → (∃𝑤𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑) → ∃𝑤𝑥𝑧𝑦𝑤 𝜑))
1918imp 410 1 ((∀𝑥𝑧𝑦𝜑 ∧ ∃𝑤𝑦(𝑦𝑤 ↔ ∃𝑥𝑧 𝜑)) → ∃𝑤𝑥𝑧𝑦𝑤 𝜑)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 399  wal 1560  wex 1801  wral 3078  wrex 3088
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1817  ax-4 1831  ax-5 1932  ax-11 2193
This theorem depends on definitions:  df-bi 209  df-an 400  df-ex 1802  df-ral 3079  df-rex 3089
This theorem is referenced by:  zfrep6  5241
  Copyright terms: Public domain W3C validator