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

Theorem axrepnd 9295
Description: A version of the Axiom of Replacement with no distinct variable conditions. (Contributed by NM, 2-Jan-2002.)
Assertion
Ref Expression
axrepnd 𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑)))

Proof of Theorem axrepnd
StepHypRef Expression
1 axrepndlem2 9294 . . . 4 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → ∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑))))
2 nfnae 2306 . . . . . . 7 𝑥 ¬ ∀𝑥 𝑥 = 𝑦
3 nfnae 2306 . . . . . . 7 𝑥 ¬ ∀𝑥 𝑥 = 𝑧
42, 3nfan 1816 . . . . . 6 𝑥(¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧)
5 nfnae 2306 . . . . . 6 𝑥 ¬ ∀𝑦 𝑦 = 𝑧
64, 5nfan 1816 . . . . 5 𝑥((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧)
7 nfnae 2306 . . . . . . . . 9 𝑧 ¬ ∀𝑥 𝑥 = 𝑦
8 nfnae 2306 . . . . . . . . 9 𝑧 ¬ ∀𝑥 𝑥 = 𝑧
97, 8nfan 1816 . . . . . . . 8 𝑧(¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧)
10 nfnae 2306 . . . . . . . 8 𝑧 ¬ ∀𝑦 𝑦 = 𝑧
119, 10nfan 1816 . . . . . . 7 𝑧((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧)
12 nfcvf 2774 . . . . . . . . . . . 12 (¬ ∀𝑦 𝑦 = 𝑧𝑦𝑧)
1312adantl 481 . . . . . . . . . . 11 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → 𝑦𝑧)
14 nfcvf2 2775 . . . . . . . . . . . 12 (¬ ∀𝑥 𝑥 = 𝑦𝑦𝑥)
1514ad2antrr 758 . . . . . . . . . . 11 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → 𝑦𝑥)
1613, 15nfeld 2759 . . . . . . . . . 10 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → Ⅎ𝑦 𝑧𝑥)
1716nf5rd 2054 . . . . . . . . 9 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → (𝑧𝑥 → ∀𝑦 𝑧𝑥))
18 sp 2041 . . . . . . . . 9 (∀𝑦 𝑧𝑥𝑧𝑥)
1917, 18impbid1 214 . . . . . . . 8 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → (𝑧𝑥 ↔ ∀𝑦 𝑧𝑥))
20 nfcvf2 2775 . . . . . . . . . . . . . 14 (¬ ∀𝑥 𝑥 = 𝑧𝑧𝑥)
2120ad2antlr 759 . . . . . . . . . . . . 13 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → 𝑧𝑥)
22 nfcvf2 2775 . . . . . . . . . . . . . 14 (¬ ∀𝑦 𝑦 = 𝑧𝑧𝑦)
2322adantl 481 . . . . . . . . . . . . 13 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → 𝑧𝑦)
2421, 23nfeld 2759 . . . . . . . . . . . 12 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → Ⅎ𝑧 𝑥𝑦)
2524nf5rd 2054 . . . . . . . . . . 11 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → (𝑥𝑦 → ∀𝑧 𝑥𝑦))
26 sp 2041 . . . . . . . . . . 11 (∀𝑧 𝑥𝑦𝑥𝑦)
2725, 26impbid1 214 . . . . . . . . . 10 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → (𝑥𝑦 ↔ ∀𝑧 𝑥𝑦))
2827anbi1d 737 . . . . . . . . 9 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → ((𝑥𝑦 ∧ ∀𝑦𝜑) ↔ (∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑)))
296, 28exbid 2078 . . . . . . . 8 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → (∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑) ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑)))
3019, 29bibi12d 334 . . . . . . 7 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → ((𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑)) ↔ (∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))))
3111, 30albid 2077 . . . . . 6 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → (∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑)) ↔ ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))))
3231imbi2d 329 . . . . 5 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → ((∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑))) ↔ (∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑)))))
336, 32exbid 2078 . . . 4 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → (∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑))) ↔ ∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑)))))
341, 33mpbid 221 . . 3 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → ∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))))
3534exp31 628 . 2 (¬ ∀𝑥 𝑥 = 𝑦 → (¬ ∀𝑥 𝑥 = 𝑧 → (¬ ∀𝑦 𝑦 = 𝑧 → ∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))))))
36 nfae 2304 . . . . 5 𝑧𝑥 𝑥 = 𝑦
37 nd2 9289 . . . . . . 7 (∀𝑦 𝑦 = 𝑥 → ¬ ∀𝑦 𝑧𝑥)
3837aecoms 2300 . . . . . 6 (∀𝑥 𝑥 = 𝑦 → ¬ ∀𝑦 𝑧𝑥)
39 nfae 2304 . . . . . . 7 𝑥𝑥 𝑥 = 𝑦
40 nd3 9290 . . . . . . . 8 (∀𝑥 𝑥 = 𝑦 → ¬ ∀𝑧 𝑥𝑦)
4140intnanrd 954 . . . . . . 7 (∀𝑥 𝑥 = 𝑦 → ¬ (∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))
4239, 41nexd 2076 . . . . . 6 (∀𝑥 𝑥 = 𝑦 → ¬ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))
4338, 422falsed 365 . . . . 5 (∀𝑥 𝑥 = 𝑦 → (∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑)))
4436, 43alrimi 2069 . . . 4 (∀𝑥 𝑥 = 𝑦 → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑)))
4544a1d 25 . . 3 (∀𝑥 𝑥 = 𝑦 → (∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))))
46 19.8a 2039 . . 3 ((∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))) → ∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))))
4745, 46syl 17 . 2 (∀𝑥 𝑥 = 𝑦 → ∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))))
48 nfae 2304 . . . . 5 𝑧𝑥 𝑥 = 𝑧
49 nd4 9291 . . . . . 6 (∀𝑥 𝑥 = 𝑧 → ¬ ∀𝑦 𝑧𝑥)
50 nfae 2304 . . . . . . 7 𝑥𝑥 𝑥 = 𝑧
51 nd1 9288 . . . . . . . . 9 (∀𝑧 𝑧 = 𝑥 → ¬ ∀𝑧 𝑥𝑦)
5251aecoms 2300 . . . . . . . 8 (∀𝑥 𝑥 = 𝑧 → ¬ ∀𝑧 𝑥𝑦)
5352intnanrd 954 . . . . . . 7 (∀𝑥 𝑥 = 𝑧 → ¬ (∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))
5450, 53nexd 2076 . . . . . 6 (∀𝑥 𝑥 = 𝑧 → ¬ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))
5549, 542falsed 365 . . . . 5 (∀𝑥 𝑥 = 𝑧 → (∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑)))
5648, 55alrimi 2069 . . . 4 (∀𝑥 𝑥 = 𝑧 → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑)))
5756a1d 25 . . 3 (∀𝑥 𝑥 = 𝑧 → (∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))))
5857, 46syl 17 . 2 (∀𝑥 𝑥 = 𝑧 → ∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))))
59 nfae 2304 . . . . 5 𝑧𝑦 𝑦 = 𝑧
60 nd1 9288 . . . . . 6 (∀𝑦 𝑦 = 𝑧 → ¬ ∀𝑦 𝑧𝑥)
61 nfae 2304 . . . . . . 7 𝑥𝑦 𝑦 = 𝑧
62 nd2 9289 . . . . . . . . 9 (∀𝑧 𝑧 = 𝑦 → ¬ ∀𝑧 𝑥𝑦)
6362aecoms 2300 . . . . . . . 8 (∀𝑦 𝑦 = 𝑧 → ¬ ∀𝑧 𝑥𝑦)
6463intnanrd 954 . . . . . . 7 (∀𝑦 𝑦 = 𝑧 → ¬ (∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))
6561, 64nexd 2076 . . . . . 6 (∀𝑦 𝑦 = 𝑧 → ¬ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))
6660, 652falsed 365 . . . . 5 (∀𝑦 𝑦 = 𝑧 → (∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑)))
6759, 66alrimi 2069 . . . 4 (∀𝑦 𝑦 = 𝑧 → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑)))
6867a1d 25 . . 3 (∀𝑦 𝑦 = 𝑧 → (∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))))
6968, 46syl 17 . 2 (∀𝑦 𝑦 = 𝑧 → ∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))))
7035, 47, 58, 69pm2.61iii 178 1 𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 195  wa 383  wal 1473  wex 1695  wnfc 2738
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-8 1979  ax-9 1986  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590  ax-rep 4699  ax-sep 4709  ax-nul 4717  ax-pr 4833  ax-reg 8380
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ral 2901  df-rex 2902  df-v 3175  df-dif 3543  df-un 3545  df-nul 3875  df-sn 4126  df-pr 4128
This theorem is referenced by:  zfcndrep  9315  axrepprim  30833
  Copyright terms: Public domain W3C validator