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

Theorem cureq 8926
Description: Equality theorem for currying. (Contributed by Brendan Leahy, 2-Jun-2021.)
Assertion
Ref Expression
cureq (𝐴 = 𝐵 → curry 𝐴 = curry 𝐵)

Proof of Theorem cureq
Dummy variables 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 dmeq 5896 . . . 4 (𝐴 = 𝐵 → dom 𝐴 = dom 𝐵)
21dmeqd 5898 . . 3 (𝐴 = 𝐵 → dom dom 𝐴 = dom dom 𝐵)
3 breq 5109 . . . 4 (𝐴 = 𝐵 → (⟨𝑥, 𝑦⟩𝐴𝑧 ↔ ⟨𝑥, 𝑦⟩𝐵𝑧))
43opabbidv 5176 . . 3 (𝐴 = 𝐵 → {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦⟩𝐴𝑧} = {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦⟩𝐵𝑧})
52, 4mpteq12dv 5197 . 2 (𝐴 = 𝐵 → (𝑥 ∈ dom dom 𝐴 ↦ {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦⟩𝐴𝑧}) = (𝑥 ∈ dom dom 𝐵 ↦ {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦⟩𝐵𝑧}))
6 df-cur 8321 . 2 curry 𝐴 = (𝑥 ∈ dom dom 𝐴 ↦ {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦⟩𝐴𝑧})
7 df-cur 8321 . 2 curry 𝐵 = (𝑥 ∈ dom dom 𝐵 ↦ {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦⟩𝐵𝑧})
85, 6, 73eqtr4g 2826 1 (𝐴 = 𝐵 → curry 𝐴 = curry 𝐵)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   = wceq 1572  ⟨cop 4839   class class class wbr 5107  {copab 5172   ↦ cmpt 5191  dom cdm 5657  curry ccur 8319
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2152  ax-9 2160  ax-ext 2738
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-sb 2104  df-clab 2745  df-cleq 2758  df-clel 2842  df-rab 3416  df-v 3455  df-ss 3900  df-dif 4049  df-un 4153  df-nul 4281  df-if 4485  df-sn 4588  df-pr 4590  df-op 4840  df-br 5108  df-opab 5173  df-mpt 5192  df-dm 5667  df-cur 8321
This theorem is used by:  curfv  8929  matunitlindf  23053
  Copyright terms: Public domain W3C validator