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

Theorem cbvmptfg 5206
Description: Rule to change the bound variable in a maps-to function, using implicit substitution. This version has bound-variable hypotheses in place of distinct variable conditions. Usage of this theorem is discouraged because it depends on ax-13 2402. See cbvmptf 5205 for a version with more disjoint variable conditions, but not requiring ax-13 2402. (Contributed by NM, 11-Sep-2011.) (Revised by Thierry Arnoux, 9-Mar-2017.) (New usage is discouraged.)
Hypotheses
Ref Expression
cbvmptfg.1 Ⅎ𝑥𝐴
cbvmptfg.2 Ⅎ𝑦𝐴
cbvmptfg.3 Ⅎ𝑦𝐵
cbvmptfg.4 Ⅎ𝑥𝐶
cbvmptfg.5 (𝑥 = 𝑦 → 𝐵 = 𝐶)
Assertion
Ref Expression
cbvmptfg (𝑥 ∈ 𝐴 ↦ 𝐵) = (𝑦 ∈ 𝐴 ↦ 𝐶)

Proof of Theorem cbvmptfg
Dummy variables 𝑧 𝑤 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 nfv 1947 . . . 4 Ⅎ𝑤(𝑥 ∈ 𝐴 ∧ 𝑧 = 𝐵)
2 cbvmptfg.1 . . . . . 6 Ⅎ𝑥𝐴
32nfcri 2915 . . . . 5 Ⅎ𝑥 𝑤 ∈ 𝐴
4 nfs1v 2193 . . . . 5 Ⅎ𝑥[𝑤 / 𝑥]𝑧 = 𝐵
53, 4nfan 1932 . . . 4 Ⅎ𝑥(𝑤 ∈ 𝐴 ∧ [𝑤 / 𝑥]𝑧 = 𝐵)
6 eleq1w 2844 . . . . 5 (𝑥 = 𝑤 → (𝑥 ∈ 𝐴 ↔ 𝑤 ∈ 𝐴))
7 sbequ12 2287 . . . . 5 (𝑥 = 𝑤 → (𝑧 = 𝐵 ↔ [𝑤 / 𝑥]𝑧 = 𝐵))
86, 7anbi12d 644 . . . 4 (𝑥 = 𝑤 → ((𝑥 ∈ 𝐴 ∧ 𝑧 = 𝐵) ↔ (𝑤 ∈ 𝐴 ∧ [𝑤 / 𝑥]𝑧 = 𝐵)))
91, 5, 8cbvopab1g 5180 . . 3 {⟨𝑥, 𝑧⟩ ∣ (𝑥 ∈ 𝐴 ∧ 𝑧 = 𝐵)} = {⟨𝑤, 𝑧⟩ ∣ (𝑤 ∈ 𝐴 ∧ [𝑤 / 𝑥]𝑧 = 𝐵)}
10 cbvmptfg.2 . . . . . 6 Ⅎ𝑦𝐴
1110nfcri 2915 . . . . 5 Ⅎ𝑦 𝑤 ∈ 𝐴
12 cbvmptfg.3 . . . . . . 7 Ⅎ𝑦𝐵
1312nfeq2 2940 . . . . . 6 Ⅎ𝑦 𝑧 = 𝐵
1413nfsb 2553 . . . . 5 Ⅎ𝑦[𝑤 / 𝑥]𝑧 = 𝐵
1511, 14nfan 1932 . . . 4 Ⅎ𝑦(𝑤 ∈ 𝐴 ∧ [𝑤 / 𝑥]𝑧 = 𝐵)
16 nfv 1947 . . . 4 Ⅎ𝑤(𝑦 ∈ 𝐴 ∧ 𝑧 = 𝐶)
17 eleq1w 2844 . . . . 5 (𝑤 = 𝑦 → (𝑤 ∈ 𝐴 ↔ 𝑦 ∈ 𝐴))
18 sbequ 2120 . . . . . 6 (𝑤 = 𝑦 → ([𝑤 / 𝑥]𝑧 = 𝐵 ↔ [𝑦 / 𝑥]𝑧 = 𝐵))
19 cbvmptfg.4 . . . . . . . 8 Ⅎ𝑥𝐶
2019nfeq2 2940 . . . . . . 7 Ⅎ𝑥 𝑧 = 𝐶
21 cbvmptfg.5 . . . . . . . 8 (𝑥 = 𝑦 → 𝐵 = 𝐶)
2221eqeq2d 2772 . . . . . . 7 (𝑥 = 𝑦 → (𝑧 = 𝐵 ↔ 𝑧 = 𝐶))
2320, 22sbie 2532 . . . . . 6 ([𝑦 / 𝑥]𝑧 = 𝐵 ↔ 𝑧 = 𝐶)
2418, 23bitrdi 290 . . . . 5 (𝑤 = 𝑦 → ([𝑤 / 𝑥]𝑧 = 𝐵 ↔ 𝑧 = 𝐶))
2517, 24anbi12d 644 . . . 4 (𝑤 = 𝑦 → ((𝑤 ∈ 𝐴 ∧ [𝑤 / 𝑥]𝑧 = 𝐵) ↔ (𝑦 ∈ 𝐴 ∧ 𝑧 = 𝐶)))
2615, 16, 25cbvopab1g 5180 . . 3 {⟨𝑤, 𝑧⟩ ∣ (𝑤 ∈ 𝐴 ∧ [𝑤 / 𝑥]𝑧 = 𝐵)} = {⟨𝑦, 𝑧⟩ ∣ (𝑦 ∈ 𝐴 ∧ 𝑧 = 𝐶)}
279, 26eqtri 2784 . 2 {⟨𝑥, 𝑧⟩ ∣ (𝑥 ∈ 𝐴 ∧ 𝑧 = 𝐵)} = {⟨𝑦, 𝑧⟩ ∣ (𝑦 ∈ 𝐴 ∧ 𝑧 = 𝐶)}
28 df-mpt 5187 . 2 (𝑥 ∈ 𝐴 ↦ 𝐵) = {⟨𝑥, 𝑧⟩ ∣ (𝑥 ∈ 𝐴 ∧ 𝑧 = 𝐵)}
29 df-mpt 5187 . 2 (𝑦 ∈ 𝐴 ↦ 𝐶) = {⟨𝑦, 𝑧⟩ ∣ (𝑦 ∈ 𝐴 ∧ 𝑧 = 𝐶)}
3027, 28, 293eqtr4i 2794 1 (𝑥 ∈ 𝐴 ↦ 𝐵) = (𝑦 ∈ 𝐴 ↦ 𝐶)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1570  [wsb 2099   ∈ wcel 2145  Ⅎwnfc 2908  {copab 5167   ↦ cmpt 5186
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-10 2178  ax-11 2194  ax-12 2213  ax-13 2402  ax-ext 2733
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-rab 3414  df-v 3453  df-dif 3902  df-un 3904  df-ss 3916  df-nul 4280  df-if 4483  df-sn 4585  df-pr 4587  df-op 4591  df-opab 5168  df-mpt 5187
This theorem is used by:  cbvmptg  5208
  Copyright terms: Public domain W3C validator