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

Theorem sbralie 3318
Description: Implicit to explicit substitution that swaps variables in a restrictedly universally quantified expression. (Contributed by NM, 5-Sep-2004.) Avoid ax-ext 2703, df-cleq 2723, df-clel 2806. (Revised by Wolf Lammen, 10-Mar-2025.) Avoid ax-10 2144, ax-12 2180. (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 3048 . 2 (∀𝑥𝑦 𝜑 ↔ ∀𝑥(𝑥𝑦𝜑))
2 elequ2 2126 . . . . 5 (𝑧 = 𝑦 → (𝑥𝑧𝑥𝑦))
32imbi1d 341 . . . 4 (𝑧 = 𝑦 → ((𝑥𝑧𝜑) ↔ (𝑥𝑦𝜑)))
43sbievw 2096 . . 3 ([𝑦 / 𝑧](𝑥𝑧𝜑) ↔ (𝑥𝑦𝜑))
54albii 1820 . 2 (∀𝑥[𝑦 / 𝑧](𝑥𝑧𝜑) ↔ ∀𝑥(𝑥𝑦𝜑))
6 elequ1 2118 . . . . . . 7 (𝑥 = 𝑦 → (𝑥𝑧𝑦𝑧))
7 sbralie.1 . . . . . . 7 (𝑥 = 𝑦 → (𝜑𝜓))
86, 7imbi12d 344 . . . . . 6 (𝑥 = 𝑦 → ((𝑥𝑧𝜑) ↔ (𝑦𝑧𝜓)))
98cbvalvw 2037 . . . . 5 (∀𝑥(𝑥𝑧𝜑) ↔ ∀𝑦(𝑦𝑧𝜓))
10 df-ral 3048 . . . . . . 7 (∀𝑦𝑥 𝜓 ↔ ∀𝑦(𝑦𝑥𝜓))
1110sbbii 2079 . . . . . 6 ([𝑧 / 𝑥]∀𝑦𝑥 𝜓 ↔ [𝑧 / 𝑥]∀𝑦(𝑦𝑥𝜓))
12 sbal 2172 . . . . . 6 ([𝑧 / 𝑥]∀𝑦(𝑦𝑥𝜓) ↔ ∀𝑦[𝑧 / 𝑥](𝑦𝑥𝜓))
13 elequ2 2126 . . . . . . . . 9 (𝑥 = 𝑧 → (𝑦𝑥𝑦𝑧))
1413imbi1d 341 . . . . . . . 8 (𝑥 = 𝑧 → ((𝑦𝑥𝜓) ↔ (𝑦𝑧𝜓)))
1514sbievw 2096 . . . . . . 7 ([𝑧 / 𝑥](𝑦𝑥𝜓) ↔ (𝑦𝑧𝜓))
1615albii 1820 . . . . . 6 (∀𝑦[𝑧 / 𝑥](𝑦𝑥𝜓) ↔ ∀𝑦(𝑦𝑧𝜓))
1711, 12, 163bitrri 298 . . . . 5 (∀𝑦(𝑦𝑧𝜓) ↔ [𝑧 / 𝑥]∀𝑦𝑥 𝜓)
189, 17bitri 275 . . . 4 (∀𝑥(𝑥𝑧𝜑) ↔ [𝑧 / 𝑥]∀𝑦𝑥 𝜓)
1918sbbii 2079 . . 3 ([𝑦 / 𝑧]∀𝑥(𝑥𝑧𝜑) ↔ [𝑦 / 𝑧][𝑧 / 𝑥]∀𝑦𝑥 𝜓)
20 sbal 2172 . . 3 ([𝑦 / 𝑧]∀𝑥(𝑥𝑧𝜑) ↔ ∀𝑥[𝑦 / 𝑧](𝑥𝑧𝜑))
21 sbco2vv 2102 . . 3 ([𝑦 / 𝑧][𝑧 / 𝑥]∀𝑦𝑥 𝜓 ↔ [𝑦 / 𝑥]∀𝑦𝑥 𝜓)
2219, 20, 213bitr3i 301 . 2 (∀𝑥[𝑦 / 𝑧](𝑥𝑧𝜑) ↔ [𝑦 / 𝑥]∀𝑦𝑥 𝜓)
231, 5, 223bitr2i 299 1 (∀𝑥𝑦 𝜑 ↔ [𝑦 / 𝑥]∀𝑦𝑥 𝜓)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 206  wal 1539  [wsb 2067  wral 3047
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1968  ax-7 2009  ax-8 2113  ax-9 2121  ax-11 2160
This theorem depends on definitions:  df-bi 207  df-an 396  df-ex 1781  df-sb 2068  df-ral 3048
This theorem is referenced by:  tfinds2  7794
  Copyright terms: Public domain W3C validator