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

Theorem sbralie 3339
Description: Implicit to explicit substitution that swaps variables in a restrictedly universally quantified expression. (Contributed by NM, 5-Sep-2004.) Avoid ax-ext 2733, df-cleq 2753, df-clel 2836. (Revised by Wolf Lammen, 10-Mar-2025.) Avoid ax-10 2178, ax-12 2213. (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 3078 . 2 (∀𝑥 ∈ 𝑦 𝜑 ↔ ∀𝑥(𝑥 ∈ 𝑦 → 𝜑))
2 elequ2 2160 . . . . 5 (𝑧 = 𝑦 → (𝑥 ∈ 𝑧 ↔ 𝑥 ∈ 𝑦))
32imbi1d 344 . . . 4 (𝑧 = 𝑦 → ((𝑥 ∈ 𝑧 → 𝜑) ↔ (𝑥 ∈ 𝑦 → 𝜑)))
43sbievw 2131 . . 3 ([𝑦 / 𝑧](𝑥 ∈ 𝑧 → 𝜑) ↔ (𝑥 ∈ 𝑦 → 𝜑))
54albii 1852 . 2 (∀𝑥[𝑦 / 𝑧](𝑥 ∈ 𝑧 → 𝜑) ↔ ∀𝑥(𝑥 ∈ 𝑦 → 𝜑))
6 elequ1 2152 . . . . . . 7 (𝑥 = 𝑦 → (𝑥 ∈ 𝑧 ↔ 𝑦 ∈ 𝑧))
7 sbralie.1 . . . . . . 7 (𝑥 = 𝑦 → (𝜑 ↔ 𝜓))
86, 7imbi12d 347 . . . . . 6 (𝑥 = 𝑦 → ((𝑥 ∈ 𝑧 → 𝜑) ↔ (𝑦 ∈ 𝑧 → 𝜓)))
98cbvalvw 2069 . . . . 5 (∀𝑥(𝑥 ∈ 𝑧 → 𝜑) ↔ ∀𝑦(𝑦 ∈ 𝑧 → 𝜓))
10 df-ral 3078 . . . . . . 7 (∀𝑦 ∈ 𝑥 𝜓 ↔ ∀𝑦(𝑦 ∈ 𝑥 → 𝜓))
1110sbbii 2113 . . . . . 6 ([𝑧 / 𝑥]∀𝑦 ∈ 𝑥 𝜓 ↔ [𝑧 / 𝑥]∀𝑦(𝑦 ∈ 𝑥 → 𝜓))
12 sbal 2206 . . . . . 6 ([𝑧 / 𝑥]∀𝑦(𝑦 ∈ 𝑥 → 𝜓) ↔ ∀𝑦[𝑧 / 𝑥](𝑦 ∈ 𝑥 → 𝜓))
13 elequ2 2160 . . . . . . . . 9 (𝑥 = 𝑧 → (𝑦 ∈ 𝑥 ↔ 𝑦 ∈ 𝑧))
1413imbi1d 344 . . . . . . . 8 (𝑥 = 𝑧 → ((𝑦 ∈ 𝑥 → 𝜓) ↔ (𝑦 ∈ 𝑧 → 𝜓)))
1514sbievw 2131 . . . . . . 7 ([𝑧 / 𝑥](𝑦 ∈ 𝑥 → 𝜓) ↔ (𝑦 ∈ 𝑧 → 𝜓))
1615albii 1852 . . . . . 6 (∀𝑦[𝑧 / 𝑥](𝑦 ∈ 𝑥 → 𝜓) ↔ ∀𝑦(𝑦 ∈ 𝑧 → 𝜓))
1711, 12, 163bitrri 301 . . . . 5 (∀𝑦(𝑦 ∈ 𝑧 → 𝜓) ↔ [𝑧 / 𝑥]∀𝑦 ∈ 𝑥 𝜓)
189, 17bitri 278 . . . 4 (∀𝑥(𝑥 ∈ 𝑧 → 𝜑) ↔ [𝑧 / 𝑥]∀𝑦 ∈ 𝑥 𝜓)
1918sbbii 2113 . . 3 ([𝑦 / 𝑧]∀𝑥(𝑥 ∈ 𝑧 → 𝜑) ↔ [𝑦 / 𝑧][𝑧 / 𝑥]∀𝑦 ∈ 𝑥 𝜓)
20 sbal 2206 . . 3 ([𝑦 / 𝑧]∀𝑥(𝑥 ∈ 𝑧 → 𝜑) ↔ ∀𝑥[𝑦 / 𝑧](𝑥 ∈ 𝑧 → 𝜑))
21 sbco2vv 2136 . . 3 ([𝑦 / 𝑧][𝑧 / 𝑥]∀𝑦 ∈ 𝑥 𝜓 ↔ [𝑦 / 𝑥]∀𝑦 ∈ 𝑥 𝜓)
2219, 20, 213bitr3i 304 . 2 (∀𝑥[𝑦 / 𝑧](𝑥 ∈ 𝑧 → 𝜑) ↔ [𝑦 / 𝑥]∀𝑦 ∈ 𝑥 𝜓)
231, 5, 223bitr2i 302 1 (∀𝑥 ∈ 𝑦 𝜑 ↔ [𝑦 / 𝑥]∀𝑦 ∈ 𝑥 𝜓)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209  ∀wal 1568  [wsb 2099  ∀wral 3077
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-11 2194
This proof depends on definitions:  df-bi 210  df-an 402  df-ex 1813  df-sb 2100  df-ral 3078
This theorem is used by:  tfinds2  7873
  Copyright terms: Public domain W3C validator