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

Theorem mpocurryd 8270
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 8268 . 2 curry 𝐹 = (𝑥 ∈ dom dom 𝐹 ↦ {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦⟩𝐹𝑧})
2 mpocurryd.c . . . . . . 7 (𝜑 → ∀𝑥 ∈ 𝑋 ∀𝑦 ∈ 𝑌 𝐶 ∈ 𝑉)
3 mpocurryd.f . . . . . . . 8 𝐹 = (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ 𝐶)
43dmmpoga 8075 . . . . . . 7 (∀𝑥 ∈ 𝑋 ∀𝑦 ∈ 𝑌 𝐶 ∈ 𝑉 → dom 𝐹 = (𝑋 × 𝑌))
52, 4syl 18 . . . . . 6 (𝜑 → dom 𝐹 = (𝑋 × 𝑌))
65dmeqd 5887 . . . . 5 (𝜑 → dom dom 𝐹 = dom (𝑋 × 𝑌))
7 mpocurryd.n . . . . . 6 (𝜑 → 𝑌 ≠ ∅)
8 dmxp 5911 . . . . . 6 (𝑌 ≠ ∅ → dom (𝑋 × 𝑌) = 𝑋)
97, 8syl 18 . . . . 5 (𝜑 → dom (𝑋 × 𝑌) = 𝑋)
106, 9eqtrd 2796 . . . 4 (𝜑 → dom dom 𝐹 = 𝑋)
1110mpteq1d 5195 . . 3 (𝜑 → (𝑥 ∈ dom dom 𝐹 ↦ {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦⟩𝐹𝑧}) = (𝑥 ∈ 𝑋 ↦ {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦⟩𝐹𝑧}))
12 df-mpt 5187 . . . . 5 (𝑦 ∈ 𝑌 ↦ 𝐶) = {⟨𝑦, 𝑧⟩ ∣ (𝑦 ∈ 𝑌 ∧ 𝑧 = 𝐶)}
133mpofun 7536 . . . . . . . 8 Fun 𝐹
14 funbrfv2b 6934 . . . . . . . 8 (Fun 𝐹 → (⟨𝑥, 𝑦⟩𝐹𝑧 ↔ (⟨𝑥, 𝑦⟩ ∈ dom 𝐹 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧)))
1513, 14mp1i 14 . . . . . . 7 ((𝜑 ∧ 𝑥 ∈ 𝑋) → (⟨𝑥, 𝑦⟩𝐹𝑧 ↔ (⟨𝑥, 𝑦⟩ ∈ dom 𝐹 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧)))
165adantr 486 . . . . . . . . . 10 ((𝜑 ∧ 𝑥 ∈ 𝑋) → dom 𝐹 = (𝑋 × 𝑌))
1716eleq2d 2847 . . . . . . . . 9 ((𝜑 ∧ 𝑥 ∈ 𝑋) → (⟨𝑥, 𝑦⟩ ∈ dom 𝐹 ↔ ⟨𝑥, 𝑦⟩ ∈ (𝑋 × 𝑌)))
18 opelxp 5687 . . . . . . . . 9 (⟨𝑥, 𝑦⟩ ∈ (𝑋 × 𝑌) ↔ (𝑥 ∈ 𝑋 ∧ 𝑦 ∈ 𝑌))
1917, 18bitrdi 290 . . . . . . . 8 ((𝜑 ∧ 𝑥 ∈ 𝑋) → (⟨𝑥, 𝑦⟩ ∈ dom 𝐹 ↔ (𝑥 ∈ 𝑋 ∧ 𝑦 ∈ 𝑌)))
2019anbi1d 643 . . . . . . 7 ((𝜑 ∧ 𝑥 ∈ 𝑋) → ((⟨𝑥, 𝑦⟩ ∈ dom 𝐹 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧) ↔ ((𝑥 ∈ 𝑋 ∧ 𝑦 ∈ 𝑌) ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧)))
21 an21 657 . . . . . . . 8 (((𝑥 ∈ 𝑋 ∧ 𝑦 ∈ 𝑌) ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧) ↔ (𝑦 ∈ 𝑌 ∧ (𝑥 ∈ 𝑋 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧)))
22 ibar 538 . . . . . . . . . . . . 13 (𝑥 ∈ 𝑋 → ((𝐹‘⟨𝑥, 𝑦⟩) = 𝑧 ↔ (𝑥 ∈ 𝑋 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧)))
2322bicomd 226 . . . . . . . . . . . 12 (𝑥 ∈ 𝑋 → ((𝑥 ∈ 𝑋 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧) ↔ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧))
2423adantl 487 . . . . . . . . . . 11 ((𝜑 ∧ 𝑥 ∈ 𝑋) → ((𝑥 ∈ 𝑋 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧) ↔ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧))
2524adantr 486 . . . . . . . . . 10 (((𝜑 ∧ 𝑥 ∈ 𝑋) ∧ 𝑦 ∈ 𝑌) → ((𝑥 ∈ 𝑋 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧) ↔ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧))
26 df-ov 7415 . . . . . . . . . . . . 13 (𝑥𝐹𝑦) = (𝐹‘⟨𝑥, 𝑦⟩)
27 nfcv 2923 . . . . . . . . . . . . . . . . 17 Ⅎ𝑎𝐶
28 nfcv 2923 . . . . . . . . . . . . . . . . 17 Ⅎ𝑏𝐶
29 nfcv 2923 . . . . . . . . . . . . . . . . . 18 Ⅎ𝑥𝑏
30 nfcsb1v 3871 . . . . . . . . . . . . . . . . . 18 Ⅎ𝑥⦋𝑎 / 𝑥⦌𝐶
3129, 30nfcsbw 3873 . . . . . . . . . . . . . . . . 17 Ⅎ𝑥⦋𝑏 / 𝑦⦌⦋𝑎 / 𝑥⦌𝐶
32 nfcsb1v 3871 . . . . . . . . . . . . . . . . 17 Ⅎ𝑦⦋𝑏 / 𝑦⦌⦋𝑎 / 𝑥⦌𝐶
33 csbeq1a 3861 . . . . . . . . . . . . . . . . . 18 (𝑥 = 𝑎 → 𝐶 = ⦋𝑎 / 𝑥⦌𝐶)
34 csbeq1a 3861 . . . . . . . . . . . . . . . . . 18 (𝑦 = 𝑏 → ⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑦⦌⦋𝑎 / 𝑥⦌𝐶)
3533, 34sylan9eq 2816 . . . . . . . . . . . . . . . . 17 ((𝑥 = 𝑎 ∧ 𝑦 = 𝑏) → 𝐶 = ⦋𝑏 / 𝑦⦌⦋𝑎 / 𝑥⦌𝐶)
3627, 28, 31, 32, 35cbvmpo 7506 . . . . . . . . . . . . . . . 16 (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ 𝐶) = (𝑎 ∈ 𝑋, 𝑏 ∈ 𝑌 ↦ ⦋𝑏 / 𝑦⦌⦋𝑎 / 𝑥⦌𝐶)
373, 36eqtri 2784 . . . . . . . . . . . . . . 15 𝐹 = (𝑎 ∈ 𝑋, 𝑏 ∈ 𝑌 ↦ ⦋𝑏 / 𝑦⦌⦋𝑎 / 𝑥⦌𝐶)
3837a1i 11 . . . . . . . . . . . . . 14 (((𝜑 ∧ 𝑥 ∈ 𝑋) ∧ 𝑦 ∈ 𝑌) → 𝐹 = (𝑎 ∈ 𝑋, 𝑏 ∈ 𝑌 ↦ ⦋𝑏 / 𝑦⦌⦋𝑎 / 𝑥⦌𝐶))
3933eqcomd 2767 . . . . . . . . . . . . . . . . . 18 (𝑥 = 𝑎 → ⦋𝑎 / 𝑥⦌𝐶 = 𝐶)
4039equcoms 2053 . . . . . . . . . . . . . . . . 17 (𝑎 = 𝑥 → ⦋𝑎 / 𝑥⦌𝐶 = 𝐶)
4140csbeq2dv 3854 . . . . . . . . . . . . . . . 16 (𝑎 = 𝑥 → ⦋𝑏 / 𝑦⦌⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑦⦌𝐶)
42 csbeq1a 3861 . . . . . . . . . . . . . . . . . 18 (𝑦 = 𝑏 → 𝐶 = ⦋𝑏 / 𝑦⦌𝐶)
4342eqcomd 2767 . . . . . . . . . . . . . . . . 17 (𝑦 = 𝑏 → ⦋𝑏 / 𝑦⦌𝐶 = 𝐶)
4443equcoms 2053 . . . . . . . . . . . . . . . 16 (𝑏 = 𝑦 → ⦋𝑏 / 𝑦⦌𝐶 = 𝐶)
4541, 44sylan9eq 2816 . . . . . . . . . . . . . . 15 ((𝑎 = 𝑥 ∧ 𝑏 = 𝑦) → ⦋𝑏 / 𝑦⦌⦋𝑎 / 𝑥⦌𝐶 = 𝐶)
4645adantl 487 . . . . . . . . . . . . . 14 ((((𝜑 ∧ 𝑥 ∈ 𝑋) ∧ 𝑦 ∈ 𝑌) ∧ (𝑎 = 𝑥 ∧ 𝑏 = 𝑦)) → ⦋𝑏 / 𝑦⦌⦋𝑎 / 𝑥⦌𝐶 = 𝐶)
47 simpr 490 . . . . . . . . . . . . . . 15 ((𝜑 ∧ 𝑥 ∈ 𝑋) → 𝑥 ∈ 𝑋)
4847adantr 486 . . . . . . . . . . . . . 14 (((𝜑 ∧ 𝑥 ∈ 𝑋) ∧ 𝑦 ∈ 𝑌) → 𝑥 ∈ 𝑋)
49 simpr 490 . . . . . . . . . . . . . 14 (((𝜑 ∧ 𝑥 ∈ 𝑋) ∧ 𝑦 ∈ 𝑌) → 𝑦 ∈ 𝑌)
50 rsp2 3280 . . . . . . . . . . . . . . . 16 (∀𝑥 ∈ 𝑋 ∀𝑦 ∈ 𝑌 𝐶 ∈ 𝑉 → ((𝑥 ∈ 𝑋 ∧ 𝑦 ∈ 𝑌) → 𝐶 ∈ 𝑉))
512, 50syl 18 . . . . . . . . . . . . . . 15 (𝜑 → ((𝑥 ∈ 𝑋 ∧ 𝑦 ∈ 𝑌) → 𝐶 ∈ 𝑉))
5251impl 461 . . . . . . . . . . . . . 14 (((𝜑 ∧ 𝑥 ∈ 𝑋) ∧ 𝑦 ∈ 𝑌) → 𝐶 ∈ 𝑉)
5338, 46, 48, 49, 52ovmpod 7564 . . . . . . . . . . . . 13 (((𝜑 ∧ 𝑥 ∈ 𝑋) ∧ 𝑦 ∈ 𝑌) → (𝑥𝐹𝑦) = 𝐶)
5426, 53eqtr3id 2810 . . . . . . . . . . . 12 (((𝜑 ∧ 𝑥 ∈ 𝑋) ∧ 𝑦 ∈ 𝑌) → (𝐹‘⟨𝑥, 𝑦⟩) = 𝐶)
5554eqeq1d 2763 . . . . . . . . . . 11 (((𝜑 ∧ 𝑥 ∈ 𝑋) ∧ 𝑦 ∈ 𝑌) → ((𝐹‘⟨𝑥, 𝑦⟩) = 𝑧 ↔ 𝐶 = 𝑧))
56 eqcom 2768 . . . . . . . . . . 11 (𝐶 = 𝑧 ↔ 𝑧 = 𝐶)
5755, 56bitrdi 290 . . . . . . . . . 10 (((𝜑 ∧ 𝑥 ∈ 𝑋) ∧ 𝑦 ∈ 𝑌) → ((𝐹‘⟨𝑥, 𝑦⟩) = 𝑧 ↔ 𝑧 = 𝐶))
5825, 57bitrd 282 . . . . . . . . 9 (((𝜑 ∧ 𝑥 ∈ 𝑋) ∧ 𝑦 ∈ 𝑌) → ((𝑥 ∈ 𝑋 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧) ↔ 𝑧 = 𝐶))
5958pm5.32da 590 . . . . . . . 8 ((𝜑 ∧ 𝑥 ∈ 𝑋) → ((𝑦 ∈ 𝑌 ∧ (𝑥 ∈ 𝑋 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧)) ↔ (𝑦 ∈ 𝑌 ∧ 𝑧 = 𝐶)))
6021, 59bitrid 286 . . . . . . 7 ((𝜑 ∧ 𝑥 ∈ 𝑋) → (((𝑥 ∈ 𝑋 ∧ 𝑦 ∈ 𝑌) ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧) ↔ (𝑦 ∈ 𝑌 ∧ 𝑧 = 𝐶)))
6115, 20, 603bitrrd 309 . . . . . 6 ((𝜑 ∧ 𝑥 ∈ 𝑋) → ((𝑦 ∈ 𝑌 ∧ 𝑧 = 𝐶) ↔ ⟨𝑥, 𝑦⟩𝐹𝑧))
6261opabbidv 5171 . . . . 5 ((𝜑 ∧ 𝑥 ∈ 𝑋) → {⟨𝑦, 𝑧⟩ ∣ (𝑦 ∈ 𝑌 ∧ 𝑧 = 𝐶)} = {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦⟩𝐹𝑧})
6312, 62eqtr2id 2809 . . . 4 ((𝜑 ∧ 𝑥 ∈ 𝑋) → {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦⟩𝐹𝑧} = (𝑦 ∈ 𝑌 ↦ 𝐶))
6463mpteq2dva 5198 . . 3 (𝜑 → (𝑥 ∈ 𝑋 ↦ {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦⟩𝐹𝑧}) = (𝑥 ∈ 𝑋 ↦ (𝑦 ∈ 𝑌 ↦ 𝐶)))
6511, 64eqtrd 2796 . 2 (𝜑 → (𝑥 ∈ dom dom 𝐹 ↦ {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦⟩𝐹𝑧}) = (𝑥 ∈ 𝑋 ↦ (𝑦 ∈ 𝑌 ↦ 𝐶)))
661, 65eqtrid 2808 1 (𝜑 → curry 𝐹 = (𝑥 ∈ 𝑋 ↦ (𝑦 ∈ 𝑌 ↦ 𝐶)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1570   ∈ wcel 2145   ≠ wne 2956  ∀wral 3077  ⦋csb 3847  ∅c0 4279  ⟨cop 4590   class class class wbr 5103  {copab 5167   ↦ cmpt 5186   × cxp 5649  dom cdm 5651  Fun wfun 6525  ‘cfv 6531  (class class class)co 7412   ∈ cmpo 7414  curry ccur 8266
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-ext 2733  ax-sep 5249  ax-nul 5260  ax-pr 5391  ax-un 7740
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-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3078  df-rex 3088  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-id 5546  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-iota 6487  df-fun 6533  df-fn 6534  df-f 6535  df-fv 6539  df-ov 7415  df-oprab 7416  df-mpo 7417  df-1st 7990  df-2nd 7991  df-cur 8268
This theorem is used by:  mpocurryvald  8271  curfv  8876  veronesematrowd  50925
  Copyright terms: Public domain W3C validator