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 35757
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 6828 . . . . . . . . . 10 (𝐹 Fn (𝑉 × 𝑊) ↔ 𝐹 = (𝑧 ∈ (𝑉 × 𝑊) ↦ (𝐹𝑧)))
2 cureq 35753 . . . . . . . . . 10 (𝐹 = (𝑧 ∈ (𝑉 × 𝑊) ↦ (𝐹𝑧)) → curry 𝐹 = curry (𝑧 ∈ (𝑉 × 𝑊) ↦ (𝐹𝑧)))
31, 2sylbi 216 . . . . . . . . 9 (𝐹 Fn (𝑉 × 𝑊) → curry 𝐹 = curry (𝑧 ∈ (𝑉 × 𝑊) ↦ (𝐹𝑧)))
43adantr 481 . . . . . . . 8 ((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐵𝑊) → curry 𝐹 = curry (𝑧 ∈ (𝑉 × 𝑊) ↦ (𝐹𝑧)))
5 fveq2 6774 . . . . . . . . . 10 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐹𝑧) = (𝐹‘⟨𝑥, 𝑦⟩))
65mpompt 7388 . . . . . . . . 9 (𝑧 ∈ (𝑉 × 𝑊) ↦ (𝐹𝑧)) = (𝑥𝑉, 𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩))
7 fvex 6787 . . . . . . . . . . 11 (𝐹‘⟨𝑥, 𝑦⟩) ∈ V
87rgen2w 3077 . . . . . . . . . 10 𝑥𝑉𝑦𝑊 (𝐹‘⟨𝑥, 𝑦⟩) ∈ V
98a1i 11 . . . . . . . . 9 ((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐵𝑊) → ∀𝑥𝑉𝑦𝑊 (𝐹‘⟨𝑥, 𝑦⟩) ∈ V)
10 ne0i 4268 . . . . . . . . . 10 (𝐵𝑊𝑊 ≠ ∅)
1110adantl 482 . . . . . . . . 9 ((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐵𝑊) → 𝑊 ≠ ∅)
126, 9, 11mpocurryd 8085 . . . . . . . 8 ((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐵𝑊) → curry (𝑧 ∈ (𝑉 × 𝑊) ↦ (𝐹𝑧)) = (𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩))))
134, 12eqtrd 2778 . . . . . . 7 ((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐵𝑊) → curry 𝐹 = (𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩))))
14133adant2 1130 . . . . . 6 ((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) → curry 𝐹 = (𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩))))
1514fveq1d 6776 . . . . 5 ((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) → (curry 𝐹𝐴) = ((𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩)))‘𝐴))
1615adantr 481 . . . 4 (((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) ∧ 𝑊𝑋) → (curry 𝐹𝐴) = ((𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩)))‘𝐴))
17 mptexg 7097 . . . . . 6 (𝑊𝑋 → (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩)) ∈ V)
18 opeq1 4804 . . . . . . . . 9 (𝑥 = 𝐴 → ⟨𝑥, 𝑦⟩ = ⟨𝐴, 𝑦⟩)
1918fveq2d 6778 . . . . . . . 8 (𝑥 = 𝐴 → (𝐹‘⟨𝑥, 𝑦⟩) = (𝐹‘⟨𝐴, 𝑦⟩))
2019mpteq2dv 5176 . . . . . . 7 (𝑥 = 𝐴 → (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩)) = (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩)))
21 eqid 2738 . . . . . . 7 (𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩))) = (𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩)))
2220, 21fvmptg 6873 . . . . . 6 ((𝐴𝑉 ∧ (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩)) ∈ V) → ((𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩)))‘𝐴) = (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩)))
2317, 22sylan2 593 . . . . 5 ((𝐴𝑉𝑊𝑋) → ((𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩)))‘𝐴) = (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩)))
24233ad2antl2 1185 . . . 4 (((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) ∧ 𝑊𝑋) → ((𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩)))‘𝐴) = (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩)))
2516, 24eqtrd 2778 . . 3 (((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) ∧ 𝑊𝑋) → (curry 𝐹𝐴) = (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩)))
2625fveq1d 6776 . 2 (((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) ∧ 𝑊𝑋) → ((curry 𝐹𝐴)‘𝐵) = ((𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩))‘𝐵))
27 opeq2 4805 . . . . . . 7 (𝑦 = 𝐵 → ⟨𝐴, 𝑦⟩ = ⟨𝐴, 𝐵⟩)
2827fveq2d 6778 . . . . . 6 (𝑦 = 𝐵 → (𝐹‘⟨𝐴, 𝑦⟩) = (𝐹‘⟨𝐴, 𝐵⟩))
29 eqid 2738 . . . . . 6 (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩)) = (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩))
30 fvex 6787 . . . . . 6 (𝐹‘⟨𝐴, 𝐵⟩) ∈ V
3128, 29, 30fvmpt 6875 . . . . 5 (𝐵𝑊 → ((𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩))‘𝐵) = (𝐹‘⟨𝐴, 𝐵⟩))
32 df-ov 7278 . . . . 5 (𝐴𝐹𝐵) = (𝐹‘⟨𝐴, 𝐵⟩)
3331, 32eqtr4di 2796 . . . 4 (𝐵𝑊 → ((𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩))‘𝐵) = (𝐴𝐹𝐵))
34333ad2ant3 1134 . . 3 ((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) → ((𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩))‘𝐵) = (𝐴𝐹𝐵))
3534adantr 481 . 2 (((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) ∧ 𝑊𝑋) → ((𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩))‘𝐵) = (𝐴𝐹𝐵))
3626, 35eqtrd 2778 1 (((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) ∧ 𝑊𝑋) → ((curry 𝐹𝐴)‘𝐵) = (𝐴𝐹𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396  w3a 1086   = wceq 1539  wcel 2106  wne 2943  wral 3064  Vcvv 3432  c0 4256  cop 4567  cmpt 5157   × cxp 5587   Fn wfn 6428  cfv 6433  (class class class)co 7275  curry ccur 8081
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-rep 5209  ax-sep 5223  ax-nul 5230  ax-pr 5352  ax-un 7588
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-ov 7278  df-oprab 7279  df-mpo 7280  df-1st 7831  df-2nd 7832  df-cur 8083
This theorem is referenced by:  unccur  35760  matunitlindflem1  35773  matunitlindflem2  35774
  Copyright terms: Public domain W3C validator