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

Theorem mptfnf 6053
Description: The maps-to notation defines a function with domain. (Contributed by Scott Fenton, 21-Mar-2011.) (Revised by Thierry Arnoux, 10-May-2017.)
Hypothesis
Ref Expression
mptfnf.0 𝑥𝐴
Assertion
Ref Expression
mptfnf (∀𝑥𝐴 𝐵 ∈ V ↔ (𝑥𝐴𝐵) Fn 𝐴)

Proof of Theorem mptfnf
Dummy variable 𝑦 is distinct from all other variables.
StepHypRef Expression
1 eueq 3411 . . 3 (𝐵 ∈ V ↔ ∃!𝑦 𝑦 = 𝐵)
21ralbii 3009 . 2 (∀𝑥𝐴 𝐵 ∈ V ↔ ∀𝑥𝐴 ∃!𝑦 𝑦 = 𝐵)
3 r19.26 3093 . . 3 (∀𝑥𝐴 (∃𝑦 𝑦 = 𝐵 ∧ ∃*𝑦 𝑦 = 𝐵) ↔ (∀𝑥𝐴𝑦 𝑦 = 𝐵 ∧ ∀𝑥𝐴 ∃*𝑦 𝑦 = 𝐵))
4 eu5 2524 . . . 4 (∃!𝑦 𝑦 = 𝐵 ↔ (∃𝑦 𝑦 = 𝐵 ∧ ∃*𝑦 𝑦 = 𝐵))
54ralbii 3009 . . 3 (∀𝑥𝐴 ∃!𝑦 𝑦 = 𝐵 ↔ ∀𝑥𝐴 (∃𝑦 𝑦 = 𝐵 ∧ ∃*𝑦 𝑦 = 𝐵))
6 df-mpt 4763 . . . . . 6 (𝑥𝐴𝐵) = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)}
76fneq1i 6023 . . . . 5 ((𝑥𝐴𝐵) Fn 𝐴 ↔ {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} Fn 𝐴)
8 df-fn 5929 . . . . 5 ({⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} Fn 𝐴 ↔ (Fun {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} ∧ dom {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} = 𝐴))
97, 8bitri 264 . . . 4 ((𝑥𝐴𝐵) Fn 𝐴 ↔ (Fun {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} ∧ dom {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} = 𝐴))
10 moanimv 2560 . . . . . . 7 (∃*𝑦(𝑥𝐴𝑦 = 𝐵) ↔ (𝑥𝐴 → ∃*𝑦 𝑦 = 𝐵))
1110albii 1787 . . . . . 6 (∀𝑥∃*𝑦(𝑥𝐴𝑦 = 𝐵) ↔ ∀𝑥(𝑥𝐴 → ∃*𝑦 𝑦 = 𝐵))
12 funopab 5961 . . . . . 6 (Fun {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} ↔ ∀𝑥∃*𝑦(𝑥𝐴𝑦 = 𝐵))
13 df-ral 2946 . . . . . 6 (∀𝑥𝐴 ∃*𝑦 𝑦 = 𝐵 ↔ ∀𝑥(𝑥𝐴 → ∃*𝑦 𝑦 = 𝐵))
1411, 12, 133bitr4ri 293 . . . . 5 (∀𝑥𝐴 ∃*𝑦 𝑦 = 𝐵 ↔ Fun {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)})
15 eqcom 2658 . . . . . 6 ({𝑥 ∣ (𝑥𝐴 ∧ ∃𝑦 𝑦 = 𝐵)} = 𝐴𝐴 = {𝑥 ∣ (𝑥𝐴 ∧ ∃𝑦 𝑦 = 𝐵)})
16 dmopab 5367 . . . . . . . 8 dom {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} = {𝑥 ∣ ∃𝑦(𝑥𝐴𝑦 = 𝐵)}
17 19.42v 1921 . . . . . . . . 9 (∃𝑦(𝑥𝐴𝑦 = 𝐵) ↔ (𝑥𝐴 ∧ ∃𝑦 𝑦 = 𝐵))
1817abbii 2768 . . . . . . . 8 {𝑥 ∣ ∃𝑦(𝑥𝐴𝑦 = 𝐵)} = {𝑥 ∣ (𝑥𝐴 ∧ ∃𝑦 𝑦 = 𝐵)}
1916, 18eqtri 2673 . . . . . . 7 dom {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} = {𝑥 ∣ (𝑥𝐴 ∧ ∃𝑦 𝑦 = 𝐵)}
2019eqeq1i 2656 . . . . . 6 (dom {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} = 𝐴 ↔ {𝑥 ∣ (𝑥𝐴 ∧ ∃𝑦 𝑦 = 𝐵)} = 𝐴)
21 pm4.71 663 . . . . . . . 8 ((𝑥𝐴 → ∃𝑦 𝑦 = 𝐵) ↔ (𝑥𝐴 ↔ (𝑥𝐴 ∧ ∃𝑦 𝑦 = 𝐵)))
2221albii 1787 . . . . . . 7 (∀𝑥(𝑥𝐴 → ∃𝑦 𝑦 = 𝐵) ↔ ∀𝑥(𝑥𝐴 ↔ (𝑥𝐴 ∧ ∃𝑦 𝑦 = 𝐵)))
23 df-ral 2946 . . . . . . 7 (∀𝑥𝐴𝑦 𝑦 = 𝐵 ↔ ∀𝑥(𝑥𝐴 → ∃𝑦 𝑦 = 𝐵))
24 mptfnf.0 . . . . . . . 8 𝑥𝐴
2524abeq2f 2821 . . . . . . 7 (𝐴 = {𝑥 ∣ (𝑥𝐴 ∧ ∃𝑦 𝑦 = 𝐵)} ↔ ∀𝑥(𝑥𝐴 ↔ (𝑥𝐴 ∧ ∃𝑦 𝑦 = 𝐵)))
2622, 23, 253bitr4i 292 . . . . . 6 (∀𝑥𝐴𝑦 𝑦 = 𝐵𝐴 = {𝑥 ∣ (𝑥𝐴 ∧ ∃𝑦 𝑦 = 𝐵)})
2715, 20, 263bitr4ri 293 . . . . 5 (∀𝑥𝐴𝑦 𝑦 = 𝐵 ↔ dom {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} = 𝐴)
2814, 27anbi12i 733 . . . 4 ((∀𝑥𝐴 ∃*𝑦 𝑦 = 𝐵 ∧ ∀𝑥𝐴𝑦 𝑦 = 𝐵) ↔ (Fun {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} ∧ dom {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} = 𝐴))
29 ancom 465 . . . 4 ((∀𝑥𝐴 ∃*𝑦 𝑦 = 𝐵 ∧ ∀𝑥𝐴𝑦 𝑦 = 𝐵) ↔ (∀𝑥𝐴𝑦 𝑦 = 𝐵 ∧ ∀𝑥𝐴 ∃*𝑦 𝑦 = 𝐵))
309, 28, 293bitr2i 288 . . 3 ((𝑥𝐴𝐵) Fn 𝐴 ↔ (∀𝑥𝐴𝑦 𝑦 = 𝐵 ∧ ∀𝑥𝐴 ∃*𝑦 𝑦 = 𝐵))
313, 5, 303bitr4ri 293 . 2 ((𝑥𝐴𝐵) Fn 𝐴 ↔ ∀𝑥𝐴 ∃!𝑦 𝑦 = 𝐵)
322, 31bitr4i 267 1 (∀𝑥𝐴 𝐵 ∈ V ↔ (𝑥𝐴𝐵) Fn 𝐴)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 383  wal 1521   = wceq 1523  wex 1744  wcel 2030  ∃!weu 2498  ∃*wmo 2499  {cab 2637  wnfc 2780  wral 2941  Vcvv 3231  {copab 4745  cmpt 4762  dom cdm 5143  Fun wfun 5920   Fn wfn 5921
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1762  ax-4 1777  ax-5 1879  ax-6 1945  ax-7 1981  ax-9 2039  ax-10 2059  ax-11 2074  ax-12 2087  ax-13 2282  ax-ext 2631  ax-sep 4814  ax-nul 4822  ax-pr 4936
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3an 1056  df-tru 1526  df-ex 1745  df-nf 1750  df-sb 1938  df-eu 2502  df-mo 2503  df-clab 2638  df-cleq 2644  df-clel 2647  df-nfc 2782  df-ral 2946  df-rab 2950  df-v 3233  df-dif 3610  df-un 3612  df-in 3614  df-ss 3621  df-nul 3949  df-if 4120  df-sn 4211  df-pr 4213  df-op 4217  df-br 4686  df-opab 4746  df-mpt 4763  df-id 5053  df-xp 5149  df-rel 5150  df-cnv 5151  df-co 5152  df-dm 5153  df-fun 5928  df-fn 5929
This theorem is referenced by:  fnmptf  6054  mptfnd  39765
  Copyright terms: Public domain W3C validator