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

Theorem curfv 33519
 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 6280 . . . . . . . . . 10 (𝐹 Fn (𝑉 × 𝑊) ↔ 𝐹 = (𝑧 ∈ (𝑉 × 𝑊) ↦ (𝐹𝑧)))
2 cureq 33515 . . . . . . . . . 10 (𝐹 = (𝑧 ∈ (𝑉 × 𝑊) ↦ (𝐹𝑧)) → curry 𝐹 = curry (𝑧 ∈ (𝑉 × 𝑊) ↦ (𝐹𝑧)))
31, 2sylbi 207 . . . . . . . . 9 (𝐹 Fn (𝑉 × 𝑊) → curry 𝐹 = curry (𝑧 ∈ (𝑉 × 𝑊) ↦ (𝐹𝑧)))
43adantr 480 . . . . . . . 8 ((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐵𝑊) → curry 𝐹 = curry (𝑧 ∈ (𝑉 × 𝑊) ↦ (𝐹𝑧)))
5 fveq2 6229 . . . . . . . . . 10 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐹𝑧) = (𝐹‘⟨𝑥, 𝑦⟩))
65mpt2mpt 6794 . . . . . . . . 9 (𝑧 ∈ (𝑉 × 𝑊) ↦ (𝐹𝑧)) = (𝑥𝑉, 𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩))
7 fvex 6239 . . . . . . . . . . 11 (𝐹‘⟨𝑥, 𝑦⟩) ∈ V
87rgen2w 2954 . . . . . . . . . 10 𝑥𝑉𝑦𝑊 (𝐹‘⟨𝑥, 𝑦⟩) ∈ V
98a1i 11 . . . . . . . . 9 ((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐵𝑊) → ∀𝑥𝑉𝑦𝑊 (𝐹‘⟨𝑥, 𝑦⟩) ∈ V)
10 ne0i 3954 . . . . . . . . . 10 (𝐵𝑊𝑊 ≠ ∅)
1110adantl 481 . . . . . . . . 9 ((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐵𝑊) → 𝑊 ≠ ∅)
126, 9, 11mpt2curryd 7440 . . . . . . . 8 ((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐵𝑊) → curry (𝑧 ∈ (𝑉 × 𝑊) ↦ (𝐹𝑧)) = (𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩))))
134, 12eqtrd 2685 . . . . . . 7 ((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐵𝑊) → curry 𝐹 = (𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩))))
14133adant2 1100 . . . . . 6 ((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) → curry 𝐹 = (𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩))))
1514fveq1d 6231 . . . . 5 ((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) → (curry 𝐹𝐴) = ((𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩)))‘𝐴))
1615adantr 480 . . . 4 (((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) ∧ 𝑊𝑋) → (curry 𝐹𝐴) = ((𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩)))‘𝐴))
17 mptexg 6525 . . . . . 6 (𝑊𝑋 → (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩)) ∈ V)
18 opeq1 4433 . . . . . . . . 9 (𝑥 = 𝐴 → ⟨𝑥, 𝑦⟩ = ⟨𝐴, 𝑦⟩)
1918fveq2d 6233 . . . . . . . 8 (𝑥 = 𝐴 → (𝐹‘⟨𝑥, 𝑦⟩) = (𝐹‘⟨𝐴, 𝑦⟩))
2019mpteq2dv 4778 . . . . . . 7 (𝑥 = 𝐴 → (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩)) = (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩)))
21 eqid 2651 . . . . . . 7 (𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩))) = (𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩)))
2220, 21fvmptg 6319 . . . . . 6 ((𝐴𝑉 ∧ (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩)) ∈ V) → ((𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩)))‘𝐴) = (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩)))
2317, 22sylan2 490 . . . . 5 ((𝐴𝑉𝑊𝑋) → ((𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩)))‘𝐴) = (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩)))
24233ad2antl2 1244 . . . 4 (((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) ∧ 𝑊𝑋) → ((𝑥𝑉 ↦ (𝑦𝑊 ↦ (𝐹‘⟨𝑥, 𝑦⟩)))‘𝐴) = (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩)))
2516, 24eqtrd 2685 . . 3 (((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) ∧ 𝑊𝑋) → (curry 𝐹𝐴) = (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩)))
2625fveq1d 6231 . 2 (((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) ∧ 𝑊𝑋) → ((curry 𝐹𝐴)‘𝐵) = ((𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩))‘𝐵))
27 opeq2 4434 . . . . . . 7 (𝑦 = 𝐵 → ⟨𝐴, 𝑦⟩ = ⟨𝐴, 𝐵⟩)
2827fveq2d 6233 . . . . . 6 (𝑦 = 𝐵 → (𝐹‘⟨𝐴, 𝑦⟩) = (𝐹‘⟨𝐴, 𝐵⟩))
29 eqid 2651 . . . . . 6 (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩)) = (𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩))
30 fvex 6239 . . . . . 6 (𝐹‘⟨𝐴, 𝐵⟩) ∈ V
3128, 29, 30fvmpt 6321 . . . . 5 (𝐵𝑊 → ((𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩))‘𝐵) = (𝐹‘⟨𝐴, 𝐵⟩))
32 df-ov 6693 . . . . 5 (𝐴𝐹𝐵) = (𝐹‘⟨𝐴, 𝐵⟩)
3331, 32syl6eqr 2703 . . . 4 (𝐵𝑊 → ((𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩))‘𝐵) = (𝐴𝐹𝐵))
34333ad2ant3 1104 . . 3 ((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) → ((𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩))‘𝐵) = (𝐴𝐹𝐵))
3534adantr 480 . 2 (((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) ∧ 𝑊𝑋) → ((𝑦𝑊 ↦ (𝐹‘⟨𝐴, 𝑦⟩))‘𝐵) = (𝐴𝐹𝐵))
3626, 35eqtrd 2685 1 (((𝐹 Fn (𝑉 × 𝑊) ∧ 𝐴𝑉𝐵𝑊) ∧ 𝑊𝑋) → ((curry 𝐹𝐴)‘𝐵) = (𝐴𝐹𝐵))
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ∧ wa 383   ∧ w3a 1054   = wceq 1523   ∈ wcel 2030   ≠ wne 2823  ∀wral 2941  Vcvv 3231  ∅c0 3948  ⟨cop 4216   ↦ cmpt 4762   × cxp 5141   Fn wfn 5921  ‘cfv 5926  (class class class)co 6690  curry ccur 7436 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1762  ax-4 1777  ax-5 1879  ax-6 1945  ax-7 1981  ax-8 2032  ax-9 2039  ax-10 2059  ax-11 2074  ax-12 2087  ax-13 2282  ax-ext 2631  ax-rep 4804  ax-sep 4814  ax-nul 4822  ax-pow 4873  ax-pr 4936  ax-un 6991 This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3an 1056  df-tru 1526  df-ex 1745  df-nf 1750  df-sb 1938  df-eu 2502  df-mo 2503  df-clab 2638  df-cleq 2644  df-clel 2647  df-nfc 2782  df-ne 2824  df-ral 2946  df-rex 2947  df-reu 2948  df-rab 2950  df-v 3233  df-sbc 3469  df-csb 3567  df-dif 3610  df-un 3612  df-in 3614  df-ss 3621  df-nul 3949  df-if 4120  df-sn 4211  df-pr 4213  df-op 4217  df-uni 4469  df-iun 4554  df-br 4686  df-opab 4746  df-mpt 4763  df-id 5053  df-xp 5149  df-rel 5150  df-cnv 5151  df-co 5152  df-dm 5153  df-rn 5154  df-res 5155  df-ima 5156  df-iota 5889  df-fun 5928  df-fn 5929  df-f 5930  df-f1 5931  df-fo 5932  df-f1o 5933  df-fv 5934  df-ov 6693  df-oprab 6694  df-mpt2 6695  df-1st 7210  df-2nd 7211  df-cur 7438 This theorem is referenced by:  unccur  33522  matunitlindflem1  33535  matunitlindflem2  33536
 Copyright terms: Public domain W3C validator