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

Theorem fvmpt2curryd 7397
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 3994 . . . . 5 𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝐴 / 𝑎𝐵 / 𝑏𝑏 / 𝑦𝑎 / 𝑥𝐶
3 csbco 3543 . . . . . 6 𝐵 / 𝑏𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝐵 / 𝑦𝑎 / 𝑥𝐶
43csbeq2i 3993 . . . . 5 𝐴 / 𝑎𝐵 / 𝑏𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝐴 / 𝑎𝐵 / 𝑦𝑎 / 𝑥𝐶
5 csbcom 3994 . . . . . 6 𝐴 / 𝑎𝐵 / 𝑦𝑎 / 𝑥𝐶 = 𝐵 / 𝑦𝐴 / 𝑎𝑎 / 𝑥𝐶
6 csbco 3543 . . . . . . 7 𝐴 / 𝑎𝑎 / 𝑥𝐶 = 𝐴 / 𝑥𝐶
76csbeq2i 3993 . . . . . 6 𝐵 / 𝑦𝐴 / 𝑎𝑎 / 𝑥𝐶 = 𝐵 / 𝑦𝐴 / 𝑥𝐶
85, 7eqtri 2644 . . . . 5 𝐴 / 𝑎𝐵 / 𝑦𝑎 / 𝑥𝐶 = 𝐵 / 𝑦𝐴 / 𝑥𝐶
92, 4, 83eqtri 2648 . . . 4 𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝐵 / 𝑦𝐴 / 𝑥𝐶
10 fvmpt2curryd.a . . . . 5 (𝜑𝐴𝑋)
11 fvmpt2curryd.c . . . . 5 (𝜑 → ∀𝑥𝑋𝑦𝑌 𝐶𝑉)
12 nfcsb1v 3549 . . . . . . . 8 𝑥𝐴 / 𝑥𝐶
1312nfel1 2779 . . . . . . 7 𝑥𝐴 / 𝑥𝐶𝑉
14 nfcsb1v 3549 . . . . . . . 8 𝑦𝐵 / 𝑦𝐴 / 𝑥𝐶
1514nfel1 2779 . . . . . . 7 𝑦𝐵 / 𝑦𝐴 / 𝑥𝐶𝑉
16 csbeq1a 3542 . . . . . . . 8 (𝑥 = 𝐴𝐶 = 𝐴 / 𝑥𝐶)
1716eleq1d 2686 . . . . . . 7 (𝑥 = 𝐴 → (𝐶𝑉𝐴 / 𝑥𝐶𝑉))
18 csbeq1a 3542 . . . . . . . 8 (𝑦 = 𝐵𝐴 / 𝑥𝐶 = 𝐵 / 𝑦𝐴 / 𝑥𝐶)
1918eleq1d 2686 . . . . . . 7 (𝑦 = 𝐵 → (𝐴 / 𝑥𝐶𝑉𝐵 / 𝑦𝐴 / 𝑥𝐶𝑉))
2013, 15, 17, 19rspc2 3320 . . . . . 6 ((𝐴𝑋𝐵𝑌) → (∀𝑥𝑋𝑦𝑌 𝐶𝑉𝐵 / 𝑦𝐴 / 𝑥𝐶𝑉))
2120imp 445 . . . . 5 (((𝐴𝑋𝐵𝑌) ∧ ∀𝑥𝑋𝑦𝑌 𝐶𝑉) → 𝐵 / 𝑦𝐴 / 𝑥𝐶𝑉)
2210, 1, 11, 21syl21anc 1325 . . . 4 (𝜑𝐵 / 𝑦𝐴 / 𝑥𝐶𝑉)
239, 22syl5eqel 2705 . . 3 (𝜑𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶𝑉)
24 eqid 2622 . . . 4 (𝑏𝑌𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶) = (𝑏𝑌𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)
2524fvmpts 6285 . . 3 ((𝐵𝑌𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶𝑉) → ((𝑏𝑌𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)‘𝐵) = 𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)
261, 23, 25syl2anc 693 . 2 (𝜑 → ((𝑏𝑌𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)‘𝐵) = 𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)
27 fvmpt2curryd.f . . . . 5 𝐹 = (𝑥𝑋, 𝑦𝑌𝐶)
28 nfcv 2764 . . . . . 6 𝑎𝐶
29 nfcv 2764 . . . . . 6 𝑏𝐶
30 nfcv 2764 . . . . . . 7 𝑥𝑏
31 nfcsb1v 3549 . . . . . . 7 𝑥𝑎 / 𝑥𝐶
3230, 31nfcsb 3551 . . . . . 6 𝑥𝑏 / 𝑦𝑎 / 𝑥𝐶
33 nfcsb1v 3549 . . . . . 6 𝑦𝑏 / 𝑦𝑎 / 𝑥𝐶
34 csbeq1a 3542 . . . . . . 7 (𝑥 = 𝑎𝐶 = 𝑎 / 𝑥𝐶)
35 csbeq1a 3542 . . . . . . 7 (𝑦 = 𝑏𝑎 / 𝑥𝐶 = 𝑏 / 𝑦𝑎 / 𝑥𝐶)
3634, 35sylan9eq 2676 . . . . . 6 ((𝑥 = 𝑎𝑦 = 𝑏) → 𝐶 = 𝑏 / 𝑦𝑎 / 𝑥𝐶)
3728, 29, 32, 33, 36cbvmpt2 6734 . . . . 5 (𝑥𝑋, 𝑦𝑌𝐶) = (𝑎𝑋, 𝑏𝑌𝑏 / 𝑦𝑎 / 𝑥𝐶)
3827, 37eqtri 2644 . . . 4 𝐹 = (𝑎𝑋, 𝑏𝑌𝑏 / 𝑦𝑎 / 𝑥𝐶)
3931nfel1 2779 . . . . . . 7 𝑥𝑎 / 𝑥𝐶𝑉
4033nfel1 2779 . . . . . . 7 𝑦𝑏 / 𝑦𝑎 / 𝑥𝐶𝑉
4134eleq1d 2686 . . . . . . 7 (𝑥 = 𝑎 → (𝐶𝑉𝑎 / 𝑥𝐶𝑉))
4235eleq1d 2686 . . . . . . 7 (𝑦 = 𝑏 → (𝑎 / 𝑥𝐶𝑉𝑏 / 𝑦𝑎 / 𝑥𝐶𝑉))
4339, 40, 41, 42rspc2 3320 . . . . . 6 ((𝑎𝑋𝑏𝑌) → (∀𝑥𝑋𝑦𝑌 𝐶𝑉𝑏 / 𝑦𝑎 / 𝑥𝐶𝑉))
4411, 43mpan9 486 . . . . 5 ((𝜑 ∧ (𝑎𝑋𝑏𝑌)) → 𝑏 / 𝑦𝑎 / 𝑥𝐶𝑉)
4544ralrimivva 2971 . . . 4 (𝜑 → ∀𝑎𝑋𝑏𝑌 𝑏 / 𝑦𝑎 / 𝑥𝐶𝑉)
46 ne0i 3921 . . . . 5 (𝐵𝑌𝑌 ≠ ∅)
471, 46syl 17 . . . 4 (𝜑𝑌 ≠ ∅)
48 fvmpt2curryd.y . . . 4 (𝜑𝑌𝑊)
4938, 45, 47, 48, 10mpt2curryvald 7396 . . 3 (𝜑 → (curry 𝐹𝐴) = (𝑏𝑌𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶))
5049fveq1d 6193 . 2 (𝜑 → ((curry 𝐹𝐴)‘𝐵) = ((𝑏𝑌𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)‘𝐵))
5127a1i 11 . . 3 (𝜑𝐹 = (𝑥𝑋, 𝑦𝑌𝐶))
52 csbco 3543 . . . . . . . 8 𝑦 / 𝑏𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝑦 / 𝑦𝑎 / 𝑥𝐶
53 csbid 3541 . . . . . . . 8 𝑦 / 𝑦𝑎 / 𝑥𝐶 = 𝑎 / 𝑥𝐶
5452, 53eqtr2i 2645 . . . . . . 7 𝑎 / 𝑥𝐶 = 𝑦 / 𝑏𝑏 / 𝑦𝑎 / 𝑥𝐶
5554a1i 11 . . . . . 6 (𝜑𝑎 / 𝑥𝐶 = 𝑦 / 𝑏𝑏 / 𝑦𝑎 / 𝑥𝐶)
5655csbeq2dv 3992 . . . . 5 (𝜑𝑥 / 𝑎𝑎 / 𝑥𝐶 = 𝑥 / 𝑎𝑦 / 𝑏𝑏 / 𝑦𝑎 / 𝑥𝐶)
57 csbco 3543 . . . . . 6 𝑥 / 𝑎𝑎 / 𝑥𝐶 = 𝑥 / 𝑥𝐶
58 csbid 3541 . . . . . 6 𝑥 / 𝑥𝐶 = 𝐶
5957, 58eqtri 2644 . . . . 5 𝑥 / 𝑎𝑎 / 𝑥𝐶 = 𝐶
60 csbcom 3994 . . . . 5 𝑥 / 𝑎𝑦 / 𝑏𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝑦 / 𝑏𝑥 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶
6156, 59, 603eqtr3g 2679 . . . 4 (𝜑𝐶 = 𝑦 / 𝑏𝑥 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)
62 csbeq1 3536 . . . . . . 7 (𝑥 = 𝐴𝑥 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)
6362adantr 481 . . . . . 6 ((𝑥 = 𝐴𝑦 = 𝐵) → 𝑥 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)
6463csbeq2dv 3992 . . . . 5 ((𝑥 = 𝐴𝑦 = 𝐵) → 𝑦 / 𝑏𝑥 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝑦 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)
65 csbeq1 3536 . . . . . 6 (𝑦 = 𝐵𝑦 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)
6665adantl 482 . . . . 5 ((𝑥 = 𝐴𝑦 = 𝐵) → 𝑦 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)
6764, 66eqtrd 2656 . . . 4 ((𝑥 = 𝐴𝑦 = 𝐵) → 𝑦 / 𝑏𝑥 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶 = 𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)
6861, 67sylan9eq 2676 . . 3 ((𝜑 ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → 𝐶 = 𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)
69 eqidd 2623 . . 3 ((𝜑𝑥 = 𝐴) → 𝑌 = 𝑌)
70 nfv 1843 . . 3 𝑥𝜑
71 nfv 1843 . . 3 𝑦𝜑
72 nfcv 2764 . . 3 𝑦𝐴
73 nfcv 2764 . . 3 𝑥𝐵
74 nfcv 2764 . . . . 5 𝑥𝐴
7574, 32nfcsb 3551 . . . 4 𝑥𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶
7673, 75nfcsb 3551 . . 3 𝑥𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶
779, 14nfcxfr 2762 . . 3 𝑦𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶
7851, 68, 69, 10, 1, 23, 70, 71, 72, 73, 76, 77ovmpt2dxf 6786 . 2 (𝜑 → (𝐴𝐹𝐵) = 𝐵 / 𝑏𝐴 / 𝑎𝑏 / 𝑦𝑎 / 𝑥𝐶)
7926, 50, 783eqtr4d 2666 1 (𝜑 → ((curry 𝐹𝐴)‘𝐵) = (𝐴𝐹𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 384   = wceq 1483  wcel 1990  wne 2794  wral 2912  csb 3533  c0 3915  cmpt 4729  cfv 5888  (class class class)co 6650  cmpt2 6652  curry ccur 7391
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-8 1992  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602  ax-rep 4771  ax-sep 4781  ax-nul 4789  ax-pow 4843  ax-pr 4906  ax-un 6949
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1039  df-tru 1486  df-fal 1489  df-ex 1705  df-nf 1710  df-sb 1881  df-eu 2474  df-mo 2475  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-ne 2795  df-ral 2917  df-rex 2918  df-reu 2919  df-rab 2921  df-v 3202  df-sbc 3436  df-csb 3534  df-dif 3577  df-un 3579  df-in 3581  df-ss 3588  df-nul 3916  df-if 4087  df-sn 4178  df-pr 4180  df-op 4184  df-uni 4437  df-iun 4522  df-br 4654  df-opab 4713  df-mpt 4730  df-id 5024  df-xp 5120  df-rel 5121  df-cnv 5122  df-co 5123  df-dm 5124  df-rn 5125  df-res 5126  df-ima 5127  df-iota 5851  df-fun 5890  df-fn 5891  df-f 5892  df-f1 5893  df-fo 5894  df-f1o 5895  df-fv 5896  df-ov 6653  df-oprab 6654  df-mpt2 6655  df-1st 7168  df-2nd 7169  df-cur 7393
This theorem is referenced by:  pmatcollpw3lem  20588  logbfval  24528
  Copyright terms: Public domain W3C validator