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

Theorem axrepnd 9416
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 9415 . . . 4 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → ∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑))))
2 nfnae 2318 . . . . . . 7 𝑥 ¬ ∀𝑥 𝑥 = 𝑦
3 nfnae 2318 . . . . . . 7 𝑥 ¬ ∀𝑥 𝑥 = 𝑧
42, 3nfan 1828 . . . . . 6 𝑥(¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧)
5 nfnae 2318 . . . . . 6 𝑥 ¬ ∀𝑦 𝑦 = 𝑧
64, 5nfan 1828 . . . . 5 𝑥((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧)
7 nfnae 2318 . . . . . . . . 9 𝑧 ¬ ∀𝑥 𝑥 = 𝑦
8 nfnae 2318 . . . . . . . . 9 𝑧 ¬ ∀𝑥 𝑥 = 𝑧
97, 8nfan 1828 . . . . . . . 8 𝑧(¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧)
10 nfnae 2318 . . . . . . . 8 𝑧 ¬ ∀𝑦 𝑦 = 𝑧
119, 10nfan 1828 . . . . . . 7 𝑧((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧)
12 nfcvf 2788 . . . . . . . . . . . 12 (¬ ∀𝑦 𝑦 = 𝑧𝑦𝑧)
1312adantl 482 . . . . . . . . . . 11 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → 𝑦𝑧)
14 nfcvf2 2789 . . . . . . . . . . . 12 (¬ ∀𝑥 𝑥 = 𝑦𝑦𝑥)
1514ad2antrr 762 . . . . . . . . . . 11 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → 𝑦𝑥)
1613, 15nfeld 2773 . . . . . . . . . 10 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → Ⅎ𝑦 𝑧𝑥)
1716nf5rd 2066 . . . . . . . . 9 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → (𝑧𝑥 → ∀𝑦 𝑧𝑥))
18 sp 2053 . . . . . . . . 9 (∀𝑦 𝑧𝑥𝑧𝑥)
1917, 18impbid1 215 . . . . . . . 8 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → (𝑧𝑥 ↔ ∀𝑦 𝑧𝑥))
20 nfcvf2 2789 . . . . . . . . . . . . . 14 (¬ ∀𝑥 𝑥 = 𝑧𝑧𝑥)
2120ad2antlr 763 . . . . . . . . . . . . 13 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → 𝑧𝑥)
22 nfcvf2 2789 . . . . . . . . . . . . . 14 (¬ ∀𝑦 𝑦 = 𝑧𝑧𝑦)
2322adantl 482 . . . . . . . . . . . . 13 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → 𝑧𝑦)
2421, 23nfeld 2773 . . . . . . . . . . . 12 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → Ⅎ𝑧 𝑥𝑦)
2524nf5rd 2066 . . . . . . . . . . 11 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → (𝑥𝑦 → ∀𝑧 𝑥𝑦))
26 sp 2053 . . . . . . . . . . 11 (∀𝑧 𝑥𝑦𝑥𝑦)
2725, 26impbid1 215 . . . . . . . . . 10 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → (𝑥𝑦 ↔ ∀𝑧 𝑥𝑦))
2827anbi1d 741 . . . . . . . . 9 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → ((𝑥𝑦 ∧ ∀𝑦𝜑) ↔ (∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑)))
296, 28exbid 2091 . . . . . . . 8 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → (∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑) ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑)))
3019, 29bibi12d 335 . . . . . . 7 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → ((𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑)) ↔ (∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))))
3111, 30albid 2090 . . . . . 6 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → (∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑)) ↔ ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))))
3231imbi2d 330 . . . . 5 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → ((∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑))) ↔ (∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑)))))
336, 32exbid 2091 . . . 4 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → (∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(𝑧𝑥 ↔ ∃𝑥(𝑥𝑦 ∧ ∀𝑦𝜑))) ↔ ∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑)))))
341, 33mpbid 222 . . 3 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑥 𝑥 = 𝑧) ∧ ¬ ∀𝑦 𝑦 = 𝑧) → ∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))))
3534exp31 630 . 2 (¬ ∀𝑥 𝑥 = 𝑦 → (¬ ∀𝑥 𝑥 = 𝑧 → (¬ ∀𝑦 𝑦 = 𝑧 → ∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))))))
36 nfae 2316 . . . . 5 𝑧𝑥 𝑥 = 𝑦
37 nd2 9410 . . . . . . 7 (∀𝑦 𝑦 = 𝑥 → ¬ ∀𝑦 𝑧𝑥)
3837aecoms 2312 . . . . . 6 (∀𝑥 𝑥 = 𝑦 → ¬ ∀𝑦 𝑧𝑥)
39 nfae 2316 . . . . . . 7 𝑥𝑥 𝑥 = 𝑦
40 nd3 9411 . . . . . . . 8 (∀𝑥 𝑥 = 𝑦 → ¬ ∀𝑧 𝑥𝑦)
4140intnanrd 963 . . . . . . 7 (∀𝑥 𝑥 = 𝑦 → ¬ (∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))
4239, 41nexd 2089 . . . . . 6 (∀𝑥 𝑥 = 𝑦 → ¬ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))
4338, 422falsed 366 . . . . 5 (∀𝑥 𝑥 = 𝑦 → (∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑)))
4436, 43alrimi 2082 . . . 4 (∀𝑥 𝑥 = 𝑦 → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑)))
4544a1d 25 . . 3 (∀𝑥 𝑥 = 𝑦 → (∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))))
46 19.8a 2052 . . 3 ((∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))) → ∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))))
4745, 46syl 17 . 2 (∀𝑥 𝑥 = 𝑦 → ∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))))
48 nfae 2316 . . . . 5 𝑧𝑥 𝑥 = 𝑧
49 nd4 9412 . . . . . 6 (∀𝑥 𝑥 = 𝑧 → ¬ ∀𝑦 𝑧𝑥)
50 nfae 2316 . . . . . . 7 𝑥𝑥 𝑥 = 𝑧
51 nd1 9409 . . . . . . . . 9 (∀𝑧 𝑧 = 𝑥 → ¬ ∀𝑧 𝑥𝑦)
5251aecoms 2312 . . . . . . . 8 (∀𝑥 𝑥 = 𝑧 → ¬ ∀𝑧 𝑥𝑦)
5352intnanrd 963 . . . . . . 7 (∀𝑥 𝑥 = 𝑧 → ¬ (∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))
5450, 53nexd 2089 . . . . . 6 (∀𝑥 𝑥 = 𝑧 → ¬ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))
5549, 542falsed 366 . . . . 5 (∀𝑥 𝑥 = 𝑧 → (∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑)))
5648, 55alrimi 2082 . . . 4 (∀𝑥 𝑥 = 𝑧 → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑)))
5756a1d 25 . . 3 (∀𝑥 𝑥 = 𝑧 → (∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))))
5857, 46syl 17 . 2 (∀𝑥 𝑥 = 𝑧 → ∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))))
59 nfae 2316 . . . . 5 𝑧𝑦 𝑦 = 𝑧
60 nd1 9409 . . . . . 6 (∀𝑦 𝑦 = 𝑧 → ¬ ∀𝑦 𝑧𝑥)
61 nfae 2316 . . . . . . 7 𝑥𝑦 𝑦 = 𝑧
62 nd2 9410 . . . . . . . . 9 (∀𝑧 𝑧 = 𝑦 → ¬ ∀𝑧 𝑥𝑦)
6362aecoms 2312 . . . . . . . 8 (∀𝑦 𝑦 = 𝑧 → ¬ ∀𝑧 𝑥𝑦)
6463intnanrd 963 . . . . . . 7 (∀𝑦 𝑦 = 𝑧 → ¬ (∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))
6561, 64nexd 2089 . . . . . 6 (∀𝑦 𝑦 = 𝑧 → ¬ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))
6660, 652falsed 366 . . . . 5 (∀𝑦 𝑦 = 𝑧 → (∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑)))
6759, 66alrimi 2082 . . . 4 (∀𝑦 𝑦 = 𝑧 → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑)))
6867a1d 25 . . 3 (∀𝑦 𝑦 = 𝑧 → (∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))))
6968, 46syl 17 . 2 (∀𝑦 𝑦 = 𝑧 → ∃𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑))))
7035, 47, 58, 69pm2.61iii 179 1 𝑥(∃𝑦𝑧(𝜑𝑧 = 𝑦) → ∀𝑧(∀𝑦 𝑧𝑥 ↔ ∃𝑥(∀𝑧 𝑥𝑦 ∧ ∀𝑦𝜑)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 196  wa 384  wal 1481  wex 1704  wnfc 2751
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-8 1992  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602  ax-rep 4771  ax-sep 4781  ax-nul 4789  ax-pr 4906  ax-reg 8497
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-ral 2917  df-rex 2918  df-v 3202  df-dif 3577  df-un 3579  df-nul 3916  df-sn 4178  df-pr 4180
This theorem is referenced by:  zfcndrep  9436  axrepprim  31579
  Copyright terms: Public domain W3C validator