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

Theorem sbralie 3340
Description: Implicit to explicit substitution that swaps variables in a restrictedly universally quantified expression. (Contributed by NM, 5-Sep-2004.) Avoid ax-ext 2734, df-cleq 2754, df-clel 2837. (Revised by Wolf Lammen, 10-Mar-2025.) Avoid ax-10 2175, ax-12 2212. (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 3077 . 2 (∀𝑥𝑦 𝜑 ↔ ∀𝑥(𝑥𝑦𝜑))
2 elequ2 2157 . . . . 5 (𝑧 = 𝑦 → (𝑥𝑧𝑥𝑦))
32imbi1d 343 . . . 4 (𝑧 = 𝑦 → ((𝑥𝑧𝜑) ↔ (𝑥𝑦𝜑)))
43sbievw 2127 . . 3 ([𝑦 / 𝑧](𝑥𝑧𝜑) ↔ (𝑥𝑦𝜑))
54albii 1839 . 2 (∀𝑥[𝑦 / 𝑧](𝑥𝑧𝜑) ↔ ∀𝑥(𝑥𝑦𝜑))
6 elequ1 2149 . . . . . . 7 (𝑥 = 𝑦 → (𝑥𝑧𝑦𝑧))
7 sbralie.1 . . . . . . 7 (𝑥 = 𝑦 → (𝜑𝜓))
86, 7imbi12d 346 . . . . . 6 (𝑥 = 𝑦 → ((𝑥𝑧𝜑) ↔ (𝑦𝑧𝜓)))
98cbvalvw 2056 . . . . 5 (∀𝑥(𝑥𝑧𝜑) ↔ ∀𝑦(𝑦𝑧𝜓))
10 df-ral 3077 . . . . . . 7 (∀𝑦𝑥 𝜓 ↔ ∀𝑦(𝑦𝑥𝜓))
1110sbbii 2109 . . . . . 6 ([𝑧 / 𝑥]∀𝑦𝑥 𝜓 ↔ [𝑧 / 𝑥]∀𝑦(𝑦𝑥𝜓))
12 sbal 2203 . . . . . 6 ([𝑧 / 𝑥]∀𝑦(𝑦𝑥𝜓) ↔ ∀𝑦[𝑧 / 𝑥](𝑦𝑥𝜓))
13 elequ2 2157 . . . . . . . . 9 (𝑥 = 𝑧 → (𝑦𝑥𝑦𝑧))
1413imbi1d 343 . . . . . . . 8 (𝑥 = 𝑧 → ((𝑦𝑥𝜓) ↔ (𝑦𝑧𝜓)))
1514sbievw 2127 . . . . . . 7 ([𝑧 / 𝑥](𝑦𝑥𝜓) ↔ (𝑦𝑧𝜓))
1615albii 1839 . . . . . 6 (∀𝑦[𝑧 / 𝑥](𝑦𝑥𝜓) ↔ ∀𝑦(𝑦𝑧𝜓))
1711, 12, 163bitrri 300 . . . . 5 (∀𝑦(𝑦𝑧𝜓) ↔ [𝑧 / 𝑥]∀𝑦𝑥 𝜓)
189, 17bitri 277 . . . 4 (∀𝑥(𝑥𝑧𝜑) ↔ [𝑧 / 𝑥]∀𝑦𝑥 𝜓)
1918sbbii 2109 . . 3 ([𝑦 / 𝑧]∀𝑥(𝑥𝑧𝜑) ↔ [𝑦 / 𝑧][𝑧 / 𝑥]∀𝑦𝑥 𝜓)
20 sbal 2203 . . 3 ([𝑦 / 𝑧]∀𝑥(𝑥𝑧𝜑) ↔ ∀𝑥[𝑦 / 𝑧](𝑥𝑧𝜑))
21 sbco2vv 2133 . . 3 ([𝑦 / 𝑧][𝑧 / 𝑥]∀𝑦𝑥 𝜓 ↔ [𝑦 / 𝑥]∀𝑦𝑥 𝜓)
2219, 20, 213bitr3i 303 . 2 (∀𝑥[𝑦 / 𝑧](𝑥𝑧𝜑) ↔ [𝑦 / 𝑥]∀𝑦𝑥 𝜓)
231, 5, 223bitr2i 301 1 (∀𝑥𝑦 𝜑 ↔ [𝑦 / 𝑥]∀𝑦𝑥 𝜓)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wal 1558  [wsb 2090  wral 3076
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1815  ax-4 1829  ax-5 1930  ax-6 1987  ax-7 2028  ax-8 2144  ax-9 2152  ax-11 2191
This theorem depends on definitions:  df-bi 209  df-an 400  df-ex 1800  df-sb 2091  df-ral 3077
This theorem is referenced by:  tfinds2  7844
  Copyright terms: Public domain W3C validator