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

Theorem cbvmptf 5208
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. (Contributed by NM, 11-Sep-2011.) (Revised by Thierry Arnoux, 9-Mar-2017.) Add disjoint variable condition to avoid ax-13 2404. See cbvmptfg 5209 for a less restrictive version requiring more axioms. (Revised by GG, 17-Jan-2024.)
Hypotheses
Ref Expression
cbvmptf.1 Ⅎ𝑥𝐴
cbvmptf.2 Ⅎ𝑦𝐴
cbvmptf.3 Ⅎ𝑦𝐵
cbvmptf.4 Ⅎ𝑥𝐶
cbvmptf.5 (𝑥 = 𝑦 → 𝐵 = 𝐶)
Assertion
Ref Expression
cbvmptf (𝑥 ∈ 𝐴 ↦ 𝐵) = (𝑦 ∈ 𝐴 ↦ 𝐶)
Distinct variable group:   𝑥,𝑦
Allowed substitution hints:   𝐴(𝑥, 𝑦)   𝐵(𝑥, 𝑦)   𝐶(𝑥, 𝑦)

Proof of Theorem cbvmptf
Dummy variables 𝑧 𝑤 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 nfv 1949 . . . 4 Ⅎ𝑤(𝑥 ∈ 𝐴 ∧ 𝑧 = 𝐵)
2 cbvmptf.1 . . . . . 6 Ⅎ𝑥𝐴
32nfcri 2918 . . . . 5 Ⅎ𝑥 𝑤 ∈ 𝐴
4 nfs1v 2196 . . . . 5 Ⅎ𝑥[𝑤 / 𝑥]𝑧 = 𝐵
53, 4nfan 1934 . . . 4 Ⅎ𝑥(𝑤 ∈ 𝐴 ∧ [𝑤 / 𝑥]𝑧 = 𝐵)
6 eleq1w 2847 . . . . 5 (𝑥 = 𝑤 → (𝑥 ∈ 𝐴 ↔ 𝑤 ∈ 𝐴))
7 sbequ12 2290 . . . . 5 (𝑥 = 𝑤 → (𝑧 = 𝐵 ↔ [𝑤 / 𝑥]𝑧 = 𝐵))
86, 7anbi12d 644 . . . 4 (𝑥 = 𝑤 → ((𝑥 ∈ 𝐴 ∧ 𝑧 = 𝐵) ↔ (𝑤 ∈ 𝐴 ∧ [𝑤 / 𝑥]𝑧 = 𝐵)))
91, 5, 8cbvopab1 5182 . . 3 {⟨𝑥, 𝑧⟩ ∣ (𝑥 ∈ 𝐴 ∧ 𝑧 = 𝐵)} = {⟨𝑤, 𝑧⟩ ∣ (𝑤 ∈ 𝐴 ∧ [𝑤 / 𝑥]𝑧 = 𝐵)}
10 cbvmptf.2 . . . . . 6 Ⅎ𝑦𝐴
1110nfcri 2918 . . . . 5 Ⅎ𝑦 𝑤 ∈ 𝐴
12 cbvmptf.3 . . . . . . 7 Ⅎ𝑦𝐵
1312nfeq2 2943 . . . . . 6 Ⅎ𝑦 𝑧 = 𝐵
1413nfsbv 2364 . . . . 5 Ⅎ𝑦[𝑤 / 𝑥]𝑧 = 𝐵
1511, 14nfan 1934 . . . 4 Ⅎ𝑦(𝑤 ∈ 𝐴 ∧ [𝑤 / 𝑥]𝑧 = 𝐵)
16 nfv 1949 . . . 4 Ⅎ𝑤(𝑦 ∈ 𝐴 ∧ 𝑧 = 𝐶)
17 eleq1w 2847 . . . . 5 (𝑤 = 𝑦 → (𝑤 ∈ 𝐴 ↔ 𝑦 ∈ 𝐴))
18 cbvmptf.4 . . . . . . 7 Ⅎ𝑥𝐶
1918nfeq2 2943 . . . . . 6 Ⅎ𝑥 𝑧 = 𝐶
20 cbvmptf.5 . . . . . . 7 (𝑥 = 𝑦 → 𝐵 = 𝐶)
2120eqeq2d 2774 . . . . . 6 (𝑥 = 𝑦 → (𝑧 = 𝐵 ↔ 𝑧 = 𝐶))
2219, 21sbhypf 3513 . . . . 5 (𝑤 = 𝑦 → ([𝑤 / 𝑥]𝑧 = 𝐵 ↔ 𝑧 = 𝐶))
2317, 22anbi12d 644 . . . 4 (𝑤 = 𝑦 → ((𝑤 ∈ 𝐴 ∧ [𝑤 / 𝑥]𝑧 = 𝐵) ↔ (𝑦 ∈ 𝐴 ∧ 𝑧 = 𝐶)))
2415, 16, 23cbvopab1 5182 . . 3 {⟨𝑤, 𝑧⟩ ∣ (𝑤 ∈ 𝐴 ∧ [𝑤 / 𝑥]𝑧 = 𝐵)} = {⟨𝑦, 𝑧⟩ ∣ (𝑦 ∈ 𝐴 ∧ 𝑧 = 𝐶)}
259, 24eqtri 2786 . 2 {⟨𝑥, 𝑧⟩ ∣ (𝑥 ∈ 𝐴 ∧ 𝑧 = 𝐵)} = {⟨𝑦, 𝑧⟩ ∣ (𝑦 ∈ 𝐴 ∧ 𝑧 = 𝐶)}
26 df-mpt 5190 . 2 (𝑥 ∈ 𝐴 ↦ 𝐵) = {⟨𝑥, 𝑧⟩ ∣ (𝑥 ∈ 𝐴 ∧ 𝑧 = 𝐵)}
27 df-mpt 5190 . 2 (𝑦 ∈ 𝐴 ↦ 𝐶) = {⟨𝑦, 𝑧⟩ ∣ (𝑦 ∈ 𝐴 ∧ 𝑧 = 𝐶)}
2825, 26, 273eqtr4i 2796 1 (𝑥 ∈ 𝐴 ↦ 𝐵) = (𝑦 ∈ 𝐴 ↦ 𝐶)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1570  [wsb 2101   ∈ wcel 2147  Ⅎwnfc 2911  {copab 5170   ↦ cmpt 5189
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735
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 2102  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-rab 3417  df-v 3456  df-ss 3901  df-dif 4050  df-un 4154  df-nul 4282  df-if 4486  df-sn 4589  df-pr 4591  df-op 4839  df-opab 5171  df-mpt 5190
This theorem is used by:  cbvmpt  5210  resmptf  6043  fvmpt2f  7017  offval2f  7732  suppss2f  33304  fmptdf2  33322  funcnv4mpt  33334  cbvesum  34744  esumpfinvalf  34778  binomcxplemdvbinom  45529  binomcxplemdvsum  45531  binomcxplemnotnn0  45532  fmptff  46486  supxrleubrnmptf  46666  fnlimfv  46878  fnlimfvre2  46892  fnlimf  46893  limsupequzmptf  46946  sge0iunmptlemre  47630  smflim  47992  smflim2  48021  smfsup  48029  smfinf  48033  smflimsuplem2  48036  smflimsuplem5  48039  smflimsup  48043  smfliminf  48046
  Copyright terms: Public domain W3C validator