Users' Mathboxes Mathbox for Brendan Leahy < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  curfv Structured version   Visualization version   GIF version

Theorem curfv 35684
Description: Value of currying. (Contributed by Brendan Leahy, 2-Jun-2021.)
Assertion
Ref Expression
curfv (((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) ∧ 𝑊𝑋) → ((curry 𝐹𝐴)‘𝐵) = (𝐴𝐹𝐵))

Proof of Theorem curfv
Dummy variables 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 dffn5 6810 . . . . . . . . . 10 (𝐹 Fn (𝑉 × 𝑊) ↔ 𝐹 = (𝑧 ∈ (𝑉 × 𝑊) ↦ (𝐹𝑧)))
2 cureq 35680 . . . . . . . . . 10 (𝐹 = (𝑧 ∈ (𝑉 × 𝑊) ↦ (𝐹𝑧)) → curry 𝐹 = curry (𝑧 ∈ (𝑉 × 𝑊) ↦ (𝐹𝑧)))
31, 2sylbi 216 . . . . . . . . 9 (𝐹 Fn (𝑉 × 𝑊) → curry 𝐹 = curry (𝑧 ∈ (𝑉 × 𝑊) ↦ (𝐹𝑧)))
43adantr 480 . . . . . . . 8 ((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐵𝑊) → curry 𝐹 = curry (𝑧 ∈ (𝑉 × 𝑊) ↦ (𝐹𝑧)))
5 fveq2 6756 . . . . . . . . . 10 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐹𝑧) = (𝐹‘⟨𝑥, 𝑦⟩))
65mpompt 7366 . . . . . . . . 9 (𝑧 ∈ (𝑉 × 𝑊) ↦ (𝐹𝑧)) = (𝑥𝑉, 𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩))
7 fvex 6769 . . . . . . . . . . 11 (𝐹‘⟨𝑥, 𝑦⟩) ∈ V
87rgen2w 3076 . . . . . . . . . 10 𝑥𝑉𝑦𝑊 (𝐹‘⟨𝑥, 𝑦⟩) ∈ V
98a1i 11 . . . . . . . . 9 ((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐵𝑊) → ∀𝑥𝑉𝑦𝑊 (𝐹‘⟨𝑥, 𝑦⟩) ∈ V)
10 ne0i 4265 . . . . . . . . . 10 (𝐵𝑊𝑊 ≠ ∅)
1110adantl 481 . . . . . . . . 9 ((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐵𝑊) → 𝑊 ≠ ∅)
126, 9, 11mpocurryd 8056 . . . . . . . 8 ((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐵𝑊) → curry (𝑧 ∈ (𝑉 × 𝑊) ↦ (𝐹𝑧)) = (𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩))))
134, 12eqtrd 2778 . . . . . . 7 ((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐵𝑊) → curry 𝐹 = (𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩))))
14133adant2 1129 . . . . . 6 ((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) → curry 𝐹 = (𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩))))
1514fveq1d 6758 . . . . 5 ((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) → (curry 𝐹𝐴) = ((𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩)))‘𝐴))
1615adantr 480 . . . 4 (((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) ∧ 𝑊𝑋) → (curry 𝐹𝐴) = ((𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩)))‘𝐴))
17 mptexg 7079 . . . . . 6 (𝑊𝑋 → (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩)) ∈ V)
18 opeq1 4801 . . . . . . . . 9 (𝑥 = 𝐴 → ⟨𝑥, 𝑦⟩ = ⟨𝐴, 𝑦⟩)
1918fveq2d 6760 . . . . . . . 8 (𝑥 = 𝐴 → (𝐹‘⟨𝑥, 𝑦⟩) = (𝐹‘⟨𝐴, 𝑦⟩))
2019mpteq2dv 5172 . . . . . . 7 (𝑥 = 𝐴 → (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩)) = (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩)))
21 eqid 2738 . . . . . . 7 (𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩))) = (𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩)))
2220, 21fvmptg 6855 . . . . . 6 ((𝐴𝑉 ∧ (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩)) ∈ V) → ((𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩)))‘𝐴) = (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩)))
2317, 22sylan2 592 . . . . 5 ((𝐴𝑉𝑊𝑋) → ((𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩)))‘𝐴) = (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩)))
24233ad2antl2 1184 . . . 4 (((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) ∧ 𝑊𝑋) → ((𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩)))‘𝐴) = (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩)))
2516, 24eqtrd 2778 . . 3 (((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) ∧ 𝑊𝑋) → (curry 𝐹𝐴) = (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩)))
2625fveq1d 6758 . 2 (((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) ∧ 𝑊𝑋) → ((curry 𝐹𝐴)‘𝐵) = ((𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩))‘𝐵))
27 opeq2 4802 . . . . . . 7 (𝑦 = 𝐵 → ⟨𝐴, 𝑦⟩ = ⟨𝐴, 𝐵⟩)
2827fveq2d 6760 . . . . . 6 (𝑦 = 𝐵 → (𝐹‘⟨𝐴, 𝑦⟩) = (𝐹‘⟨𝐴, 𝐵⟩))
29 eqid 2738 . . . . . 6 (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩)) = (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩))
30 fvex 6769 . . . . . 6 (𝐹‘⟨𝐴, 𝐵⟩) ∈ V
3128, 29, 30fvmpt 6857 . . . . 5 (𝐵𝑊 → ((𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩))‘𝐵) = (𝐹‘⟨𝐴, 𝐵⟩))
32 df-ov 7258 . . . . 5 (𝐴𝐹𝐵) = (𝐹‘⟨𝐴, 𝐵⟩)
3331, 32eqtr4di 2797 . . . 4 (𝐵𝑊 → ((𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩))‘𝐵) = (𝐴𝐹𝐵))
34333ad2ant3 1133 . . 3 ((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) → ((𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩))‘𝐵) = (𝐴𝐹𝐵))
3534adantr 480 . 2 (((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) ∧ 𝑊𝑋) → ((𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩))‘𝐵) = (𝐴𝐹𝐵))
3626, 35eqtrd 2778 1 (((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) ∧ 𝑊𝑋) → ((curry 𝐹𝐴)‘𝐵) = (𝐴𝐹𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395  w3a 1085   = wceq 1539  wcel 2108  wne 2942  wral 3063  Vcvv 3422  c0 4253  cop 4564  cmpt 5153   × cxp 5578   Fn wfn 6413  cfv 6418  (class class class)co 7255  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-rep 5205  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-reu 3070  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-f1 6423  df-fo 6424  df-f1o 6425  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:  unccur  35687  matunitlindflem1  35700  matunitlindflem2  35701
  Copyright terms: Public domain W3C validator