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

Theorem isarep1 5891
Description: Part of a study of the Axiom of Replacement used by the Isabelle prover. The object PrimReplace is apparently the image of the function encoded by 𝜑(𝑥, 𝑦) i.e. the class ({⟨𝑥, 𝑦⟩ ∣ 𝜑} “ 𝐴). If so, we can prove Isabelle's "Axiom of Replacement" conclusion without using the Axiom of Replacement, for which I (N. Megill) currently have no explanation. (Contributed by NM, 26-Oct-2006.) (Proof shortened by Mario Carneiro, 4-Dec-2016.)
Assertion
Ref Expression
isarep1 (𝑏 ∈ ({⟨𝑥, 𝑦⟩ ∣ 𝜑} “ 𝐴) ↔ ∃𝑥𝐴 [𝑏 / 𝑦]𝜑)
Distinct variable groups:   𝑥,𝐴   𝑥,𝑏,𝑦
Allowed substitution hints:   𝜑(𝑥,𝑦,𝑏)   𝐴(𝑦,𝑏)

Proof of Theorem isarep1
Dummy variable 𝑧 is distinct from all other variables.
StepHypRef Expression
1 vex 3176 . . 3 𝑏 ∈ V
21elima 5390 . 2 (𝑏 ∈ ({⟨𝑥, 𝑦⟩ ∣ 𝜑} “ 𝐴) ↔ ∃𝑧𝐴 𝑧{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑏)
3 df-br 4584 . . . 4 (𝑧{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑏 ↔ ⟨𝑧, 𝑏⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜑})
4 opelopabsb 4910 . . . 4 (⟨𝑧, 𝑏⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜑} ↔ [𝑧 / 𝑥][𝑏 / 𝑦]𝜑)
5 sbsbc 3406 . . . . . 6 ([𝑏 / 𝑦]𝜑[𝑏 / 𝑦]𝜑)
65sbbii 1874 . . . . 5 ([𝑧 / 𝑥][𝑏 / 𝑦]𝜑 ↔ [𝑧 / 𝑥][𝑏 / 𝑦]𝜑)
7 sbsbc 3406 . . . . 5 ([𝑧 / 𝑥][𝑏 / 𝑦]𝜑[𝑧 / 𝑥][𝑏 / 𝑦]𝜑)
86, 7bitr2i 264 . . . 4 ([𝑧 / 𝑥][𝑏 / 𝑦]𝜑 ↔ [𝑧 / 𝑥][𝑏 / 𝑦]𝜑)
93, 4, 83bitri 285 . . 3 (𝑧{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑏 ↔ [𝑧 / 𝑥][𝑏 / 𝑦]𝜑)
109rexbii 3023 . 2 (∃𝑧𝐴 𝑧{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑏 ↔ ∃𝑧𝐴 [𝑧 / 𝑥][𝑏 / 𝑦]𝜑)
11 nfs1v 2425 . . 3 𝑥[𝑧 / 𝑥][𝑏 / 𝑦]𝜑
12 nfv 1830 . . 3 𝑧[𝑏 / 𝑦]𝜑
13 sbequ12r 2098 . . 3 (𝑧 = 𝑥 → ([𝑧 / 𝑥][𝑏 / 𝑦]𝜑 ↔ [𝑏 / 𝑦]𝜑))
1411, 12, 13cbvrex 3144 . 2 (∃𝑧𝐴 [𝑧 / 𝑥][𝑏 / 𝑦]𝜑 ↔ ∃𝑥𝐴 [𝑏 / 𝑦]𝜑)
152, 10, 143bitri 285 1 (𝑏 ∈ ({⟨𝑥, 𝑦⟩ ∣ 𝜑} “ 𝐴) ↔ ∃𝑥𝐴 [𝑏 / 𝑦]𝜑)
Colors of variables: wff setvar class
Syntax hints:  wb 195  [wsb 1867  wcel 1977  wrex 2897  [wsbc 3402  cop 4131   class class class wbr 4583  {copab 4642  cima 5041
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-9 1986  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590  ax-sep 4709  ax-nul 4717  ax-pr 4833
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-eu 2462  df-mo 2463  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ne 2782  df-ral 2901  df-rex 2902  df-rab 2905  df-v 3175  df-sbc 3403  df-dif 3543  df-un 3545  df-in 3547  df-ss 3554  df-nul 3875  df-if 4037  df-sn 4126  df-pr 4128  df-op 4132  df-br 4584  df-opab 4644  df-xp 5044  df-cnv 5046  df-dm 5048  df-rn 5049  df-res 5050  df-ima 5051
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator