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

Theorem fsnex 7303
Description: Relate a function with a singleton as domain and one variable. (Contributed by Thierry Arnoux, 12-Jul-2020.)
Hypothesis
Ref Expression
fsnex.1 (𝑥 = (𝑓𝐴) → (𝜓𝜑))
Assertion
Ref Expression
fsnex (𝐴𝑉 → (∃𝑓(𝑓:{𝐴}⟶𝐷𝜑) ↔ ∃𝑥𝐷 𝜓))
Distinct variable groups:   𝐴,𝑓,𝑥   𝐷,𝑓,𝑥   𝑓,𝑉,𝑥   𝜓,𝑓   𝜑,𝑥
Allowed substitution hints:   𝜑(𝑓)   𝜓(𝑥)

Proof of Theorem fsnex
StepHypRef Expression
1 fsn2g 7158 . . . . . . . 8 (𝐴𝑉 → (𝑓:{𝐴}⟶𝐷 ↔ ((𝑓𝐴) ∈ 𝐷𝑓 = {⟨𝐴, (𝑓𝐴)⟩})))
21simprbda 498 . . . . . . 7 ((𝐴𝑉𝑓:{𝐴}⟶𝐷) → (𝑓𝐴) ∈ 𝐷)
32adantrr 717 . . . . . 6 ((𝐴𝑉 ∧ (𝑓:{𝐴}⟶𝐷𝜑)) → (𝑓𝐴) ∈ 𝐷)
4 fsnex.1 . . . . . . 7 (𝑥 = (𝑓𝐴) → (𝜓𝜑))
54adantl 481 . . . . . 6 (((𝐴𝑉 ∧ (𝑓:{𝐴}⟶𝐷𝜑)) ∧ 𝑥 = (𝑓𝐴)) → (𝜓𝜑))
6 simprr 773 . . . . . 6 ((𝐴𝑉 ∧ (𝑓:{𝐴}⟶𝐷𝜑)) → 𝜑)
73, 5, 6rspcedvd 3624 . . . . 5 ((𝐴𝑉 ∧ (𝑓:{𝐴}⟶𝐷𝜑)) → ∃𝑥𝐷 𝜓)
87ex 412 . . . 4 (𝐴𝑉 → ((𝑓:{𝐴}⟶𝐷𝜑) → ∃𝑥𝐷 𝜓))
98exlimdv 1933 . . 3 (𝐴𝑉 → (∃𝑓(𝑓:{𝐴}⟶𝐷𝜑) → ∃𝑥𝐷 𝜓))
109imp 406 . 2 ((𝐴𝑉 ∧ ∃𝑓(𝑓:{𝐴}⟶𝐷𝜑)) → ∃𝑥𝐷 𝜓)
11 nfv 1914 . . . 4 𝑥 𝐴𝑉
12 nfre1 3285 . . . 4 𝑥𝑥𝐷 𝜓
1311, 12nfan 1899 . . 3 𝑥(𝐴𝑉 ∧ ∃𝑥𝐷 𝜓)
14 f1osng 6889 . . . . . . . . 9 ((𝐴𝑉𝑥 ∈ V) → {⟨𝐴, 𝑥⟩}:{𝐴}–1-1-onto→{𝑥})
1514elvd 3486 . . . . . . . 8 (𝐴𝑉 → {⟨𝐴, 𝑥⟩}:{𝐴}–1-1-onto→{𝑥})
1615ad3antrrr 730 . . . . . . 7 ((((𝐴𝑉 ∧ ∃𝑥𝐷 𝜓) ∧ 𝑥𝐷) ∧ 𝜓) → {⟨𝐴, 𝑥⟩}:{𝐴}–1-1-onto→{𝑥})
17 f1of 6848 . . . . . . 7 ({⟨𝐴, 𝑥⟩}:{𝐴}–1-1-onto→{𝑥} → {⟨𝐴, 𝑥⟩}:{𝐴}⟶{𝑥})
1816, 17syl 17 . . . . . 6 ((((𝐴𝑉 ∧ ∃𝑥𝐷 𝜓) ∧ 𝑥𝐷) ∧ 𝜓) → {⟨𝐴, 𝑥⟩}:{𝐴}⟶{𝑥})
19 simplr 769 . . . . . . 7 ((((𝐴𝑉 ∧ ∃𝑥𝐷 𝜓) ∧ 𝑥𝐷) ∧ 𝜓) → 𝑥𝐷)
2019snssd 4809 . . . . . 6 ((((𝐴𝑉 ∧ ∃𝑥𝐷 𝜓) ∧ 𝑥𝐷) ∧ 𝜓) → {𝑥} ⊆ 𝐷)
2118, 20fssd 6753 . . . . 5 ((((𝐴𝑉 ∧ ∃𝑥𝐷 𝜓) ∧ 𝑥𝐷) ∧ 𝜓) → {⟨𝐴, 𝑥⟩}:{𝐴}⟶𝐷)
22 fvsng 7200 . . . . . . . 8 ((𝐴𝑉𝑥 ∈ V) → ({⟨𝐴, 𝑥⟩}‘𝐴) = 𝑥)
2322elvd 3486 . . . . . . 7 (𝐴𝑉 → ({⟨𝐴, 𝑥⟩}‘𝐴) = 𝑥)
2423eqcomd 2743 . . . . . 6 (𝐴𝑉𝑥 = ({⟨𝐴, 𝑥⟩}‘𝐴))
2524ad3antrrr 730 . . . . 5 ((((𝐴𝑉 ∧ ∃𝑥𝐷 𝜓) ∧ 𝑥𝐷) ∧ 𝜓) → 𝑥 = ({⟨𝐴, 𝑥⟩}‘𝐴))
26 snex 5436 . . . . . 6 {⟨𝐴, 𝑥⟩} ∈ V
27 feq1 6716 . . . . . . 7 (𝑓 = {⟨𝐴, 𝑥⟩} → (𝑓:{𝐴}⟶𝐷 ↔ {⟨𝐴, 𝑥⟩}:{𝐴}⟶𝐷))
28 fveq1 6905 . . . . . . . 8 (𝑓 = {⟨𝐴, 𝑥⟩} → (𝑓𝐴) = ({⟨𝐴, 𝑥⟩}‘𝐴))
2928eqeq2d 2748 . . . . . . 7 (𝑓 = {⟨𝐴, 𝑥⟩} → (𝑥 = (𝑓𝐴) ↔ 𝑥 = ({⟨𝐴, 𝑥⟩}‘𝐴)))
3027, 29anbi12d 632 . . . . . 6 (𝑓 = {⟨𝐴, 𝑥⟩} → ((𝑓:{𝐴}⟶𝐷𝑥 = (𝑓𝐴)) ↔ ({⟨𝐴, 𝑥⟩}:{𝐴}⟶𝐷𝑥 = ({⟨𝐴, 𝑥⟩}‘𝐴))))
3126, 30spcev 3606 . . . . 5 (({⟨𝐴, 𝑥⟩}:{𝐴}⟶𝐷𝑥 = ({⟨𝐴, 𝑥⟩}‘𝐴)) → ∃𝑓(𝑓:{𝐴}⟶𝐷𝑥 = (𝑓𝐴)))
3221, 25, 31syl2anc 584 . . . 4 ((((𝐴𝑉 ∧ ∃𝑥𝐷 𝜓) ∧ 𝑥𝐷) ∧ 𝜓) → ∃𝑓(𝑓:{𝐴}⟶𝐷𝑥 = (𝑓𝐴)))
33 simprl 771 . . . . . . 7 (((((𝐴𝑉 ∧ ∃𝑥𝐷 𝜓) ∧ 𝑥𝐷) ∧ 𝜓) ∧ (𝑓:{𝐴}⟶𝐷𝑥 = (𝑓𝐴))) → 𝑓:{𝐴}⟶𝐷)
34 simpllr 776 . . . . . . . . 9 ((((((𝐴𝑉 ∧ ∃𝑥𝐷 𝜓) ∧ 𝑥𝐷) ∧ 𝜓) ∧ (𝑓:{𝐴}⟶𝐷𝑥 = (𝑓𝐴))) ∧ 𝑓:{𝐴}⟶𝐷) → 𝜓)
35 simplrr 778 . . . . . . . . . 10 ((((((𝐴𝑉 ∧ ∃𝑥𝐷 𝜓) ∧ 𝑥𝐷) ∧ 𝜓) ∧ (𝑓:{𝐴}⟶𝐷𝑥 = (𝑓𝐴))) ∧ 𝑓:{𝐴}⟶𝐷) → 𝑥 = (𝑓𝐴))
3635, 4syl 17 . . . . . . . . 9 ((((((𝐴𝑉 ∧ ∃𝑥𝐷 𝜓) ∧ 𝑥𝐷) ∧ 𝜓) ∧ (𝑓:{𝐴}⟶𝐷𝑥 = (𝑓𝐴))) ∧ 𝑓:{𝐴}⟶𝐷) → (𝜓𝜑))
3734, 36mpbid 232 . . . . . . . 8 ((((((𝐴𝑉 ∧ ∃𝑥𝐷 𝜓) ∧ 𝑥𝐷) ∧ 𝜓) ∧ (𝑓:{𝐴}⟶𝐷𝑥 = (𝑓𝐴))) ∧ 𝑓:{𝐴}⟶𝐷) → 𝜑)
3833, 37mpdan 687 . . . . . . 7 (((((𝐴𝑉 ∧ ∃𝑥𝐷 𝜓) ∧ 𝑥𝐷) ∧ 𝜓) ∧ (𝑓:{𝐴}⟶𝐷𝑥 = (𝑓𝐴))) → 𝜑)
3933, 38jca 511 . . . . . 6 (((((𝐴𝑉 ∧ ∃𝑥𝐷 𝜓) ∧ 𝑥𝐷) ∧ 𝜓) ∧ (𝑓:{𝐴}⟶𝐷𝑥 = (𝑓𝐴))) → (𝑓:{𝐴}⟶𝐷𝜑))
4039ex 412 . . . . 5 ((((𝐴𝑉 ∧ ∃𝑥𝐷 𝜓) ∧ 𝑥𝐷) ∧ 𝜓) → ((𝑓:{𝐴}⟶𝐷𝑥 = (𝑓𝐴)) → (𝑓:{𝐴}⟶𝐷𝜑)))
4140eximdv 1917 . . . 4 ((((𝐴𝑉 ∧ ∃𝑥𝐷 𝜓) ∧ 𝑥𝐷) ∧ 𝜓) → (∃𝑓(𝑓:{𝐴}⟶𝐷𝑥 = (𝑓𝐴)) → ∃𝑓(𝑓:{𝐴}⟶𝐷𝜑)))
4232, 41mpd 15 . . 3 ((((𝐴𝑉 ∧ ∃𝑥𝐷 𝜓) ∧ 𝑥𝐷) ∧ 𝜓) → ∃𝑓(𝑓:{𝐴}⟶𝐷𝜑))
43 simpr 484 . . 3 ((𝐴𝑉 ∧ ∃𝑥𝐷 𝜓) → ∃𝑥𝐷 𝜓)
4413, 42, 43r19.29af 3268 . 2 ((𝐴𝑉 ∧ ∃𝑥𝐷 𝜓) → ∃𝑓(𝑓:{𝐴}⟶𝐷𝜑))
4510, 44impbida 801 1 (𝐴𝑉 → (∃𝑓(𝑓:{𝐴}⟶𝐷𝜑) ↔ ∃𝑥𝐷 𝜓))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 206  wa 395   = wceq 1540  wex 1779  wcel 2108  wrex 3070  Vcvv 3480  {csn 4626  cop 4632  wf 6557  1-1-ontowf1o 6560  cfv 6561
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1967  ax-7 2007  ax-8 2110  ax-9 2118  ax-10 2141  ax-12 2177  ax-ext 2708  ax-sep 5296  ax-nul 5306  ax-pr 5432
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 849  df-3an 1089  df-tru 1543  df-fal 1553  df-ex 1780  df-nf 1784  df-sb 2065  df-mo 2540  df-eu 2569  df-clab 2715  df-cleq 2729  df-clel 2816  df-ne 2941  df-ral 3062  df-rex 3071  df-reu 3381  df-rab 3437  df-v 3482  df-dif 3954  df-un 3956  df-in 3958  df-ss 3968  df-nul 4334  df-if 4526  df-sn 4627  df-pr 4629  df-op 4633  df-uni 4908  df-br 5144  df-opab 5206  df-id 5578  df-xp 5691  df-rel 5692  df-cnv 5693  df-co 5694  df-dm 5695  df-rn 5696  df-res 5697  df-ima 5698  df-iota 6514  df-fun 6563  df-fn 6564  df-f 6565  df-f1 6566  df-fo 6567  df-f1o 6568  df-fv 6569
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator