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

Theorem eufnfv 6491
Description: A function is uniquely determined by its values. (Contributed by NM, 31-Aug-2011.)
Hypotheses
Ref Expression
eufnfv.1 𝐴 ∈ V
eufnfv.2 𝐵 ∈ V
Assertion
Ref Expression
eufnfv ∃!𝑓(𝑓 Fn 𝐴 ∧ ∀𝑥𝐴 (𝑓𝑥) = 𝐵)
Distinct variable groups:   𝑥,𝑓,𝐴   𝐵,𝑓
Allowed substitution hint:   𝐵(𝑥)

Proof of Theorem eufnfv
Dummy variable 𝑧 is distinct from all other variables.
StepHypRef Expression
1 eufnfv.1 . . . . 5 𝐴 ∈ V
21mptex 6486 . . . 4 (𝑥𝐴𝐵) ∈ V
3 eqeq2 2633 . . . . . 6 (𝑧 = (𝑥𝐴𝐵) → (𝑓 = 𝑧𝑓 = (𝑥𝐴𝐵)))
43bibi2d 332 . . . . 5 (𝑧 = (𝑥𝐴𝐵) → (((𝑓 Fn 𝐴 ∧ ∀𝑥𝐴 (𝑓𝑥) = 𝐵) ↔ 𝑓 = 𝑧) ↔ ((𝑓 Fn 𝐴 ∧ ∀𝑥𝐴 (𝑓𝑥) = 𝐵) ↔ 𝑓 = (𝑥𝐴𝐵))))
54albidv 1849 . . . 4 (𝑧 = (𝑥𝐴𝐵) → (∀𝑓((𝑓 Fn 𝐴 ∧ ∀𝑥𝐴 (𝑓𝑥) = 𝐵) ↔ 𝑓 = 𝑧) ↔ ∀𝑓((𝑓 Fn 𝐴 ∧ ∀𝑥𝐴 (𝑓𝑥) = 𝐵) ↔ 𝑓 = (𝑥𝐴𝐵))))
62, 5spcev 3300 . . 3 (∀𝑓((𝑓 Fn 𝐴 ∧ ∀𝑥𝐴 (𝑓𝑥) = 𝐵) ↔ 𝑓 = (𝑥𝐴𝐵)) → ∃𝑧𝑓((𝑓 Fn 𝐴 ∧ ∀𝑥𝐴 (𝑓𝑥) = 𝐵) ↔ 𝑓 = 𝑧))
7 eufnfv.2 . . . . . . 7 𝐵 ∈ V
8 eqid 2622 . . . . . . 7 (𝑥𝐴𝐵) = (𝑥𝐴𝐵)
97, 8fnmpti 6022 . . . . . 6 (𝑥𝐴𝐵) Fn 𝐴
10 fneq1 5979 . . . . . 6 (𝑓 = (𝑥𝐴𝐵) → (𝑓 Fn 𝐴 ↔ (𝑥𝐴𝐵) Fn 𝐴))
119, 10mpbiri 248 . . . . 5 (𝑓 = (𝑥𝐴𝐵) → 𝑓 Fn 𝐴)
1211pm4.71ri 665 . . . 4 (𝑓 = (𝑥𝐴𝐵) ↔ (𝑓 Fn 𝐴𝑓 = (𝑥𝐴𝐵)))
13 dffn5 6241 . . . . . . 7 (𝑓 Fn 𝐴𝑓 = (𝑥𝐴 ↦ (𝑓𝑥)))
14 eqeq1 2626 . . . . . . 7 (𝑓 = (𝑥𝐴 ↦ (𝑓𝑥)) → (𝑓 = (𝑥𝐴𝐵) ↔ (𝑥𝐴 ↦ (𝑓𝑥)) = (𝑥𝐴𝐵)))
1513, 14sylbi 207 . . . . . 6 (𝑓 Fn 𝐴 → (𝑓 = (𝑥𝐴𝐵) ↔ (𝑥𝐴 ↦ (𝑓𝑥)) = (𝑥𝐴𝐵)))
16 fvex 6201 . . . . . . . 8 (𝑓𝑥) ∈ V
1716rgenw 2924 . . . . . . 7 𝑥𝐴 (𝑓𝑥) ∈ V
18 mpteqb 6299 . . . . . . 7 (∀𝑥𝐴 (𝑓𝑥) ∈ V → ((𝑥𝐴 ↦ (𝑓𝑥)) = (𝑥𝐴𝐵) ↔ ∀𝑥𝐴 (𝑓𝑥) = 𝐵))
1917, 18ax-mp 5 . . . . . 6 ((𝑥𝐴 ↦ (𝑓𝑥)) = (𝑥𝐴𝐵) ↔ ∀𝑥𝐴 (𝑓𝑥) = 𝐵)
2015, 19syl6bb 276 . . . . 5 (𝑓 Fn 𝐴 → (𝑓 = (𝑥𝐴𝐵) ↔ ∀𝑥𝐴 (𝑓𝑥) = 𝐵))
2120pm5.32i 669 . . . 4 ((𝑓 Fn 𝐴𝑓 = (𝑥𝐴𝐵)) ↔ (𝑓 Fn 𝐴 ∧ ∀𝑥𝐴 (𝑓𝑥) = 𝐵))
2212, 21bitr2i 265 . . 3 ((𝑓 Fn 𝐴 ∧ ∀𝑥𝐴 (𝑓𝑥) = 𝐵) ↔ 𝑓 = (𝑥𝐴𝐵))
236, 22mpg 1724 . 2 𝑧𝑓((𝑓 Fn 𝐴 ∧ ∀𝑥𝐴 (𝑓𝑥) = 𝐵) ↔ 𝑓 = 𝑧)
24 df-eu 2474 . 2 (∃!𝑓(𝑓 Fn 𝐴 ∧ ∀𝑥𝐴 (𝑓𝑥) = 𝐵) ↔ ∃𝑧𝑓((𝑓 Fn 𝐴 ∧ ∀𝑥𝐴 (𝑓𝑥) = 𝐵) ↔ 𝑓 = 𝑧))
2523, 24mpbir 221 1 ∃!𝑓(𝑓 Fn 𝐴 ∧ ∀𝑥𝐴 (𝑓𝑥) = 𝐵)
Colors of variables: wff setvar class
Syntax hints:  wb 196  wa 384  wal 1481   = wceq 1483  wex 1704  wcel 1990  ∃!weu 2470  wral 2912  Vcvv 3200  cmpt 4729   Fn wfn 5883  cfv 5888
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
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1039  df-tru 1486  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
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator