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

Theorem 2mo 2651
Description: Two ways of expressing "there exists at most one ordered pair 𝑥, 𝑦 such that 𝜑(𝑥, 𝑦) holds. See also 2mo2 2650. (Contributed by NM, 2-Feb-2005.) (Revised by Mario Carneiro, 17-Oct-2016.) (Proof shortened by Wolf Lammen, 2-Nov-2019.)
Assertion
Ref Expression
2mo (∃𝑧𝑤𝑥𝑦(𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) ↔ ∀𝑥𝑦𝑧𝑤((𝜑 ∧ [𝑧 / 𝑥][𝑤 / 𝑦]𝜑) → (𝑥 = 𝑧𝑦 = 𝑤)))
Distinct variable groups:   𝑥,𝑦,𝑧,𝑤   𝜑,𝑧,𝑤
Allowed substitution hints:   𝜑(𝑥,𝑦)

Proof of Theorem 2mo
StepHypRef Expression
1 2mo2 2650 . . . 4 ((∃*𝑥𝑦𝜑 ∧ ∃*𝑦𝑥𝜑) ↔ ∃𝑧𝑤𝑥𝑦(𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))
2 nfmo1 2558 . . . . . . 7 𝑥∃*𝑥𝑦𝜑
3 nfe1 2153 . . . . . . . 8 𝑥𝑥𝜑
43nfmov 2561 . . . . . . 7 𝑥∃*𝑦𝑥𝜑
52, 4nfan 1907 . . . . . 6 𝑥(∃*𝑥𝑦𝜑 ∧ ∃*𝑦𝑥𝜑)
6 nfe1 2153 . . . . . . . . 9 𝑦𝑦𝜑
76nfmov 2561 . . . . . . . 8 𝑦∃*𝑥𝑦𝜑
8 nfmo1 2558 . . . . . . . 8 𝑦∃*𝑦𝑥𝜑
97, 8nfan 1907 . . . . . . 7 𝑦(∃*𝑥𝑦𝜑 ∧ ∃*𝑦𝑥𝜑)
10 19.8a 2180 . . . . . . . . 9 (𝜑 → ∃𝑦𝜑)
11 spsbe 2090 . . . . . . . . . 10 ([𝑤 / 𝑦]𝜑 → ∃𝑦𝜑)
1211sbimi 2082 . . . . . . . . 9 ([𝑧 / 𝑥][𝑤 / 𝑦]𝜑 → [𝑧 / 𝑥]∃𝑦𝜑)
13 nfv 1922 . . . . . . . . . . . 12 𝑧𝑦𝜑
1413mo3 2565 . . . . . . . . . . 11 (∃*𝑥𝑦𝜑 ↔ ∀𝑥𝑧((∃𝑦𝜑 ∧ [𝑧 / 𝑥]∃𝑦𝜑) → 𝑥 = 𝑧))
1514biimpi 219 . . . . . . . . . 10 (∃*𝑥𝑦𝜑 → ∀𝑥𝑧((∃𝑦𝜑 ∧ [𝑧 / 𝑥]∃𝑦𝜑) → 𝑥 = 𝑧))
161519.21bbi 2189 . . . . . . . . 9 (∃*𝑥𝑦𝜑 → ((∃𝑦𝜑 ∧ [𝑧 / 𝑥]∃𝑦𝜑) → 𝑥 = 𝑧))
1710, 12, 16syl2ani 610 . . . . . . . 8 (∃*𝑥𝑦𝜑 → ((𝜑 ∧ [𝑧 / 𝑥][𝑤 / 𝑦]𝜑) → 𝑥 = 𝑧))
18 19.8a 2180 . . . . . . . . 9 (𝜑 → ∃𝑥𝜑)
19 sbcom2 2167 . . . . . . . . . 10 ([𝑧 / 𝑥][𝑤 / 𝑦]𝜑 ↔ [𝑤 / 𝑦][𝑧 / 𝑥]𝜑)
20 spsbe 2090 . . . . . . . . . . 11 ([𝑧 / 𝑥]𝜑 → ∃𝑥𝜑)
2120sbimi 2082 . . . . . . . . . 10 ([𝑤 / 𝑦][𝑧 / 𝑥]𝜑 → [𝑤 / 𝑦]∃𝑥𝜑)
2219, 21sylbi 220 . . . . . . . . 9 ([𝑧 / 𝑥][𝑤 / 𝑦]𝜑 → [𝑤 / 𝑦]∃𝑥𝜑)
23 nfv 1922 . . . . . . . . . . . 12 𝑤𝑥𝜑
2423mo3 2565 . . . . . . . . . . 11 (∃*𝑦𝑥𝜑 ↔ ∀𝑦𝑤((∃𝑥𝜑 ∧ [𝑤 / 𝑦]∃𝑥𝜑) → 𝑦 = 𝑤))
2524biimpi 219 . . . . . . . . . 10 (∃*𝑦𝑥𝜑 → ∀𝑦𝑤((∃𝑥𝜑 ∧ [𝑤 / 𝑦]∃𝑥𝜑) → 𝑦 = 𝑤))
262519.21bbi 2189 . . . . . . . . 9 (∃*𝑦𝑥𝜑 → ((∃𝑥𝜑 ∧ [𝑤 / 𝑦]∃𝑥𝜑) → 𝑦 = 𝑤))
2718, 22, 26syl2ani 610 . . . . . . . 8 (∃*𝑦𝑥𝜑 → ((𝜑 ∧ [𝑧 / 𝑥][𝑤 / 𝑦]𝜑) → 𝑦 = 𝑤))
2817, 27anim12ii 621 . . . . . . 7 ((∃*𝑥𝑦𝜑 ∧ ∃*𝑦𝑥𝜑) → ((𝜑 ∧ [𝑧 / 𝑥][𝑤 / 𝑦]𝜑) → (𝑥 = 𝑧𝑦 = 𝑤)))
299, 28alrimi 2213 . . . . . 6 ((∃*𝑥𝑦𝜑 ∧ ∃*𝑦𝑥𝜑) → ∀𝑦((𝜑 ∧ [𝑧 / 𝑥][𝑤 / 𝑦]𝜑) → (𝑥 = 𝑧𝑦 = 𝑤)))
305, 29alrimi 2213 . . . . 5 ((∃*𝑥𝑦𝜑 ∧ ∃*𝑦𝑥𝜑) → ∀𝑥𝑦((𝜑 ∧ [𝑧 / 𝑥][𝑤 / 𝑦]𝜑) → (𝑥 = 𝑧𝑦 = 𝑤)))
3130alrimivv 1936 . . . 4 ((∃*𝑥𝑦𝜑 ∧ ∃*𝑦𝑥𝜑) → ∀𝑧𝑤𝑥𝑦((𝜑 ∧ [𝑧 / 𝑥][𝑤 / 𝑦]𝜑) → (𝑥 = 𝑧𝑦 = 𝑤)))
321, 31sylbir 238 . . 3 (∃𝑧𝑤𝑥𝑦(𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) → ∀𝑧𝑤𝑥𝑦((𝜑 ∧ [𝑧 / 𝑥][𝑤 / 𝑦]𝜑) → (𝑥 = 𝑧𝑦 = 𝑤)))
33 nfs1v 2159 . . . . . . . 8 𝑥[𝑧 / 𝑥][𝑤 / 𝑦]𝜑
34 nfs1v 2159 . . . . . . . . . 10 𝑦[𝑤 / 𝑦]𝜑
3534nfsbv 2331 . . . . . . . . 9 𝑦[𝑧 / 𝑥][𝑤 / 𝑦]𝜑
36 pm3.21 475 . . . . . . . . . 10 ([𝑧 / 𝑥][𝑤 / 𝑦]𝜑 → (𝜑 → (𝜑 ∧ [𝑧 / 𝑥][𝑤 / 𝑦]𝜑)))
3736imim1d 82 . . . . . . . . 9 ([𝑧 / 𝑥][𝑤 / 𝑦]𝜑 → (((𝜑 ∧ [𝑧 / 𝑥][𝑤 / 𝑦]𝜑) → (𝑥 = 𝑧𝑦 = 𝑤)) → (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
3835, 37alimd 2212 . . . . . . . 8 ([𝑧 / 𝑥][𝑤 / 𝑦]𝜑 → (∀𝑦((𝜑 ∧ [𝑧 / 𝑥][𝑤 / 𝑦]𝜑) → (𝑥 = 𝑧𝑦 = 𝑤)) → ∀𝑦(𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
3933, 38alimd 2212 . . . . . . 7 ([𝑧 / 𝑥][𝑤 / 𝑦]𝜑 → (∀𝑥𝑦((𝜑 ∧ [𝑧 / 𝑥][𝑤 / 𝑦]𝜑) → (𝑥 = 𝑧𝑦 = 𝑤)) → ∀𝑥𝑦(𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
4039com12 32 . . . . . 6 (∀𝑥𝑦((𝜑 ∧ [𝑧 / 𝑥][𝑤 / 𝑦]𝜑) → (𝑥 = 𝑧𝑦 = 𝑤)) → ([𝑧 / 𝑥][𝑤 / 𝑦]𝜑 → ∀𝑥𝑦(𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
4140aleximi 1839 . . . . 5 (∀𝑤𝑥𝑦((𝜑 ∧ [𝑧 / 𝑥][𝑤 / 𝑦]𝜑) → (𝑥 = 𝑧𝑦 = 𝑤)) → (∃𝑤[𝑧 / 𝑥][𝑤 / 𝑦]𝜑 → ∃𝑤𝑥𝑦(𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
4241aleximi 1839 . . . 4 (∀𝑧𝑤𝑥𝑦((𝜑 ∧ [𝑧 / 𝑥][𝑤 / 𝑦]𝜑) → (𝑥 = 𝑧𝑦 = 𝑤)) → (∃𝑧𝑤[𝑧 / 𝑥][𝑤 / 𝑦]𝜑 → ∃𝑧𝑤𝑥𝑦(𝜑 → (𝑥 = 𝑧𝑦 = 𝑤))))
43 2nexaln 1837 . . . . . 6 (¬ ∃𝑥𝑦𝜑 ↔ ∀𝑥𝑦 ¬ 𝜑)
44 nfv 1922 . . . . . . 7 𝑤𝜑
45 nfv 1922 . . . . . . 7 𝑧𝜑
4644, 452sb8ev 2357 . . . . . 6 (∃𝑥𝑦𝜑 ↔ ∃𝑧𝑤[𝑧 / 𝑥][𝑤 / 𝑦]𝜑)
4743, 46xchnxbi 335 . . . . 5 (¬ ∃𝑧𝑤[𝑧 / 𝑥][𝑤 / 𝑦]𝜑 ↔ ∀𝑥𝑦 ¬ 𝜑)
48 pm2.21 123 . . . . . . . . 9 𝜑 → (𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))
49482alimi 1820 . . . . . . . 8 (∀𝑥𝑦 ¬ 𝜑 → ∀𝑥𝑦(𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))
50492eximi 1843 . . . . . . 7 (∃𝑧𝑤𝑥𝑦 ¬ 𝜑 → ∃𝑧𝑤𝑥𝑦(𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))
515019.23bi 2190 . . . . . 6 (∃𝑤𝑥𝑦 ¬ 𝜑 → ∃𝑧𝑤𝑥𝑦(𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))
525119.23bi 2190 . . . . 5 (∀𝑥𝑦 ¬ 𝜑 → ∃𝑧𝑤𝑥𝑦(𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))
5347, 52sylbi 220 . . . 4 (¬ ∃𝑧𝑤[𝑧 / 𝑥][𝑤 / 𝑦]𝜑 → ∃𝑧𝑤𝑥𝑦(𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))
5442, 53pm2.61d1 183 . . 3 (∀𝑧𝑤𝑥𝑦((𝜑 ∧ [𝑧 / 𝑥][𝑤 / 𝑦]𝜑) → (𝑥 = 𝑧𝑦 = 𝑤)) → ∃𝑧𝑤𝑥𝑦(𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)))
5532, 54impbii 212 . 2 (∃𝑧𝑤𝑥𝑦(𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) ↔ ∀𝑧𝑤𝑥𝑦((𝜑 ∧ [𝑧 / 𝑥][𝑤 / 𝑦]𝜑) → (𝑥 = 𝑧𝑦 = 𝑤)))
56 alrot4 2164 . 2 (∀𝑧𝑤𝑥𝑦((𝜑 ∧ [𝑧 / 𝑥][𝑤 / 𝑦]𝜑) → (𝑥 = 𝑧𝑦 = 𝑤)) ↔ ∀𝑥𝑦𝑧𝑤((𝜑 ∧ [𝑧 / 𝑥][𝑤 / 𝑦]𝜑) → (𝑥 = 𝑧𝑦 = 𝑤)))
5755, 56bitri 278 1 (∃𝑧𝑤𝑥𝑦(𝜑 → (𝑥 = 𝑧𝑦 = 𝑤)) ↔ ∀𝑥𝑦𝑧𝑤((𝜑 ∧ [𝑧 / 𝑥][𝑤 / 𝑦]𝜑) → (𝑥 = 𝑧𝑦 = 𝑤)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399  wal 1541  wex 1787  [wsb 2072  ∃*wmo 2539
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-10 2143  ax-11 2160  ax-12 2177
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-tru 1546  df-ex 1788  df-nf 1792  df-sb 2073  df-mo 2541
This theorem is referenced by:  2mos  2652
  Copyright terms: Public domain W3C validator