| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > curry2val | Structured version Visualization version GIF version | ||
| Description: The value of a curried function with a constant second argument. (Contributed by NM, 16-Dec-2008.) |
| Ref | Expression |
|---|---|
| curry2.1 | ⊢ 𝐺 = (𝐹 ∘ ◡(1st ↾ (V × {𝐶}))) |
| Ref | Expression |
|---|---|
| curry2val | ⊢ ((𝐹 Fn (𝐴 × 𝐵) ∧ 𝐶 ∈ 𝐵) → (𝐺‘𝐷) = (𝐷𝐹𝐶)) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | curry2.1 | . . . 4 ⊢ 𝐺 = (𝐹 ∘ ◡(1st ↾ (V × {𝐶}))) | |
| 2 | 1 | curry2 8111 | . . 3 ⊢ ((𝐹 Fn (𝐴 × 𝐵) ∧ 𝐶 ∈ 𝐵) → 𝐺 = (𝑥 ∈ 𝐴 ↦ (𝑥𝐹𝐶))) |
| 3 | 2 | fveq1d 6890 | . 2 ⊢ ((𝐹 Fn (𝐴 × 𝐵) ∧ 𝐶 ∈ 𝐵) → (𝐺‘𝐷) = ((𝑥 ∈ 𝐴 ↦ (𝑥𝐹𝐶))‘𝐷)) |
| 4 | eqid 2766 | . . . . . . . 8 ⊢ (𝑥 ∈ 𝐴 ↦ (𝑥𝐹𝐶)) = (𝑥 ∈ 𝐴 ↦ (𝑥𝐹𝐶)) | |
| 5 | 4 | fvmptndm 7028 | . . . . . . 7 ⊢ (¬ 𝐷 ∈ 𝐴 → ((𝑥 ∈ 𝐴 ↦ (𝑥𝐹𝐶))‘𝐷) = ∅) |
| 6 | 5 | adantl 487 | . . . . . 6 ⊢ ((𝐹 Fn (𝐴 × 𝐵) ∧ ¬ 𝐷 ∈ 𝐴) → ((𝑥 ∈ 𝐴 ↦ (𝑥𝐹𝐶))‘𝐷) = ∅) |
| 7 | fndm 6645 | . . . . . . 7 ⊢ (𝐹 Fn (𝐴 × 𝐵) → dom 𝐹 = (𝐴 × 𝐵)) | |
| 8 | simpl 488 | . . . . . . . 8 ⊢ ((𝐷 ∈ 𝐴 ∧ 𝐶 ∈ 𝐵) → 𝐷 ∈ 𝐴) | |
| 9 | 8 | con3i 155 | . . . . . . 7 ⊢ (¬ 𝐷 ∈ 𝐴 → ¬ (𝐷 ∈ 𝐴 ∧ 𝐶 ∈ 𝐵)) |
| 10 | ndmovg 7606 | . . . . . . 7 ⊢ ((dom 𝐹 = (𝐴 × 𝐵) ∧ ¬ (𝐷 ∈ 𝐴 ∧ 𝐶 ∈ 𝐵)) → (𝐷𝐹𝐶) = ∅) | |
| 11 | 7, 9, 10 | syl2an 608 | . . . . . 6 ⊢ ((𝐹 Fn (𝐴 × 𝐵) ∧ ¬ 𝐷 ∈ 𝐴) → (𝐷𝐹𝐶) = ∅) |
| 12 | 6, 11 | eqtr4d 2804 | . . . . 5 ⊢ ((𝐹 Fn (𝐴 × 𝐵) ∧ ¬ 𝐷 ∈ 𝐴) → ((𝑥 ∈ 𝐴 ↦ (𝑥𝐹𝐶))‘𝐷) = (𝐷𝐹𝐶)) |
| 13 | 12 | ex 418 | . . . 4 ⊢ (𝐹 Fn (𝐴 × 𝐵) → (¬ 𝐷 ∈ 𝐴 → ((𝑥 ∈ 𝐴 ↦ (𝑥𝐹𝐶))‘𝐷) = (𝐷𝐹𝐶))) |
| 14 | 13 | adantr 486 | . . 3 ⊢ ((𝐹 Fn (𝐴 × 𝐵) ∧ 𝐶 ∈ 𝐵) → (¬ 𝐷 ∈ 𝐴 → ((𝑥 ∈ 𝐴 ↦ (𝑥𝐹𝐶))‘𝐷) = (𝐷𝐹𝐶))) |
| 15 | oveq1 7430 | . . . 4 ⊢ (𝑥 = 𝐷 → (𝑥𝐹𝐶) = (𝐷𝐹𝐶)) | |
| 16 | ovex 7456 | . . . 4 ⊢ (𝐷𝐹𝐶) ∈ V | |
| 17 | 15, 4, 16 | fvmpt 6996 | . . 3 ⊢ (𝐷 ∈ 𝐴 → ((𝑥 ∈ 𝐴 ↦ (𝑥𝐹𝐶))‘𝐷) = (𝐷𝐹𝐶)) |
| 18 | 14, 17 | pm2.61d2 183 | . 2 ⊢ ((𝐹 Fn (𝐴 × 𝐵) ∧ 𝐶 ∈ 𝐵) → ((𝑥 ∈ 𝐴 ↦ (𝑥𝐹𝐶))‘𝐷) = (𝐷𝐹𝐶)) |
| 19 | 3, 18 | eqtrd 2801 | 1 ⊢ ((𝐹 Fn (𝐴 × 𝐵) ∧ 𝐶 ∈ 𝐵) → (𝐺‘𝐷) = (𝐷𝐹𝐶)) |
| Colors of variables: wff setvar class |
| This proof depends on syntax axioms: ¬ wn 3 → wi 4 ∧ wa 401 = wceq 1570 ∈ wcel 2146 Vcvv 3458 ∅c0 4289 {csn 4594 ↦ cmpt 5197 × cxp 5664 ◡ccnv 5665 dom cdm 5666 ↾ cres 5668 ∘ ccom 5670 Fn wfn 6538 ‘cfv 6543 (class class class)co 7423 1st c1st 7993 |
| This proof depends on axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1828 ax-4 1842 ax-5 1943 ax-6 2000 ax-7 2041 ax-8 2148 ax-9 2156 ax-10 2179 ax-11 2195 ax-12 2216 ax-ext 2738 ax-sep 5262 ax-nul 5274 ax-pr 5409 ax-un 7745 |
| This proof depends on definitions: df-bi 210 df-an 402 df-or 862 df-3an 1105 df-tru 1573 df-fal 1583 df-ex 1813 df-nf 1817 df-sb 2100 df-mo 2570 df-eu 2600 df-clab 2745 df-cleq 2758 df-clel 2841 df-nfc 2915 df-ne 2962 df-ral 3083 df-rex 3093 df-rab 3420 df-v 3460 df-sbc 3748 df-csb 3857 df-dif 3911 df-un 3913 df-in 3915 df-ss 3925 df-nul 4290 df-if 4493 df-sn 4595 df-pr 4597 df-op 4601 df-uni 4878 df-iun 4963 df-br 5115 df-opab 5179 df-mpt 5198 df-id 5561 df-xp 5672 df-rel 5673 df-cnv 5674 df-co 5675 df-dm 5676 df-rn 5677 df-res 5678 df-ima 5679 df-iota 6499 df-fun 6545 df-fn 6546 df-f 6547 df-f1 6548 df-fo 6549 df-f1o 6550 df-fv 6551 df-ov 7426 df-1st 7995 df-2nd 7996 |
| This theorem is used by: curry2ima 33091 |
| Copyright terms: Public domain | W3C validator |