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

Theorem fvmpt2curryd 7284
Description: The value of the value of a curried operation given in maps-to notation is the operation value of the original operation. (Contributed by AV, 27-Oct-2019.)
Hypotheses
Ref Expression
fvmpt2curryd.f 𝐹 = (𝑥𝑋, 𝑦𝑌𝐶)
fvmpt2curryd.c (𝜑 → ∀𝑥𝑋𝑦𝑌 𝐶𝑉)
fvmpt2curryd.y (𝜑𝑌𝑊)
fvmpt2curryd.a (𝜑𝐴𝑋)
fvmpt2curryd.b (𝜑𝐵𝑌)
Assertion
Ref Expression
fvmpt2curryd (𝜑 → ((curry 𝐹𝐴)‘𝐵) = (𝐴𝐹𝐵))
Distinct variable groups:   𝑥,𝐴,𝑦   𝑥,𝐵,𝑦   𝑥,𝑉,𝑦   𝑥,𝑋,𝑦   𝑥,𝑌,𝑦   𝜑,𝑥,𝑦
Allowed substitution hints:   𝐶(𝑥,𝑦)   𝐹(𝑥,𝑦)   𝑊(𝑥,𝑦)

Proof of Theorem fvmpt2curryd
Dummy variables 𝑎 𝑏 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fvmpt2curryd.b . . 3 (𝜑𝐵𝑌)
2 csbcom 3946 . . . . 5 𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝐴 / 𝑎𝐵 / 𝑏𝑏 / 𝑦𝑎 / 𝑥𝐶
3 csbco 3509 . . . . . 6 𝐵 / 𝑏𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝐵 / 𝑦𝑎 / 𝑥𝐶
43csbeq2i 3945 . . . . 5 𝐴 / 𝑎𝐵 / 𝑏𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝐴 / 𝑎𝐵 / 𝑦𝑎 / 𝑥𝐶
5 csbcom 3946 . . . . . 6 𝐴 / 𝑎𝐵 / 𝑦𝑎 / 𝑥𝐶 = 𝐵 / 𝑦𝐴 / 𝑎𝑎 / 𝑥𝐶
6 csbco 3509 . . . . . . 7 𝐴 / 𝑎𝑎 / 𝑥𝐶 = 𝐴 / 𝑥𝐶
76csbeq2i 3945 . . . . . 6 𝐵 / 𝑦𝐴 / 𝑎𝑎 / 𝑥𝐶 = 𝐵 / 𝑦𝐴 / 𝑥𝐶
85, 7eqtri 2632 . . . . 5 𝐴 / 𝑎𝐵 / 𝑦𝑎 / 𝑥𝐶 = 𝐵 / 𝑦𝐴 / 𝑥𝐶
92, 4, 83eqtri 2636 . . . 4 𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝐵 / 𝑦𝐴 / 𝑥𝐶
10 fvmpt2curryd.a . . . . 5 (𝜑𝐴𝑋)
11 fvmpt2curryd.c . . . . 5 (𝜑 → ∀𝑥𝑋𝑦𝑌 𝐶𝑉)
12 nfcsb1v 3515 . . . . . . . 8 𝑥𝐴 / 𝑥𝐶
1312nfel1 2765 . . . . . . 7 𝑥𝐴 / 𝑥𝐶𝑉
14 nfcsb1v 3515 . . . . . . . 8 𝑦𝐵 / 𝑦𝐴 / 𝑥𝐶
1514nfel1 2765 . . . . . . 7 𝑦𝐵 / 𝑦𝐴 / 𝑥𝐶𝑉
16 csbeq1a 3508 . . . . . . . 8 (𝑥 = 𝐴𝐶 = 𝐴 / 𝑥𝐶)
1716eleq1d 2672 . . . . . . 7 (𝑥 = 𝐴 → (𝐶𝑉𝐴 / 𝑥𝐶𝑉))
18 csbeq1a 3508 . . . . . . . 8 (𝑦 = 𝐵𝐴 / 𝑥𝐶 = 𝐵 / 𝑦𝐴 / 𝑥𝐶)
1918eleq1d 2672 . . . . . . 7 (𝑦 = 𝐵 → (𝐴 / 𝑥𝐶𝑉𝐵 / 𝑦𝐴 / 𝑥𝐶𝑉))
2013, 15, 17, 19rspc2 3292 . . . . . 6 ((𝐴𝑋𝐵𝑌) → (∀𝑥𝑋𝑦𝑌 𝐶𝑉𝐵 / 𝑦𝐴 / 𝑥𝐶𝑉))
2120imp 444 . . . . 5 (((𝐴𝑋𝐵𝑌) ∧ ∀𝑥𝑋𝑦𝑌 𝐶𝑉) → 𝐵 / 𝑦𝐴 / 𝑥𝐶𝑉)
2210, 1, 11, 21syl21anc 1317 . . . 4 (𝜑𝐵 / 𝑦𝐴 / 𝑥𝐶𝑉)
239, 22syl5eqel 2692 . . 3 (𝜑𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶𝑉)
24 eqid 2610 . . . 4 (𝑏𝑌𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶) = (𝑏𝑌𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)
2524fvmpts 6194 . . 3 ((𝐵𝑌𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶𝑉) → ((𝑏𝑌𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)‘𝐵) = 𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)
261, 23, 25syl2anc 691 . 2 (𝜑 → ((𝑏𝑌𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)‘𝐵) = 𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)
27 fvmpt2curryd.f . . . . 5 𝐹 = (𝑥𝑋, 𝑦𝑌𝐶)
28 nfcv 2751 . . . . . 6 𝑎𝐶
29 nfcv 2751 . . . . . 6 𝑏𝐶
30 nfcv 2751 . . . . . . 7 𝑥𝑏
31 nfcsb1v 3515 . . . . . . 7 𝑥𝑎 / 𝑥𝐶
3230, 31nfcsb 3517 . . . . . 6 𝑥𝑏 / 𝑦𝑎 / 𝑥𝐶
33 nfcsb1v 3515 . . . . . 6 𝑦𝑏 / 𝑦𝑎 / 𝑥𝐶
34 csbeq1a 3508 . . . . . . 7 (𝑥 = 𝑎𝐶 = 𝑎 / 𝑥𝐶)
35 csbeq1a 3508 . . . . . . 7 (𝑦 = 𝑏𝑎 / 𝑥𝐶 = 𝑏 / 𝑦𝑎 / 𝑥𝐶)
3634, 35sylan9eq 2664 . . . . . 6 ((𝑥 = 𝑎𝑦 = 𝑏) → 𝐶 = 𝑏 / 𝑦𝑎 / 𝑥𝐶)
3728, 29, 32, 33, 36cbvmpt2 6632 . . . . 5 (𝑥𝑋, 𝑦𝑌𝐶) = (𝑎𝑋, 𝑏𝑌𝑏 / 𝑦𝑎 / 𝑥𝐶)
3827, 37eqtri 2632 . . . 4 𝐹 = (𝑎𝑋, 𝑏𝑌𝑏 / 𝑦𝑎 / 𝑥𝐶)
3931nfel1 2765 . . . . . . 7 𝑥𝑎 / 𝑥𝐶𝑉
4033nfel1 2765 . . . . . . 7 𝑦𝑏 / 𝑦𝑎 / 𝑥𝐶𝑉
4134eleq1d 2672 . . . . . . 7 (𝑥 = 𝑎 → (𝐶𝑉𝑎 / 𝑥𝐶𝑉))
4235eleq1d 2672 . . . . . . 7 (𝑦 = 𝑏 → (𝑎 / 𝑥𝐶𝑉𝑏 / 𝑦𝑎 / 𝑥𝐶𝑉))
4339, 40, 41, 42rspc2 3292 . . . . . 6 ((𝑎𝑋𝑏𝑌) → (∀𝑥𝑋𝑦𝑌 𝐶𝑉𝑏 / 𝑦𝑎 / 𝑥𝐶𝑉))
4411, 43mpan9 485 . . . . 5 ((𝜑 ∧ (𝑎𝑋𝑏𝑌)) → 𝑏 / 𝑦𝑎 / 𝑥𝐶𝑉)
4544ralrimivva 2954 . . . 4 (𝜑 → ∀𝑎𝑋𝑏𝑌 𝑏 / 𝑦𝑎 / 𝑥𝐶𝑉)
46 ne0i 3880 . . . . 5 (𝐵𝑌𝑌 ≠ ∅)
471, 46syl 17 . . . 4 (𝜑𝑌 ≠ ∅)
48 fvmpt2curryd.y . . . 4 (𝜑𝑌𝑊)
4938, 45, 47, 48, 10mpt2curryvald 7283 . . 3 (𝜑 → (curry 𝐹𝐴) = (𝑏𝑌𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶))
5049fveq1d 6105 . 2 (𝜑 → ((curry 𝐹𝐴)‘𝐵) = ((𝑏𝑌𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)‘𝐵))
5127a1i 11 . . 3 (𝜑𝐹 = (𝑥𝑋, 𝑦𝑌𝐶))
52 csbco 3509 . . . . . . . 8 𝑦 / 𝑏𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝑦 / 𝑦𝑎 / 𝑥𝐶
53 csbid 3507 . . . . . . . 8 𝑦 / 𝑦𝑎 / 𝑥𝐶 = 𝑎 / 𝑥𝐶
5452, 53eqtr2i 2633 . . . . . . 7 𝑎 / 𝑥𝐶 = 𝑦 / 𝑏𝑏 / 𝑦𝑎 / 𝑥𝐶
5554a1i 11 . . . . . 6 (𝜑𝑎 / 𝑥𝐶 = 𝑦 / 𝑏𝑏 / 𝑦𝑎 / 𝑥𝐶)
5655csbeq2dv 3944 . . . . 5 (𝜑𝑥 / 𝑎𝑎 / 𝑥𝐶 = 𝑥 / 𝑎𝑦 / 𝑏𝑏 / 𝑦𝑎 / 𝑥𝐶)
57 csbco 3509 . . . . . 6 𝑥 / 𝑎𝑎 / 𝑥𝐶 = 𝑥 / 𝑥𝐶
58 csbid 3507 . . . . . 6 𝑥 / 𝑥𝐶 = 𝐶
5957, 58eqtri 2632 . . . . 5 𝑥 / 𝑎𝑎 / 𝑥𝐶 = 𝐶
60 csbcom 3946 . . . . 5 𝑥 / 𝑎𝑦 / 𝑏𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝑦 / 𝑏𝑥 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶
6156, 59, 603eqtr3g 2667 . . . 4 (𝜑𝐶 = 𝑦 / 𝑏𝑥 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)
62 csbeq1 3502 . . . . . . 7 (𝑥 = 𝐴𝑥 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)
6362adantr 480 . . . . . 6 ((𝑥 = 𝐴𝑦 = 𝐵) → 𝑥 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)
6463csbeq2dv 3944 . . . . 5 ((𝑥 = 𝐴𝑦 = 𝐵) → 𝑦 / 𝑏𝑥 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝑦 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)
65 csbeq1 3502 . . . . . 6 (𝑦 = 𝐵𝑦 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)
6665adantl 481 . . . . 5 ((𝑥 = 𝐴𝑦 = 𝐵) → 𝑦 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)
6764, 66eqtrd 2644 . . . 4 ((𝑥 = 𝐴𝑦 = 𝐵) → 𝑦 / 𝑏𝑥 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)
6861, 67sylan9eq 2664 . . 3 ((𝜑 ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → 𝐶 = 𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)
69 eqidd 2611 . . 3 ((𝜑𝑥 = 𝐴) → 𝑌 = 𝑌)
70 nfv 1830 . . 3 𝑥𝜑
71 nfv 1830 . . 3 𝑦𝜑
72 nfcv 2751 . . 3 𝑦𝐴
73 nfcv 2751 . . 3 𝑥𝐵
74 nfcv 2751 . . . . 5 𝑥𝐴
7574, 32nfcsb 3517 . . . 4 𝑥𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶
7673, 75nfcsb 3517 . . 3 𝑥𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶
779, 14nfcxfr 2749 . . 3 𝑦𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶
7851, 68, 69, 10, 1, 23, 70, 71, 72, 73, 76, 77ovmpt2dxf 6684 . 2 (𝜑 → (𝐴𝐹𝐵) = 𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)
7926, 50, 783eqtr4d 2654 1 (𝜑 → ((curry 𝐹𝐴)‘𝐵) = (𝐴𝐹𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 383   = wceq 1475  wcel 1977  wne 2780  wral 2896  csb 3499  c0 3874  cmpt 4643  cfv 5804  (class class class)co 6549  cmpt2 6551  curry ccur 7278
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-8 1979  ax-9 1986  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590  ax-rep 4699  ax-sep 4709  ax-nul 4717  ax-pow 4769  ax-pr 4833  ax-un 6847
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3an 1033  df-tru 1478  df-fal 1481  df-ex 1696  df-nf 1701  df-sb 1868  df-eu 2462  df-mo 2463  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ne 2782  df-ral 2901  df-rex 2902  df-reu 2903  df-rab 2905  df-v 3175  df-sbc 3403  df-csb 3500  df-dif 3543  df-un 3545  df-in 3547  df-ss 3554  df-nul 3875  df-if 4037  df-sn 4126  df-pr 4128  df-op 4132  df-uni 4373  df-iun 4457  df-br 4584  df-opab 4644  df-mpt 4645  df-id 4953  df-xp 5044  df-rel 5045  df-cnv 5046  df-co 5047  df-dm 5048  df-rn 5049  df-res 5050  df-ima 5051  df-iota 5768  df-fun 5806  df-fn 5807  df-f 5808  df-f1 5809  df-fo 5810  df-f1o 5811  df-fv 5812  df-ov 6552  df-oprab 6553  df-mpt2 6554  df-1st 7059  df-2nd 7060  df-cur 7280
This theorem is referenced by:  pmatcollpw3lem  20407  logbfval  24328
  Copyright terms: Public domain W3C validator