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

Theorem mpocurryd 8056
Description: The currying of an operation given in maps-to notation, splitting the operation (function of two arguments) into a function of the first argument, producing a function over the second argument. (Contributed by AV, 27-Oct-2019.)
Hypotheses
Ref Expression
mpocurryd.f 𝐹 = (𝑥𝑋, 𝑦𝑌𝐶)
mpocurryd.c (𝜑 → ∀𝑥𝑋𝑦𝑌 𝐶𝑉)
mpocurryd.n (𝜑𝑌 ≠ ∅)
Assertion
Ref Expression
mpocurryd (𝜑 → curry 𝐹 = (𝑥𝑋 ↦ (𝑦𝑌𝐶)))
Distinct variable groups:   𝑥,𝐹,𝑦   𝑥,𝑉,𝑦   𝑥,𝑋,𝑦   𝑥,𝑌,𝑦   𝜑,𝑥,𝑦
Allowed substitution hints:   𝐶(𝑥,𝑦)

Proof of Theorem mpocurryd
Dummy variables 𝑎 𝑏 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-cur 8054 . 2 curry 𝐹 = (𝑥 ∈ dom dom 𝐹 ↦ {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦𝐹𝑧})
2 mpocurryd.c . . . . . . 7 (𝜑 → ∀𝑥𝑋𝑦𝑌 𝐶𝑉)
3 mpocurryd.f . . . . . . . 8 𝐹 = (𝑥𝑋, 𝑦𝑌𝐶)
43dmmpoga 7886 . . . . . . 7 (∀𝑥𝑋𝑦𝑌 𝐶𝑉 → dom 𝐹 = (𝑋 × 𝑌))
52, 4syl 17 . . . . . 6 (𝜑 → dom 𝐹 = (𝑋 × 𝑌))
65dmeqd 5803 . . . . 5 (𝜑 → dom dom 𝐹 = dom (𝑋 × 𝑌))
7 mpocurryd.n . . . . . 6 (𝜑𝑌 ≠ ∅)
8 dmxp 5827 . . . . . 6 (𝑌 ≠ ∅ → dom (𝑋 × 𝑌) = 𝑋)
97, 8syl 17 . . . . 5 (𝜑 → dom (𝑋 × 𝑌) = 𝑋)
106, 9eqtrd 2778 . . . 4 (𝜑 → dom dom 𝐹 = 𝑋)
1110mpteq1d 5165 . . 3 (𝜑 → (𝑥 ∈ dom dom 𝐹 ↦ {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦𝐹𝑧}) = (𝑥𝑋 ↦ {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦𝐹𝑧}))
12 df-mpt 5154 . . . . 5 (𝑦𝑌𝐶) = {⟨𝑦, 𝑧⟩ ∣ (𝑦𝑌𝑧 = 𝐶)}
133mpofun 7376 . . . . . . . 8 Fun 𝐹
14 funbrfv2b 6809 . . . . . . . 8 (Fun 𝐹 → (⟨𝑥, 𝑦𝐹𝑧 ↔ (⟨𝑥, 𝑦⟩ ∈ dom 𝐹 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧)))
1513, 14mp1i 13 . . . . . . 7 ((𝜑𝑥𝑋) → (⟨𝑥, 𝑦𝐹𝑧 ↔ (⟨𝑥, 𝑦⟩ ∈ dom 𝐹 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧)))
165adantr 480 . . . . . . . . . 10 ((𝜑𝑥𝑋) → dom 𝐹 = (𝑋 × 𝑌))
1716eleq2d 2824 . . . . . . . . 9 ((𝜑𝑥𝑋) → (⟨𝑥, 𝑦⟩ ∈ dom 𝐹 ↔ ⟨𝑥, 𝑦⟩ ∈ (𝑋 × 𝑌)))
18 opelxp 5616 . . . . . . . . 9 (⟨𝑥, 𝑦⟩ ∈ (𝑋 × 𝑌) ↔ (𝑥𝑋𝑦𝑌))
1917, 18bitrdi 286 . . . . . . . 8 ((𝜑𝑥𝑋) → (⟨𝑥, 𝑦⟩ ∈ dom 𝐹 ↔ (𝑥𝑋𝑦𝑌)))
2019anbi1d 629 . . . . . . 7 ((𝜑𝑥𝑋) → ((⟨𝑥, 𝑦⟩ ∈ dom 𝐹 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧) ↔ ((𝑥𝑋𝑦𝑌) ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧)))
21 an21 640 . . . . . . . 8 (((𝑥𝑋𝑦𝑌) ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧) ↔ (𝑦𝑌 ∧ (𝑥𝑋 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧)))
22 ibar 528 . . . . . . . . . . . . 13 (𝑥𝑋 → ((𝐹‘⟨𝑥, 𝑦⟩) = 𝑧 ↔ (𝑥𝑋 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧)))
2322bicomd 222 . . . . . . . . . . . 12 (𝑥𝑋 → ((𝑥𝑋 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧) ↔ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧))
2423adantl 481 . . . . . . . . . . 11 ((𝜑𝑥𝑋) → ((𝑥𝑋 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧) ↔ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧))
2524adantr 480 . . . . . . . . . 10 (((𝜑𝑥𝑋) ∧ 𝑦𝑌) → ((𝑥𝑋 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧) ↔ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧))
26 df-ov 7258 . . . . . . . . . . . . 13 (𝑥𝐹𝑦) = (𝐹‘⟨𝑥, 𝑦⟩)
27 nfcv 2906 . . . . . . . . . . . . . . . . 17 𝑎𝐶
28 nfcv 2906 . . . . . . . . . . . . . . . . 17 𝑏𝐶
29 nfcv 2906 . . . . . . . . . . . . . . . . . 18 𝑥𝑏
30 nfcsb1v 3853 . . . . . . . . . . . . . . . . . 18 𝑥𝑎 / 𝑥𝐶
3129, 30nfcsbw 3855 . . . . . . . . . . . . . . . . 17 𝑥𝑏 / 𝑦𝑎 / 𝑥𝐶
32 nfcsb1v 3853 . . . . . . . . . . . . . . . . 17 𝑦𝑏 / 𝑦𝑎 / 𝑥𝐶
33 csbeq1a 3842 . . . . . . . . . . . . . . . . . 18 (𝑥 = 𝑎𝐶 = 𝑎 / 𝑥𝐶)
34 csbeq1a 3842 . . . . . . . . . . . . . . . . . 18 (𝑦 = 𝑏𝑎 / 𝑥𝐶 = 𝑏 / 𝑦𝑎 / 𝑥𝐶)
3533, 34sylan9eq 2799 . . . . . . . . . . . . . . . . 17 ((𝑥 = 𝑎𝑦 = 𝑏) → 𝐶 = 𝑏 / 𝑦𝑎 / 𝑥𝐶)
3627, 28, 31, 32, 35cbvmpo 7347 . . . . . . . . . . . . . . . 16 (𝑥𝑋, 𝑦𝑌𝐶) = (𝑎𝑋, 𝑏𝑌𝑏 / 𝑦𝑎 / 𝑥𝐶)
373, 36eqtri 2766 . . . . . . . . . . . . . . 15 𝐹 = (𝑎𝑋, 𝑏𝑌𝑏 / 𝑦𝑎 / 𝑥𝐶)
3837a1i 11 . . . . . . . . . . . . . 14 (((𝜑𝑥𝑋) ∧ 𝑦𝑌) → 𝐹 = (𝑎𝑋, 𝑏𝑌𝑏 / 𝑦𝑎 / 𝑥𝐶))
3933eqcomd 2744 . . . . . . . . . . . . . . . . . 18 (𝑥 = 𝑎𝑎 / 𝑥𝐶 = 𝐶)
4039equcoms 2024 . . . . . . . . . . . . . . . . 17 (𝑎 = 𝑥𝑎 / 𝑥𝐶 = 𝐶)
4140csbeq2dv 3835 . . . . . . . . . . . . . . . 16 (𝑎 = 𝑥𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝑏 / 𝑦𝐶)
42 csbeq1a 3842 . . . . . . . . . . . . . . . . . 18 (𝑦 = 𝑏𝐶 = 𝑏 / 𝑦𝐶)
4342eqcomd 2744 . . . . . . . . . . . . . . . . 17 (𝑦 = 𝑏𝑏 / 𝑦𝐶 = 𝐶)
4443equcoms 2024 . . . . . . . . . . . . . . . 16 (𝑏 = 𝑦𝑏 / 𝑦𝐶 = 𝐶)
4541, 44sylan9eq 2799 . . . . . . . . . . . . . . 15 ((𝑎 = 𝑥𝑏 = 𝑦) → 𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝐶)
4645adantl 481 . . . . . . . . . . . . . 14 ((((𝜑𝑥𝑋) ∧ 𝑦𝑌) ∧ (𝑎 = 𝑥𝑏 = 𝑦)) → 𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝐶)
47 simpr 484 . . . . . . . . . . . . . . 15 ((𝜑𝑥𝑋) → 𝑥𝑋)
4847adantr 480 . . . . . . . . . . . . . 14 (((𝜑𝑥𝑋) ∧ 𝑦𝑌) → 𝑥𝑋)
49 simpr 484 . . . . . . . . . . . . . 14 (((𝜑𝑥𝑋) ∧ 𝑦𝑌) → 𝑦𝑌)
50 rsp2 3136 . . . . . . . . . . . . . . . 16 (∀𝑥𝑋𝑦𝑌 𝐶𝑉 → ((𝑥𝑋𝑦𝑌) → 𝐶𝑉))
512, 50syl 17 . . . . . . . . . . . . . . 15 (𝜑 → ((𝑥𝑋𝑦𝑌) → 𝐶𝑉))
5251impl 455 . . . . . . . . . . . . . 14 (((𝜑𝑥𝑋) ∧ 𝑦𝑌) → 𝐶𝑉)
5338, 46, 48, 49, 52ovmpod 7403 . . . . . . . . . . . . 13 (((𝜑𝑥𝑋) ∧ 𝑦𝑌) → (𝑥𝐹𝑦) = 𝐶)
5426, 53eqtr3id 2793 . . . . . . . . . . . 12 (((𝜑𝑥𝑋) ∧ 𝑦𝑌) → (𝐹‘⟨𝑥, 𝑦⟩) = 𝐶)
5554eqeq1d 2740 . . . . . . . . . . 11 (((𝜑𝑥𝑋) ∧ 𝑦𝑌) → ((𝐹‘⟨𝑥, 𝑦⟩) = 𝑧𝐶 = 𝑧))
56 eqcom 2745 . . . . . . . . . . 11 (𝐶 = 𝑧𝑧 = 𝐶)
5755, 56bitrdi 286 . . . . . . . . . 10 (((𝜑𝑥𝑋) ∧ 𝑦𝑌) → ((𝐹‘⟨𝑥, 𝑦⟩) = 𝑧𝑧 = 𝐶))
5825, 57bitrd 278 . . . . . . . . 9 (((𝜑𝑥𝑋) ∧ 𝑦𝑌) → ((𝑥𝑋 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧) ↔ 𝑧 = 𝐶))
5958pm5.32da 578 . . . . . . . 8 ((𝜑𝑥𝑋) → ((𝑦𝑌 ∧ (𝑥𝑋 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧)) ↔ (𝑦𝑌𝑧 = 𝐶)))
6021, 59syl5bb 282 . . . . . . 7 ((𝜑𝑥𝑋) → (((𝑥𝑋𝑦𝑌) ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧) ↔ (𝑦𝑌𝑧 = 𝐶)))
6115, 20, 603bitrrd 305 . . . . . 6 ((𝜑𝑥𝑋) → ((𝑦𝑌𝑧 = 𝐶) ↔ ⟨𝑥, 𝑦𝐹𝑧))
6261opabbidv 5136 . . . . 5 ((𝜑𝑥𝑋) → {⟨𝑦, 𝑧⟩ ∣ (𝑦𝑌𝑧 = 𝐶)} = {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦𝐹𝑧})
6312, 62eqtr2id 2792 . . . 4 ((𝜑𝑥𝑋) → {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦𝐹𝑧} = (𝑦𝑌𝐶))
6463mpteq2dva 5170 . . 3 (𝜑 → (𝑥𝑋 ↦ {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦𝐹𝑧}) = (𝑥𝑋 ↦ (𝑦𝑌𝐶)))
6511, 64eqtrd 2778 . 2 (𝜑 → (𝑥 ∈ dom dom 𝐹 ↦ {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦𝐹𝑧}) = (𝑥𝑋 ↦ (𝑦𝑌𝐶)))
661, 65eqtrid 2790 1 (𝜑 → curry 𝐹 = (𝑥𝑋 ↦ (𝑦𝑌𝐶)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wcel 2108  wne 2942  wral 3063  csb 3828  c0 4253  cop 4564   class class class wbr 5070  {copab 5132  cmpt 5153   × cxp 5578  dom cdm 5580  Fun wfun 6412  cfv 6418  (class class class)co 7255  cmpo 7257  curry ccur 8052
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-fv 6426  df-ov 7258  df-oprab 7259  df-mpo 7260  df-1st 7804  df-2nd 7805  df-cur 8054
This theorem is referenced by:  mpocurryvald  8057  curfv  35684
  Copyright terms: Public domain W3C validator