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

Theorem curry2val 7793
Description: The value of a curried function with a constant second argument. (Contributed by NM, 16-Dec-2008.)
Hypothesis
Ref Expression
curry2.1 𝐺 = (𝐹(1st ↾ (V × {𝐶})))
Assertion
Ref Expression
curry2val ((𝐹 Fn (𝐴 × 𝐵) ∧ 𝐶𝐵) → (𝐺𝐷) = (𝐷𝐹𝐶))

Proof of Theorem curry2val
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 curry2.1 . . . 4 𝐺 = (𝐹(1st ↾ (V × {𝐶})))
21curry2 7791 . . 3 ((𝐹 Fn (𝐴 × 𝐵) ∧ 𝐶𝐵) → 𝐺 = (𝑥𝐴 ↦ (𝑥𝐹𝐶)))
32fveq1d 6665 . 2 ((𝐹 Fn (𝐴 × 𝐵) ∧ 𝐶𝐵) → (𝐺𝐷) = ((𝑥𝐴 ↦ (𝑥𝐹𝐶))‘𝐷))
4 eqid 2818 . . . . . . . 8 (𝑥𝐴 ↦ (𝑥𝐹𝐶)) = (𝑥𝐴 ↦ (𝑥𝐹𝐶))
54fvmptndm 6790 . . . . . . 7 𝐷𝐴 → ((𝑥𝐴 ↦ (𝑥𝐹𝐶))‘𝐷) = ∅)
65adantl 482 . . . . . 6 ((𝐹 Fn (𝐴 × 𝐵) ∧ ¬ 𝐷𝐴) → ((𝑥𝐴 ↦ (𝑥𝐹𝐶))‘𝐷) = ∅)
7 fndm 6448 . . . . . . 7 (𝐹 Fn (𝐴 × 𝐵) → dom 𝐹 = (𝐴 × 𝐵))
8 simpl 483 . . . . . . . 8 ((𝐷𝐴𝐶𝐵) → 𝐷𝐴)
98con3i 157 . . . . . . 7 𝐷𝐴 → ¬ (𝐷𝐴𝐶𝐵))
10 ndmovg 7320 . . . . . . 7 ((dom 𝐹 = (𝐴 × 𝐵) ∧ ¬ (𝐷𝐴𝐶𝐵)) → (𝐷𝐹𝐶) = ∅)
117, 9, 10syl2an 595 . . . . . 6 ((𝐹 Fn (𝐴 × 𝐵) ∧ ¬ 𝐷𝐴) → (𝐷𝐹𝐶) = ∅)
126, 11eqtr4d 2856 . . . . 5 ((𝐹 Fn (𝐴 × 𝐵) ∧ ¬ 𝐷𝐴) → ((𝑥𝐴 ↦ (𝑥𝐹𝐶))‘𝐷) = (𝐷𝐹𝐶))
1312ex 413 . . . 4 (𝐹 Fn (𝐴 × 𝐵) → (¬ 𝐷𝐴 → ((𝑥𝐴 ↦ (𝑥𝐹𝐶))‘𝐷) = (𝐷𝐹𝐶)))
1413adantr 481 . . 3 ((𝐹 Fn (𝐴 × 𝐵) ∧ 𝐶𝐵) → (¬ 𝐷𝐴 → ((𝑥𝐴 ↦ (𝑥𝐹𝐶))‘𝐷) = (𝐷𝐹𝐶)))
15 oveq1 7152 . . . 4 (𝑥 = 𝐷 → (𝑥𝐹𝐶) = (𝐷𝐹𝐶))
16 ovex 7178 . . . 4 (𝐷𝐹𝐶) ∈ V
1715, 4, 16fvmpt 6761 . . 3 (𝐷𝐴 → ((𝑥𝐴 ↦ (𝑥𝐹𝐶))‘𝐷) = (𝐷𝐹𝐶))
1814, 17pm2.61d2 182 . 2 ((𝐹 Fn (𝐴 × 𝐵) ∧ 𝐶𝐵) → ((𝑥𝐴 ↦ (𝑥𝐹𝐶))‘𝐷) = (𝐷𝐹𝐶))
193, 18eqtrd 2853 1 ((𝐹 Fn (𝐴 × 𝐵) ∧ 𝐶𝐵) → (𝐺𝐷) = (𝐷𝐹𝐶))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 396   = wceq 1528  wcel 2105  Vcvv 3492  c0 4288  {csn 4557  cmpt 5137   × cxp 5546  ccnv 5547  dom cdm 5548  cres 5550  ccom 5552   Fn wfn 6343  cfv 6348  (class class class)co 7145  1st c1st 7676
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1787  ax-4 1801  ax-5 1902  ax-6 1961  ax-7 2006  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2151  ax-12 2167  ax-ext 2790  ax-sep 5194  ax-nul 5201  ax-pow 5257  ax-pr 5320  ax-un 7450
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 842  df-3an 1081  df-tru 1531  df-ex 1772  df-nf 1776  df-sb 2061  df-mo 2615  df-eu 2647  df-clab 2797  df-cleq 2811  df-clel 2890  df-nfc 2960  df-ne 3014  df-ral 3140  df-rex 3141  df-rab 3144  df-v 3494  df-sbc 3770  df-csb 3881  df-dif 3936  df-un 3938  df-in 3940  df-ss 3949  df-nul 4289  df-if 4464  df-sn 4558  df-pr 4560  df-op 4564  df-uni 4831  df-iun 4912  df-br 5058  df-opab 5120  df-mpt 5138  df-id 5453  df-xp 5554  df-rel 5555  df-cnv 5556  df-co 5557  df-dm 5558  df-rn 5559  df-res 5560  df-ima 5561  df-iota 6307  df-fun 6350  df-fn 6351  df-f 6352  df-f1 6353  df-fo 6354  df-f1o 6355  df-fv 6356  df-ov 7148  df-1st 7678  df-2nd 7679
This theorem is referenced by:  curry2ima  30370
  Copyright terms: Public domain W3C validator