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

Theorem isarep2 6413
Description: Part of a study of the Axiom of Replacement used by the Isabelle prover. In Isabelle, the sethood of PrimReplace is apparently postulated implicitly by its type signature "[ i, [ i, i ] => o ] => i", which automatically asserts that it is a set without using any axioms. To prove that it is a set in Metamath, we need the hypotheses of Isabelle's "Axiom of Replacement" as well as the Axiom of Replacement in the form funimaex 6411. (Contributed by NM, 26-Oct-2006.)
Hypotheses
Ref Expression
isarep2.1 𝐴 ∈ V
isarep2.2 𝑥𝐴𝑦𝑧((𝜑 ∧ [𝑧 / 𝑦]𝜑) → 𝑦 = 𝑧)
Assertion
Ref Expression
isarep2 𝑤 𝑤 = ({⟨𝑥, 𝑦⟩ ∣ 𝜑} “ 𝐴)
Distinct variable groups:   𝑥,𝑤,𝑦,𝐴   𝑦,𝑧   𝜑,𝑤   𝜑,𝑧
Allowed substitution hints:   𝜑(𝑥,𝑦)   𝐴(𝑧)

Proof of Theorem isarep2
StepHypRef Expression
1 resima 5852 . . . 4 (({⟨𝑥, 𝑦⟩ ∣ 𝜑} ↾ 𝐴) “ 𝐴) = ({⟨𝑥, 𝑦⟩ ∣ 𝜑} “ 𝐴)
2 resopab 5869 . . . . 5 ({⟨𝑥, 𝑦⟩ ∣ 𝜑} ↾ 𝐴) = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝜑)}
32imaeq1i 5893 . . . 4 (({⟨𝑥, 𝑦⟩ ∣ 𝜑} ↾ 𝐴) “ 𝐴) = ({⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝜑)} “ 𝐴)
41, 3eqtr3i 2823 . . 3 ({⟨𝑥, 𝑦⟩ ∣ 𝜑} “ 𝐴) = ({⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝜑)} “ 𝐴)
5 funopab 6359 . . . . 5 (Fun {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝜑)} ↔ ∀𝑥∃*𝑦(𝑥𝐴𝜑))
6 isarep2.2 . . . . . . . 8 𝑥𝐴𝑦𝑧((𝜑 ∧ [𝑧 / 𝑦]𝜑) → 𝑦 = 𝑧)
76rspec 3172 . . . . . . 7 (𝑥𝐴 → ∀𝑦𝑧((𝜑 ∧ [𝑧 / 𝑦]𝜑) → 𝑦 = 𝑧))
8 nfv 1915 . . . . . . . 8 𝑧𝜑
98mo3 2623 . . . . . . 7 (∃*𝑦𝜑 ↔ ∀𝑦𝑧((𝜑 ∧ [𝑧 / 𝑦]𝜑) → 𝑦 = 𝑧))
107, 9sylibr 237 . . . . . 6 (𝑥𝐴 → ∃*𝑦𝜑)
11 moanimv 2681 . . . . . 6 (∃*𝑦(𝑥𝐴𝜑) ↔ (𝑥𝐴 → ∃*𝑦𝜑))
1210, 11mpbir 234 . . . . 5 ∃*𝑦(𝑥𝐴𝜑)
135, 12mpgbir 1801 . . . 4 Fun {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝜑)}
14 isarep2.1 . . . . 5 𝐴 ∈ V
1514funimaex 6411 . . . 4 (Fun {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝜑)} → ({⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝜑)} “ 𝐴) ∈ V)
1613, 15ax-mp 5 . . 3 ({⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝜑)} “ 𝐴) ∈ V
174, 16eqeltri 2886 . 2 ({⟨𝑥, 𝑦⟩ ∣ 𝜑} “ 𝐴) ∈ V
1817isseti 3455 1 𝑤 𝑤 = ({⟨𝑥, 𝑦⟩ ∣ 𝜑} “ 𝐴)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399  wal 1536   = wceq 1538  wex 1781  [wsb 2069  wcel 2111  ∃*wmo 2596  wral 3106  Vcvv 3441  {copab 5092  cres 5521  cima 5522  Fun wfun 6318
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 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-rep 5154  ax-sep 5167  ax-nul 5174  ax-pr 5295
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ral 3111  df-rex 3112  df-rab 3115  df-v 3443  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-nul 4244  df-if 4426  df-sn 4526  df-pr 4528  df-op 4532  df-br 5031  df-opab 5093  df-id 5425  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-res 5531  df-ima 5532  df-fun 6326
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator