Users' Mathboxes Mathbox for Wolf Lammen < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  wl-sbcom2d Structured version   Visualization version   GIF version

Theorem wl-sbcom2d 32523
Description: Version of sbcom2 2433 with a context, and distinct variable conditions replaced with distinctors. (Contributed by Wolf Lammen, 4-Aug-2019.)
Hypotheses
Ref Expression
wl-sbcom2d.1 (𝜑 → ¬ ∀𝑥 𝑥 = 𝑤)
wl-sbcom2d.2 (𝜑 → ¬ ∀𝑥 𝑥 = 𝑧)
wl-sbcom2d.3 (𝜑 → ¬ ∀𝑧 𝑧 = 𝑦)
Assertion
Ref Expression
wl-sbcom2d (𝜑 → ([𝑤 / 𝑧][𝑦 / 𝑥]𝜓 ↔ [𝑦 / 𝑥][𝑤 / 𝑧]𝜓))

Proof of Theorem wl-sbcom2d
Dummy variables 𝑣 𝑢 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ax6ev 1877 . 2 𝑢 𝑢 = 𝑦
2 ax6ev 1877 . 2 𝑣 𝑣 = 𝑤
3 wl-sbcom2d.2 . . . . . . . 8 (𝜑 → ¬ ∀𝑥 𝑥 = 𝑧)
4 wl-sbcom2d-lem2 32522 . . . . . . . . . . 11 (¬ ∀𝑧 𝑧 = 𝑥 → ([𝑢 / 𝑥][𝑣 / 𝑧]𝜓 ↔ ∀𝑥𝑧((𝑥 = 𝑢𝑧 = 𝑣) → 𝜓)))
5 alcom 2024 . . . . . . . . . . . 12 (∀𝑥𝑧((𝑥 = 𝑢𝑧 = 𝑣) → 𝜓) ↔ ∀𝑧𝑥((𝑥 = 𝑢𝑧 = 𝑣) → 𝜓))
6 ancomst 467 . . . . . . . . . . . . 13 (((𝑥 = 𝑢𝑧 = 𝑣) → 𝜓) ↔ ((𝑧 = 𝑣𝑥 = 𝑢) → 𝜓))
762albii 1738 . . . . . . . . . . . 12 (∀𝑧𝑥((𝑥 = 𝑢𝑧 = 𝑣) → 𝜓) ↔ ∀𝑧𝑥((𝑧 = 𝑣𝑥 = 𝑢) → 𝜓))
85, 7bitri 263 . . . . . . . . . . 11 (∀𝑥𝑧((𝑥 = 𝑢𝑧 = 𝑣) → 𝜓) ↔ ∀𝑧𝑥((𝑧 = 𝑣𝑥 = 𝑢) → 𝜓))
94, 8syl6bb 275 . . . . . . . . . 10 (¬ ∀𝑧 𝑧 = 𝑥 → ([𝑢 / 𝑥][𝑣 / 𝑧]𝜓 ↔ ∀𝑧𝑥((𝑧 = 𝑣𝑥 = 𝑢) → 𝜓)))
109naecoms 2301 . . . . . . . . 9 (¬ ∀𝑥 𝑥 = 𝑧 → ([𝑢 / 𝑥][𝑣 / 𝑧]𝜓 ↔ ∀𝑧𝑥((𝑧 = 𝑣𝑥 = 𝑢) → 𝜓)))
11 wl-sbcom2d-lem2 32522 . . . . . . . . 9 (¬ ∀𝑥 𝑥 = 𝑧 → ([𝑣 / 𝑧][𝑢 / 𝑥]𝜓 ↔ ∀𝑧𝑥((𝑧 = 𝑣𝑥 = 𝑢) → 𝜓)))
1210, 11bitr4d 270 . . . . . . . 8 (¬ ∀𝑥 𝑥 = 𝑧 → ([𝑢 / 𝑥][𝑣 / 𝑧]𝜓 ↔ [𝑣 / 𝑧][𝑢 / 𝑥]𝜓))
133, 12syl 17 . . . . . . 7 (𝜑 → ([𝑢 / 𝑥][𝑣 / 𝑧]𝜓 ↔ [𝑣 / 𝑧][𝑢 / 𝑥]𝜓))
1413adantl 481 . . . . . 6 (((𝑢 = 𝑦𝑣 = 𝑤) ∧ 𝜑) → ([𝑢 / 𝑥][𝑣 / 𝑧]𝜓 ↔ [𝑣 / 𝑧][𝑢 / 𝑥]𝜓))
15 wl-sbcom2d.1 . . . . . . . 8 (𝜑 → ¬ ∀𝑥 𝑥 = 𝑤)
16 wl-sbcom2d-lem1 32521 . . . . . . . 8 ((𝑢 = 𝑦𝑣 = 𝑤) → (¬ ∀𝑥 𝑥 = 𝑤 → ([𝑢 / 𝑥][𝑣 / 𝑧]𝜓 ↔ [𝑦 / 𝑥][𝑤 / 𝑧]𝜓)))
1715, 16syl5 33 . . . . . . 7 ((𝑢 = 𝑦𝑣 = 𝑤) → (𝜑 → ([𝑢 / 𝑥][𝑣 / 𝑧]𝜓 ↔ [𝑦 / 𝑥][𝑤 / 𝑧]𝜓)))
1817imp 444 . . . . . 6 (((𝑢 = 𝑦𝑣 = 𝑤) ∧ 𝜑) → ([𝑢 / 𝑥][𝑣 / 𝑧]𝜓 ↔ [𝑦 / 𝑥][𝑤 / 𝑧]𝜓))
19 wl-sbcom2d.3 . . . . . . . . 9 (𝜑 → ¬ ∀𝑧 𝑧 = 𝑦)
20 wl-sbcom2d-lem1 32521 . . . . . . . . 9 ((𝑣 = 𝑤𝑢 = 𝑦) → (¬ ∀𝑧 𝑧 = 𝑦 → ([𝑣 / 𝑧][𝑢 / 𝑥]𝜓 ↔ [𝑤 / 𝑧][𝑦 / 𝑥]𝜓)))
2119, 20syl5 33 . . . . . . . 8 ((𝑣 = 𝑤𝑢 = 𝑦) → (𝜑 → ([𝑣 / 𝑧][𝑢 / 𝑥]𝜓 ↔ [𝑤 / 𝑧][𝑦 / 𝑥]𝜓)))
2221ancoms 468 . . . . . . 7 ((𝑢 = 𝑦𝑣 = 𝑤) → (𝜑 → ([𝑣 / 𝑧][𝑢 / 𝑥]𝜓 ↔ [𝑤 / 𝑧][𝑦 / 𝑥]𝜓)))
2322imp 444 . . . . . 6 (((𝑢 = 𝑦𝑣 = 𝑤) ∧ 𝜑) → ([𝑣 / 𝑧][𝑢 / 𝑥]𝜓 ↔ [𝑤 / 𝑧][𝑦 / 𝑥]𝜓))
2414, 18, 233bitr3rd 298 . . . . 5 (((𝑢 = 𝑦𝑣 = 𝑤) ∧ 𝜑) → ([𝑤 / 𝑧][𝑦 / 𝑥]𝜓 ↔ [𝑦 / 𝑥][𝑤 / 𝑧]𝜓))
2524exp31 628 . . . 4 (𝑢 = 𝑦 → (𝑣 = 𝑤 → (𝜑 → ([𝑤 / 𝑧][𝑦 / 𝑥]𝜓 ↔ [𝑦 / 𝑥][𝑤 / 𝑧]𝜓))))
2625exlimdv 1848 . . 3 (𝑢 = 𝑦 → (∃𝑣 𝑣 = 𝑤 → (𝜑 → ([𝑤 / 𝑧][𝑦 / 𝑥]𝜓 ↔ [𝑦 / 𝑥][𝑤 / 𝑧]𝜓))))
2726exlimiv 1845 . 2 (∃𝑢 𝑢 = 𝑦 → (∃𝑣 𝑣 = 𝑤 → (𝜑 → ([𝑤 / 𝑧][𝑦 / 𝑥]𝜓 ↔ [𝑦 / 𝑥][𝑤 / 𝑧]𝜓))))
281, 2, 27mp2 9 1 (𝜑 → ([𝑤 / 𝑧][𝑦 / 𝑥]𝜓 ↔ [𝑦 / 𝑥][𝑤 / 𝑧]𝜓))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 195  wa 383  wal 1473  wex 1695  [wsb 1867
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-10 2006  ax-11 2021  ax-12 2034  ax-13 2234
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
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator