Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
Mirrors > Home > MPE Home > Th. List > fnpr2g | Structured version Visualization version GIF version |
Description: A function whose domain has at most two elements can be represented as a set of at most two ordered pairs. (Contributed by Thierry Arnoux, 12-Jul-2020.) |
Ref | Expression |
---|---|
fnpr2g | ⊢ ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊) → (𝐹 Fn {𝐴, 𝐵} ↔ 𝐹 = {〈𝐴, (𝐹‘𝐴)〉, 〈𝐵, (𝐹‘𝐵)〉})) |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | preq1 4649 | . . . 4 ⊢ (𝑎 = 𝐴 → {𝑎, 𝑏} = {𝐴, 𝑏}) | |
2 | 1 | fneq2d 6473 | . . 3 ⊢ (𝑎 = 𝐴 → (𝐹 Fn {𝑎, 𝑏} ↔ 𝐹 Fn {𝐴, 𝑏})) |
3 | id 22 | . . . . . 6 ⊢ (𝑎 = 𝐴 → 𝑎 = 𝐴) | |
4 | fveq2 6717 | . . . . . 6 ⊢ (𝑎 = 𝐴 → (𝐹‘𝑎) = (𝐹‘𝐴)) | |
5 | 3, 4 | opeq12d 4792 | . . . . 5 ⊢ (𝑎 = 𝐴 → 〈𝑎, (𝐹‘𝑎)〉 = 〈𝐴, (𝐹‘𝐴)〉) |
6 | 5 | preq1d 4655 | . . . 4 ⊢ (𝑎 = 𝐴 → {〈𝑎, (𝐹‘𝑎)〉, 〈𝑏, (𝐹‘𝑏)〉} = {〈𝐴, (𝐹‘𝐴)〉, 〈𝑏, (𝐹‘𝑏)〉}) |
7 | 6 | eqeq2d 2748 | . . 3 ⊢ (𝑎 = 𝐴 → (𝐹 = {〈𝑎, (𝐹‘𝑎)〉, 〈𝑏, (𝐹‘𝑏)〉} ↔ 𝐹 = {〈𝐴, (𝐹‘𝐴)〉, 〈𝑏, (𝐹‘𝑏)〉})) |
8 | 2, 7 | bibi12d 349 | . 2 ⊢ (𝑎 = 𝐴 → ((𝐹 Fn {𝑎, 𝑏} ↔ 𝐹 = {〈𝑎, (𝐹‘𝑎)〉, 〈𝑏, (𝐹‘𝑏)〉}) ↔ (𝐹 Fn {𝐴, 𝑏} ↔ 𝐹 = {〈𝐴, (𝐹‘𝐴)〉, 〈𝑏, (𝐹‘𝑏)〉}))) |
9 | preq2 4650 | . . . 4 ⊢ (𝑏 = 𝐵 → {𝐴, 𝑏} = {𝐴, 𝐵}) | |
10 | 9 | fneq2d 6473 | . . 3 ⊢ (𝑏 = 𝐵 → (𝐹 Fn {𝐴, 𝑏} ↔ 𝐹 Fn {𝐴, 𝐵})) |
11 | id 22 | . . . . . 6 ⊢ (𝑏 = 𝐵 → 𝑏 = 𝐵) | |
12 | fveq2 6717 | . . . . . 6 ⊢ (𝑏 = 𝐵 → (𝐹‘𝑏) = (𝐹‘𝐵)) | |
13 | 11, 12 | opeq12d 4792 | . . . . 5 ⊢ (𝑏 = 𝐵 → 〈𝑏, (𝐹‘𝑏)〉 = 〈𝐵, (𝐹‘𝐵)〉) |
14 | 13 | preq2d 4656 | . . . 4 ⊢ (𝑏 = 𝐵 → {〈𝐴, (𝐹‘𝐴)〉, 〈𝑏, (𝐹‘𝑏)〉} = {〈𝐴, (𝐹‘𝐴)〉, 〈𝐵, (𝐹‘𝐵)〉}) |
15 | 14 | eqeq2d 2748 | . . 3 ⊢ (𝑏 = 𝐵 → (𝐹 = {〈𝐴, (𝐹‘𝐴)〉, 〈𝑏, (𝐹‘𝑏)〉} ↔ 𝐹 = {〈𝐴, (𝐹‘𝐴)〉, 〈𝐵, (𝐹‘𝐵)〉})) |
16 | 10, 15 | bibi12d 349 | . 2 ⊢ (𝑏 = 𝐵 → ((𝐹 Fn {𝐴, 𝑏} ↔ 𝐹 = {〈𝐴, (𝐹‘𝐴)〉, 〈𝑏, (𝐹‘𝑏)〉}) ↔ (𝐹 Fn {𝐴, 𝐵} ↔ 𝐹 = {〈𝐴, (𝐹‘𝐴)〉, 〈𝐵, (𝐹‘𝐵)〉}))) |
17 | vex 3412 | . . 3 ⊢ 𝑎 ∈ V | |
18 | vex 3412 | . . 3 ⊢ 𝑏 ∈ V | |
19 | 17, 18 | fnprb 7024 | . 2 ⊢ (𝐹 Fn {𝑎, 𝑏} ↔ 𝐹 = {〈𝑎, (𝐹‘𝑎)〉, 〈𝑏, (𝐹‘𝑏)〉}) |
20 | 8, 16, 19 | vtocl2g 3486 | 1 ⊢ ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊) → (𝐹 Fn {𝐴, 𝐵} ↔ 𝐹 = {〈𝐴, (𝐹‘𝐴)〉, 〈𝐵, (𝐹‘𝐵)〉})) |
Colors of variables: wff setvar class |
Syntax hints: → wi 4 ↔ wb 209 ∧ wa 399 = wceq 1543 ∈ wcel 2110 {cpr 4543 〈cop 4547 Fn wfn 6375 ‘cfv 6380 |
This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1803 ax-4 1817 ax-5 1918 ax-6 1976 ax-7 2016 ax-8 2112 ax-9 2120 ax-10 2141 ax-11 2158 ax-12 2175 ax-ext 2708 ax-sep 5192 ax-nul 5199 ax-pr 5322 |
This theorem depends on definitions: df-bi 210 df-an 400 df-or 848 df-3an 1091 df-tru 1546 df-fal 1556 df-ex 1788 df-nf 1792 df-sb 2071 df-mo 2539 df-eu 2568 df-clab 2715 df-cleq 2729 df-clel 2816 df-nfc 2886 df-ne 2941 df-ral 3066 df-rex 3067 df-reu 3068 df-rab 3070 df-v 3410 df-sbc 3695 df-csb 3812 df-dif 3869 df-un 3871 df-in 3873 df-ss 3883 df-nul 4238 df-if 4440 df-sn 4542 df-pr 4544 df-op 4548 df-uni 4820 df-br 5054 df-opab 5116 df-mpt 5136 df-id 5455 df-xp 5557 df-rel 5558 df-cnv 5559 df-co 5560 df-dm 5561 df-rn 5562 df-res 5563 df-ima 5564 df-iota 6338 df-fun 6382 df-fn 6383 df-f 6384 df-f1 6385 df-fo 6386 df-f1o 6387 df-fv 6388 |
This theorem is referenced by: fpr2g 7027 |
Copyright terms: Public domain | W3C validator |