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

Theorem mptfnf 6564
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 3646 . . 3 (𝐵 ∈ V ↔ ∃!𝑦 𝑦 = 𝐵)
21ralbii 3092 . 2 (∀𝑥𝐴 𝐵 ∈ V ↔ ∀𝑥𝐴 ∃!𝑦 𝑦 = 𝐵)
3 r19.26 3096 . . 3 (∀𝑥𝐴 (∃𝑦 𝑦 = 𝐵 ∧ ∃*𝑦 𝑦 = 𝐵) ↔ (∀𝑥𝐴𝑦 𝑦 = 𝐵 ∧ ∀𝑥𝐴 ∃*𝑦 𝑦 = 𝐵))
4 df-eu 2570 . . . 4 (∃!𝑦 𝑦 = 𝐵 ↔ (∃𝑦 𝑦 = 𝐵 ∧ ∃*𝑦 𝑦 = 𝐵))
54ralbii 3092 . . 3 (∀𝑥𝐴 ∃!𝑦 𝑦 = 𝐵 ↔ ∀𝑥𝐴 (∃𝑦 𝑦 = 𝐵 ∧ ∃*𝑦 𝑦 = 𝐵))
6 df-mpt 5162 . . . . . 6 (𝑥𝐴𝐵) = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)}
76fneq1i 6526 . . . . 5 ((𝑥𝐴𝐵) Fn 𝐴 ↔ {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} Fn 𝐴)
8 df-fn 6433 . . . . 5 ({⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} Fn 𝐴 ↔ (Fun {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} ∧ dom {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} = 𝐴))
97, 8bitri 274 . . . 4 ((𝑥𝐴𝐵) Fn 𝐴 ↔ (Fun {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} ∧ dom {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} = 𝐴))
10 moanimv 2622 . . . . . . 7 (∃*𝑦(𝑥𝐴𝑦 = 𝐵) ↔ (𝑥𝐴 → ∃*𝑦 𝑦 = 𝐵))
1110albii 1825 . . . . . 6 (∀𝑥∃*𝑦(𝑥𝐴𝑦 = 𝐵) ↔ ∀𝑥(𝑥𝐴 → ∃*𝑦 𝑦 = 𝐵))
12 funopab 6465 . . . . . 6 (Fun {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} ↔ ∀𝑥∃*𝑦(𝑥𝐴𝑦 = 𝐵))
13 df-ral 3070 . . . . . 6 (∀𝑥𝐴 ∃*𝑦 𝑦 = 𝐵 ↔ ∀𝑥(𝑥𝐴 → ∃*𝑦 𝑦 = 𝐵))
1411, 12, 133bitr4ri 303 . . . . 5 (∀𝑥𝐴 ∃*𝑦 𝑦 = 𝐵 ↔ Fun {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)})
15 eqcom 2746 . . . . . 6 ({𝑥 ∣ (𝑥𝐴 ∧ ∃𝑦 𝑦 = 𝐵)} = 𝐴𝐴 = {𝑥 ∣ (𝑥𝐴 ∧ ∃𝑦 𝑦 = 𝐵)})
16 dmopab 5821 . . . . . . . 8 dom {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} = {𝑥 ∣ ∃𝑦(𝑥𝐴𝑦 = 𝐵)}
17 19.42v 1960 . . . . . . . . 9 (∃𝑦(𝑥𝐴𝑦 = 𝐵) ↔ (𝑥𝐴 ∧ ∃𝑦 𝑦 = 𝐵))
1817abbii 2809 . . . . . . . 8 {𝑥 ∣ ∃𝑦(𝑥𝐴𝑦 = 𝐵)} = {𝑥 ∣ (𝑥𝐴 ∧ ∃𝑦 𝑦 = 𝐵)}
1916, 18eqtri 2767 . . . . . . 7 dom {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} = {𝑥 ∣ (𝑥𝐴 ∧ ∃𝑦 𝑦 = 𝐵)}
2019eqeq1i 2744 . . . . . 6 (dom {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} = 𝐴 ↔ {𝑥 ∣ (𝑥𝐴 ∧ ∃𝑦 𝑦 = 𝐵)} = 𝐴)
21 pm4.71 557 . . . . . . . 8 ((𝑥𝐴 → ∃𝑦 𝑦 = 𝐵) ↔ (𝑥𝐴 ↔ (𝑥𝐴 ∧ ∃𝑦 𝑦 = 𝐵)))
2221albii 1825 . . . . . . 7 (∀𝑥(𝑥𝐴 → ∃𝑦 𝑦 = 𝐵) ↔ ∀𝑥(𝑥𝐴 ↔ (𝑥𝐴 ∧ ∃𝑦 𝑦 = 𝐵)))
23 df-ral 3070 . . . . . . 7 (∀𝑥𝐴𝑦 𝑦 = 𝐵 ↔ ∀𝑥(𝑥𝐴 → ∃𝑦 𝑦 = 𝐵))
24 mptfnf.0 . . . . . . . 8 𝑥𝐴
2524abeq2f 2941 . . . . . . 7 (𝐴 = {𝑥 ∣ (𝑥𝐴 ∧ ∃𝑦 𝑦 = 𝐵)} ↔ ∀𝑥(𝑥𝐴 ↔ (𝑥𝐴 ∧ ∃𝑦 𝑦 = 𝐵)))
2622, 23, 253bitr4i 302 . . . . . 6 (∀𝑥𝐴𝑦 𝑦 = 𝐵𝐴 = {𝑥 ∣ (𝑥𝐴 ∧ ∃𝑦 𝑦 = 𝐵)})
2715, 20, 263bitr4ri 303 . . . . 5 (∀𝑥𝐴𝑦 𝑦 = 𝐵 ↔ dom {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} = 𝐴)
2814, 27anbi12i 626 . . . 4 ((∀𝑥𝐴 ∃*𝑦 𝑦 = 𝐵 ∧ ∀𝑥𝐴𝑦 𝑦 = 𝐵) ↔ (Fun {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} ∧ dom {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐵)} = 𝐴))
29 ancom 460 . . . 4 ((∀𝑥𝐴 ∃*𝑦 𝑦 = 𝐵 ∧ ∀𝑥𝐴𝑦 𝑦 = 𝐵) ↔ (∀𝑥𝐴𝑦 𝑦 = 𝐵 ∧ ∀𝑥𝐴 ∃*𝑦 𝑦 = 𝐵))
309, 28, 293bitr2i 298 . . 3 ((𝑥𝐴𝐵) Fn 𝐴 ↔ (∀𝑥𝐴𝑦 𝑦 = 𝐵 ∧ ∀𝑥𝐴 ∃*𝑦 𝑦 = 𝐵))
313, 5, 303bitr4ri 303 . 2 ((𝑥𝐴𝐵) Fn 𝐴 ↔ ∀𝑥𝐴 ∃!𝑦 𝑦 = 𝐵)
322, 31bitr4i 277 1 (∀𝑥𝐴 𝐵 ∈ V ↔ (𝑥𝐴𝐵) Fn 𝐴)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  wal 1539   = wceq 1541  wex 1785  wcel 2109  ∃*wmo 2539  ∃!weu 2569  {cab 2716  wnfc 2888  wral 3065  Vcvv 3430  {copab 5140  cmpt 5161  dom cdm 5588  Fun wfun 6424   Fn wfn 6425
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1801  ax-4 1815  ax-5 1916  ax-6 1974  ax-7 2014  ax-8 2111  ax-9 2119  ax-10 2140  ax-11 2157  ax-12 2174  ax-ext 2710  ax-sep 5226  ax-nul 5233  ax-pr 5355
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1544  df-fal 1554  df-ex 1786  df-nf 1790  df-sb 2071  df-mo 2541  df-eu 2570  df-clab 2717  df-cleq 2731  df-clel 2817  df-nfc 2890  df-ral 3070  df-rab 3074  df-v 3432  df-dif 3894  df-un 3896  df-in 3898  df-ss 3908  df-nul 4262  df-if 4465  df-sn 4567  df-pr 4569  df-op 4573  df-br 5079  df-opab 5141  df-mpt 5162  df-id 5488  df-xp 5594  df-rel 5595  df-cnv 5596  df-co 5597  df-dm 5598  df-fun 6432  df-fn 6433
This theorem is referenced by:  fnmptf  6565  mptfnd  42739
  Copyright terms: Public domain W3C validator