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

Theorem mpocurryd 7935
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 7933 . 2 curry 𝐹 = (𝑥 ∈ dom dom 𝐹 ↦ {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦𝐹𝑧})
2 mpocurryd.c . . . . . . 7 (𝜑 → ∀𝑥𝑋𝑦𝑌 𝐶𝑉)
3 mpocurryd.f . . . . . . . 8 𝐹 = (𝑥𝑋, 𝑦𝑌𝐶)
43dmmpoga 7771 . . . . . . 7 (∀𝑥𝑋𝑦𝑌 𝐶𝑉 → dom 𝐹 = (𝑋 × 𝑌))
52, 4syl 17 . . . . . 6 (𝜑 → dom 𝐹 = (𝑋 × 𝑌))
65dmeqd 5774 . . . . 5 (𝜑 → dom dom 𝐹 = dom (𝑋 × 𝑌))
7 mpocurryd.n . . . . . 6 (𝜑𝑌 ≠ ∅)
8 dmxp 5799 . . . . . 6 (𝑌 ≠ ∅ → dom (𝑋 × 𝑌) = 𝑋)
97, 8syl 17 . . . . 5 (𝜑 → dom (𝑋 × 𝑌) = 𝑋)
106, 9eqtrd 2856 . . . 4 (𝜑 → dom dom 𝐹 = 𝑋)
1110mpteq1d 5155 . . 3 (𝜑 → (𝑥 ∈ dom dom 𝐹 ↦ {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦𝐹𝑧}) = (𝑥𝑋 ↦ {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦𝐹𝑧}))
12 df-mpt 5147 . . . . 5 (𝑦𝑌𝐶) = {⟨𝑦, 𝑧⟩ ∣ (𝑦𝑌𝑧 = 𝐶)}
133mpofun 7276 . . . . . . . 8 Fun 𝐹
14 funbrfv2b 6723 . . . . . . . 8 (Fun 𝐹 → (⟨𝑥, 𝑦𝐹𝑧 ↔ (⟨𝑥, 𝑦⟩ ∈ dom 𝐹 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧)))
1513, 14mp1i 13 . . . . . . 7 ((𝜑𝑥𝑋) → (⟨𝑥, 𝑦𝐹𝑧 ↔ (⟨𝑥, 𝑦⟩ ∈ dom 𝐹 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧)))
165adantr 483 . . . . . . . . . 10 ((𝜑𝑥𝑋) → dom 𝐹 = (𝑋 × 𝑌))
1716eleq2d 2898 . . . . . . . . 9 ((𝜑𝑥𝑋) → (⟨𝑥, 𝑦⟩ ∈ dom 𝐹 ↔ ⟨𝑥, 𝑦⟩ ∈ (𝑋 × 𝑌)))
18 opelxp 5591 . . . . . . . . 9 (⟨𝑥, 𝑦⟩ ∈ (𝑋 × 𝑌) ↔ (𝑥𝑋𝑦𝑌))
1917, 18syl6bb 289 . . . . . . . 8 ((𝜑𝑥𝑋) → (⟨𝑥, 𝑦⟩ ∈ dom 𝐹 ↔ (𝑥𝑋𝑦𝑌)))
2019anbi1d 631 . . . . . . 7 ((𝜑𝑥𝑋) → ((⟨𝑥, 𝑦⟩ ∈ dom 𝐹 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧) ↔ ((𝑥𝑋𝑦𝑌) ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧)))
21 an21 642 . . . . . . . 8 (((𝑥𝑋𝑦𝑌) ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧) ↔ (𝑦𝑌 ∧ (𝑥𝑋 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧)))
22 ibar 531 . . . . . . . . . . . . 13 (𝑥𝑋 → ((𝐹‘⟨𝑥, 𝑦⟩) = 𝑧 ↔ (𝑥𝑋 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧)))
2322bicomd 225 . . . . . . . . . . . 12 (𝑥𝑋 → ((𝑥𝑋 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧) ↔ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧))
2423adantl 484 . . . . . . . . . . 11 ((𝜑𝑥𝑋) → ((𝑥𝑋 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧) ↔ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧))
2524adantr 483 . . . . . . . . . 10 (((𝜑𝑥𝑋) ∧ 𝑦𝑌) → ((𝑥𝑋 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧) ↔ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧))
26 df-ov 7159 . . . . . . . . . . . . 13 (𝑥𝐹𝑦) = (𝐹‘⟨𝑥, 𝑦⟩)
27 nfcv 2977 . . . . . . . . . . . . . . . . 17 𝑎𝐶
28 nfcv 2977 . . . . . . . . . . . . . . . . 17 𝑏𝐶
29 nfcv 2977 . . . . . . . . . . . . . . . . . 18 𝑥𝑏
30 nfcsb1v 3907 . . . . . . . . . . . . . . . . . 18 𝑥𝑎 / 𝑥𝐶
3129, 30nfcsbw 3909 . . . . . . . . . . . . . . . . 17 𝑥𝑏 / 𝑦𝑎 / 𝑥𝐶
32 nfcsb1v 3907 . . . . . . . . . . . . . . . . 17 𝑦𝑏 / 𝑦𝑎 / 𝑥𝐶
33 csbeq1a 3897 . . . . . . . . . . . . . . . . . 18 (𝑥 = 𝑎𝐶 = 𝑎 / 𝑥𝐶)
34 csbeq1a 3897 . . . . . . . . . . . . . . . . . 18 (𝑦 = 𝑏𝑎 / 𝑥𝐶 = 𝑏 / 𝑦𝑎 / 𝑥𝐶)
3533, 34sylan9eq 2876 . . . . . . . . . . . . . . . . 17 ((𝑥 = 𝑎𝑦 = 𝑏) → 𝐶 = 𝑏 / 𝑦𝑎 / 𝑥𝐶)
3627, 28, 31, 32, 35cbvmpo 7248 . . . . . . . . . . . . . . . 16 (𝑥𝑋, 𝑦𝑌𝐶) = (𝑎𝑋, 𝑏𝑌𝑏 / 𝑦𝑎 / 𝑥𝐶)
373, 36eqtri 2844 . . . . . . . . . . . . . . 15 𝐹 = (𝑎𝑋, 𝑏𝑌𝑏 / 𝑦𝑎 / 𝑥𝐶)
3837a1i 11 . . . . . . . . . . . . . 14 (((𝜑𝑥𝑋) ∧ 𝑦𝑌) → 𝐹 = (𝑎𝑋, 𝑏𝑌𝑏 / 𝑦𝑎 / 𝑥𝐶))
3933eqcomd 2827 . . . . . . . . . . . . . . . . . 18 (𝑥 = 𝑎𝑎 / 𝑥𝐶 = 𝐶)
4039equcoms 2027 . . . . . . . . . . . . . . . . 17 (𝑎 = 𝑥𝑎 / 𝑥𝐶 = 𝐶)
4140csbeq2dv 3890 . . . . . . . . . . . . . . . 16 (𝑎 = 𝑥𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝑏 / 𝑦𝐶)
42 csbeq1a 3897 . . . . . . . . . . . . . . . . . 18 (𝑦 = 𝑏𝐶 = 𝑏 / 𝑦𝐶)
4342eqcomd 2827 . . . . . . . . . . . . . . . . 17 (𝑦 = 𝑏𝑏 / 𝑦𝐶 = 𝐶)
4443equcoms 2027 . . . . . . . . . . . . . . . 16 (𝑏 = 𝑦𝑏 / 𝑦𝐶 = 𝐶)
4541, 44sylan9eq 2876 . . . . . . . . . . . . . . 15 ((𝑎 = 𝑥𝑏 = 𝑦) → 𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝐶)
4645adantl 484 . . . . . . . . . . . . . 14 ((((𝜑𝑥𝑋) ∧ 𝑦𝑌) ∧ (𝑎 = 𝑥𝑏 = 𝑦)) → 𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝐶)
47 simpr 487 . . . . . . . . . . . . . . 15 ((𝜑𝑥𝑋) → 𝑥𝑋)
4847adantr 483 . . . . . . . . . . . . . 14 (((𝜑𝑥𝑋) ∧ 𝑦𝑌) → 𝑥𝑋)
49 simpr 487 . . . . . . . . . . . . . 14 (((𝜑𝑥𝑋) ∧ 𝑦𝑌) → 𝑦𝑌)
50 rsp2 3213 . . . . . . . . . . . . . . . 16 (∀𝑥𝑋𝑦𝑌 𝐶𝑉 → ((𝑥𝑋𝑦𝑌) → 𝐶𝑉))
512, 50syl 17 . . . . . . . . . . . . . . 15 (𝜑 → ((𝑥𝑋𝑦𝑌) → 𝐶𝑉))
5251impl 458 . . . . . . . . . . . . . 14 (((𝜑𝑥𝑋) ∧ 𝑦𝑌) → 𝐶𝑉)
5338, 46, 48, 49, 52ovmpod 7302 . . . . . . . . . . . . 13 (((𝜑𝑥𝑋) ∧ 𝑦𝑌) → (𝑥𝐹𝑦) = 𝐶)
5426, 53syl5eqr 2870 . . . . . . . . . . . 12 (((𝜑𝑥𝑋) ∧ 𝑦𝑌) → (𝐹‘⟨𝑥, 𝑦⟩) = 𝐶)
5554eqeq1d 2823 . . . . . . . . . . 11 (((𝜑𝑥𝑋) ∧ 𝑦𝑌) → ((𝐹‘⟨𝑥, 𝑦⟩) = 𝑧𝐶 = 𝑧))
56 eqcom 2828 . . . . . . . . . . 11 (𝐶 = 𝑧𝑧 = 𝐶)
5755, 56syl6bb 289 . . . . . . . . . 10 (((𝜑𝑥𝑋) ∧ 𝑦𝑌) → ((𝐹‘⟨𝑥, 𝑦⟩) = 𝑧𝑧 = 𝐶))
5825, 57bitrd 281 . . . . . . . . 9 (((𝜑𝑥𝑋) ∧ 𝑦𝑌) → ((𝑥𝑋 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧) ↔ 𝑧 = 𝐶))
5958pm5.32da 581 . . . . . . . 8 ((𝜑𝑥𝑋) → ((𝑦𝑌 ∧ (𝑥𝑋 ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧)) ↔ (𝑦𝑌𝑧 = 𝐶)))
6021, 59syl5bb 285 . . . . . . 7 ((𝜑𝑥𝑋) → (((𝑥𝑋𝑦𝑌) ∧ (𝐹‘⟨𝑥, 𝑦⟩) = 𝑧) ↔ (𝑦𝑌𝑧 = 𝐶)))
6115, 20, 603bitrrd 308 . . . . . 6 ((𝜑𝑥𝑋) → ((𝑦𝑌𝑧 = 𝐶) ↔ ⟨𝑥, 𝑦𝐹𝑧))
6261opabbidv 5132 . . . . 5 ((𝜑𝑥𝑋) → {⟨𝑦, 𝑧⟩ ∣ (𝑦𝑌𝑧 = 𝐶)} = {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦𝐹𝑧})
6312, 62syl5req 2869 . . . 4 ((𝜑𝑥𝑋) → {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦𝐹𝑧} = (𝑦𝑌𝐶))
6463mpteq2dva 5161 . . 3 (𝜑 → (𝑥𝑋 ↦ {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦𝐹𝑧}) = (𝑥𝑋 ↦ (𝑦𝑌𝐶)))
6511, 64eqtrd 2856 . 2 (𝜑 → (𝑥 ∈ dom dom 𝐹 ↦ {⟨𝑦, 𝑧⟩ ∣ ⟨𝑥, 𝑦𝐹𝑧}) = (𝑥𝑋 ↦ (𝑦𝑌𝐶)))
661, 65syl5eq 2868 1 (𝜑 → curry 𝐹 = (𝑥𝑋 ↦ (𝑦𝑌𝐶)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398   = wceq 1537  wcel 2114  wne 3016  wral 3138  csb 3883  c0 4291  cop 4573   class class class wbr 5066  {copab 5128  cmpt 5146   × cxp 5553  dom cdm 5555  Fun wfun 6349  cfv 6355  (class class class)co 7156  cmpo 7158  curry ccur 7931
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2793  ax-sep 5203  ax-nul 5210  ax-pow 5266  ax-pr 5330  ax-un 7461
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-ral 3143  df-rex 3144  df-rab 3147  df-v 3496  df-sbc 3773  df-csb 3884  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-nul 4292  df-if 4468  df-sn 4568  df-pr 4570  df-op 4574  df-uni 4839  df-iun 4921  df-br 5067  df-opab 5129  df-mpt 5147  df-id 5460  df-xp 5561  df-rel 5562  df-cnv 5563  df-co 5564  df-dm 5565  df-rn 5566  df-res 5567  df-ima 5568  df-iota 6314  df-fun 6357  df-fn 6358  df-f 6359  df-fv 6363  df-ov 7159  df-oprab 7160  df-mpo 7161  df-1st 7689  df-2nd 7690  df-cur 7933
This theorem is referenced by:  mpocurryvald  7936  curfv  34887
  Copyright terms: Public domain W3C validator