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

Theorem sbal2 2461
Description: Move quantifier in and out of substitution. (Contributed by NM, 2-Jan-2002.) Remove a distinct variable constraint. (Revised by Wolf Lammen, 3-Oct-2018.)
Assertion
Ref Expression
sbal2 (¬ ∀𝑥 𝑥 = 𝑦 → ([𝑧 / 𝑦]∀𝑥𝜑 ↔ ∀𝑥[𝑧 / 𝑦]𝜑))
Distinct variable group:   𝑥,𝑧
Allowed substitution hints:   𝜑(𝑥,𝑦,𝑧)

Proof of Theorem sbal2
StepHypRef Expression
1 sb4b 2358 . . . . 5 (¬ ∀𝑦 𝑦 = 𝑧 → ([𝑧 / 𝑦]∀𝑥𝜑 ↔ ∀𝑦(𝑦 = 𝑧 → ∀𝑥𝜑)))
21adantl 482 . . . 4 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑦 𝑦 = 𝑧) → ([𝑧 / 𝑦]∀𝑥𝜑 ↔ ∀𝑦(𝑦 = 𝑧 → ∀𝑥𝜑)))
3 nfnae 2318 . . . . . 6 𝑥 ¬ ∀𝑦 𝑦 = 𝑧
4 sb4b 2358 . . . . . 6 (¬ ∀𝑦 𝑦 = 𝑧 → ([𝑧 / 𝑦]𝜑 ↔ ∀𝑦(𝑦 = 𝑧𝜑)))
53, 4albid 2090 . . . . 5 (¬ ∀𝑦 𝑦 = 𝑧 → (∀𝑥[𝑧 / 𝑦]𝜑 ↔ ∀𝑥𝑦(𝑦 = 𝑧𝜑)))
6 alcom 2037 . . . . . 6 (∀𝑥𝑦(𝑦 = 𝑧𝜑) ↔ ∀𝑦𝑥(𝑦 = 𝑧𝜑))
7 nfnae 2318 . . . . . . 7 𝑦 ¬ ∀𝑥 𝑥 = 𝑦
8 nfeqf1 2299 . . . . . . . 8 (¬ ∀𝑥 𝑥 = 𝑦 → Ⅎ𝑥 𝑦 = 𝑧)
9 19.21t 2073 . . . . . . . 8 (Ⅎ𝑥 𝑦 = 𝑧 → (∀𝑥(𝑦 = 𝑧𝜑) ↔ (𝑦 = 𝑧 → ∀𝑥𝜑)))
108, 9syl 17 . . . . . . 7 (¬ ∀𝑥 𝑥 = 𝑦 → (∀𝑥(𝑦 = 𝑧𝜑) ↔ (𝑦 = 𝑧 → ∀𝑥𝜑)))
117, 10albid 2090 . . . . . 6 (¬ ∀𝑥 𝑥 = 𝑦 → (∀𝑦𝑥(𝑦 = 𝑧𝜑) ↔ ∀𝑦(𝑦 = 𝑧 → ∀𝑥𝜑)))
126, 11syl5bb 272 . . . . 5 (¬ ∀𝑥 𝑥 = 𝑦 → (∀𝑥𝑦(𝑦 = 𝑧𝜑) ↔ ∀𝑦(𝑦 = 𝑧 → ∀𝑥𝜑)))
135, 12sylan9bbr 737 . . . 4 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑦 𝑦 = 𝑧) → (∀𝑥[𝑧 / 𝑦]𝜑 ↔ ∀𝑦(𝑦 = 𝑧 → ∀𝑥𝜑)))
142, 13bitr4d 271 . . 3 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ¬ ∀𝑦 𝑦 = 𝑧) → ([𝑧 / 𝑦]∀𝑥𝜑 ↔ ∀𝑥[𝑧 / 𝑦]𝜑))
1514ex 450 . 2 (¬ ∀𝑥 𝑥 = 𝑦 → (¬ ∀𝑦 𝑦 = 𝑧 → ([𝑧 / 𝑦]∀𝑥𝜑 ↔ ∀𝑥[𝑧 / 𝑦]𝜑)))
16 sbid 2114 . . . 4 ([𝑦 / 𝑦]∀𝑥𝜑 ↔ ∀𝑥𝜑)
17 drsb2 2378 . . . 4 (∀𝑦 𝑦 = 𝑧 → ([𝑦 / 𝑦]∀𝑥𝜑 ↔ [𝑧 / 𝑦]∀𝑥𝜑))
1816, 17syl5bbr 274 . . 3 (∀𝑦 𝑦 = 𝑧 → (∀𝑥𝜑 ↔ [𝑧 / 𝑦]∀𝑥𝜑))
19 sbid 2114 . . . . 5 ([𝑦 / 𝑦]𝜑𝜑)
20 drsb2 2378 . . . . 5 (∀𝑦 𝑦 = 𝑧 → ([𝑦 / 𝑦]𝜑 ↔ [𝑧 / 𝑦]𝜑))
2119, 20syl5bbr 274 . . . 4 (∀𝑦 𝑦 = 𝑧 → (𝜑 ↔ [𝑧 / 𝑦]𝜑))
2221dral2 2324 . . 3 (∀𝑦 𝑦 = 𝑧 → (∀𝑥𝜑 ↔ ∀𝑥[𝑧 / 𝑦]𝜑))
2318, 22bitr3d 270 . 2 (∀𝑦 𝑦 = 𝑧 → ([𝑧 / 𝑦]∀𝑥𝜑 ↔ ∀𝑥[𝑧 / 𝑦]𝜑))
2415, 23pm2.61d2 172 1 (¬ ∀𝑥 𝑥 = 𝑦 → ([𝑧 / 𝑦]∀𝑥𝜑 ↔ ∀𝑥[𝑧 / 𝑦]𝜑))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 196  wa 384  wal 1481  wnf 1708  [wsb 1880
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-10 2019  ax-11 2034  ax-12 2047  ax-13 2246
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
This theorem is referenced by:  2sb5ndVD  39146  2sb5ndALT  39168
  Copyright terms: Public domain W3C validator