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

Theorem sbralie 3317
Description: Implicit to explicit substitution that swaps variables in a restrictedly universally quantified expression. (Contributed by NM, 5-Sep-2004.) Avoid ax-ext 2711, df-cleq 2731, df-clel 2814. (Revised by Wolf Lammen, 10-Mar-2025.) Avoid ax-10 2152, ax-12 2189. (Revised by SN, 13-Nov-2025.)
Hypothesis
Ref Expression
sbralie.1 (𝑥 = 𝑦 → (𝜑𝜓))
Assertion
Ref Expression
sbralie (∀𝑥𝑦 𝜑 ↔ [𝑦 / 𝑥]∀𝑦𝑥 𝜓)
Distinct variable groups:   𝑥,𝑦   𝜓,𝑥   𝜑,𝑦
Allowed substitution hints:   𝜑(𝑥)   𝜓(𝑦)

Proof of Theorem sbralie
Dummy variable 𝑧 is distinct from all other variables.
StepHypRef Expression
1 df-ral 3054 . 2 (∀𝑥𝑦 𝜑 ↔ ∀𝑥(𝑥𝑦𝜑))
2 elequ2 2134 . . . . 5 (𝑧 = 𝑦 → (𝑥𝑧𝑥𝑦))
32imbi1d 342 . . . 4 (𝑧 = 𝑦 → ((𝑥𝑧𝜑) ↔ (𝑥𝑦𝜑)))
43sbievw 2104 . . 3 ([𝑦 / 𝑧](𝑥𝑧𝜑) ↔ (𝑥𝑦𝜑))
54albii 1826 . 2 (∀𝑥[𝑦 / 𝑧](𝑥𝑧𝜑) ↔ ∀𝑥(𝑥𝑦𝜑))
6 elequ1 2126 . . . . . . 7 (𝑥 = 𝑦 → (𝑥𝑧𝑦𝑧))
7 sbralie.1 . . . . . . 7 (𝑥 = 𝑦 → (𝜑𝜓))
86, 7imbi12d 345 . . . . . 6 (𝑥 = 𝑦 → ((𝑥𝑧𝜑) ↔ (𝑦𝑧𝜓)))
98cbvalvw 2043 . . . . 5 (∀𝑥(𝑥𝑧𝜑) ↔ ∀𝑦(𝑦𝑧𝜓))
10 df-ral 3054 . . . . . . 7 (∀𝑦𝑥 𝜓 ↔ ∀𝑦(𝑦𝑥𝜓))
1110sbbii 2087 . . . . . 6 ([𝑧 / 𝑥]∀𝑦𝑥 𝜓 ↔ [𝑧 / 𝑥]∀𝑦(𝑦𝑥𝜓))
12 sbal 2180 . . . . . 6 ([𝑧 / 𝑥]∀𝑦(𝑦𝑥𝜓) ↔ ∀𝑦[𝑧 / 𝑥](𝑦𝑥𝜓))
13 elequ2 2134 . . . . . . . . 9 (𝑥 = 𝑧 → (𝑦𝑥𝑦𝑧))
1413imbi1d 342 . . . . . . . 8 (𝑥 = 𝑧 → ((𝑦𝑥𝜓) ↔ (𝑦𝑧𝜓)))
1514sbievw 2104 . . . . . . 7 ([𝑧 / 𝑥](𝑦𝑥𝜓) ↔ (𝑦𝑧𝜓))
1615albii 1826 . . . . . 6 (∀𝑦[𝑧 / 𝑥](𝑦𝑥𝜓) ↔ ∀𝑦(𝑦𝑧𝜓))
1711, 12, 163bitrri 299 . . . . 5 (∀𝑦(𝑦𝑧𝜓) ↔ [𝑧 / 𝑥]∀𝑦𝑥 𝜓)
189, 17bitri 276 . . . 4 (∀𝑥(𝑥𝑧𝜑) ↔ [𝑧 / 𝑥]∀𝑦𝑥 𝜓)
1918sbbii 2087 . . 3 ([𝑦 / 𝑧]∀𝑥(𝑥𝑧𝜑) ↔ [𝑦 / 𝑧][𝑧 / 𝑥]∀𝑦𝑥 𝜓)
20 sbal 2180 . . 3 ([𝑦 / 𝑧]∀𝑥(𝑥𝑧𝜑) ↔ ∀𝑥[𝑦 / 𝑧](𝑥𝑧𝜑))
21 sbco2vv 2110 . . 3 ([𝑦 / 𝑧][𝑧 / 𝑥]∀𝑦𝑥 𝜓 ↔ [𝑦 / 𝑥]∀𝑦𝑥 𝜓)
2219, 20, 213bitr3i 302 . 2 (∀𝑥[𝑦 / 𝑧](𝑥𝑧𝜑) ↔ [𝑦 / 𝑥]∀𝑦𝑥 𝜓)
231, 5, 223bitr2i 300 1 (∀𝑥𝑦 𝜑 ↔ [𝑦 / 𝑥]∀𝑦𝑥 𝜓)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 207  wal 1545  [wsb 2073  wral 3053
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1802  ax-4 1816  ax-5 1917  ax-6 1974  ax-7 2015  ax-8 2121  ax-9 2129  ax-11 2168
This theorem depends on definitions:  df-bi 208  df-an 397  df-ex 1787  df-sb 2074  df-ral 3054
This theorem is referenced by:  tfinds2  7804
  Copyright terms: Public domain W3C validator