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

Theorem fsnex 7322
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 7171 . . . . . . . 8 (𝐴 ∈ 𝑉 → (𝑓:{𝐴}⟶𝐷 ↔ ((𝑓‘𝐴) ∈ 𝐷 ∧ 𝑓 = {⟨𝐴, (𝑓‘𝐴)⟩})))
21simprbda 504 . . . . . . 7 ((𝐴 ∈ 𝑉 ∧ 𝑓:{𝐴}⟶𝐷) → (𝑓‘𝐴) ∈ 𝐷)
32adantrr 730 . . . . . 6 ((𝐴 ∈ 𝑉 ∧ (𝑓:{𝐴}⟶𝐷 ∧ 𝜑)) → (𝑓‘𝐴) ∈ 𝐷)
4 fsnex.1 . . . . . . 7 (𝑥 = (𝑓‘𝐴) → (𝜓 ↔ 𝜑))
54adantl 487 . . . . . 6 (((𝐴 ∈ 𝑉 ∧ (𝑓:{𝐴}⟶𝐷 ∧ 𝜑)) ∧ 𝑥 = (𝑓‘𝐴)) → (𝜓 ↔ 𝜑))
6 simprr 785 . . . . . 6 ((𝐴 ∈ 𝑉 ∧ (𝑓:{𝐴}⟶𝐷 ∧ 𝜑)) → 𝜑)
73, 5, 6rspcedvd 3582 . . . . 5 ((𝐴 ∈ 𝑉 ∧ (𝑓:{𝐴}⟶𝐷 ∧ 𝜑)) → ∃𝑥 ∈ 𝐷 𝜓)
87ex 418 . . . 4 (𝐴 ∈ 𝑉 → ((𝑓:{𝐴}⟶𝐷 ∧ 𝜑) → ∃𝑥 ∈ 𝐷 𝜓))
98exlimdv 1968 . . 3 (𝐴 ∈ 𝑉 → (∃𝑓(𝑓:{𝐴}⟶𝐷 ∧ 𝜑) → ∃𝑥 ∈ 𝐷 𝜓))
109imp 412 . 2 ((𝐴 ∈ 𝑉 ∧ ∃𝑓(𝑓:{𝐴}⟶𝐷 ∧ 𝜑)) → ∃𝑥 ∈ 𝐷 𝜓)
11 nfv 1949 . . . 4 Ⅎ𝑥 𝐴 ∈ 𝑉
12 nfre1 3291 . . . 4 Ⅎ𝑥∃𝑥 ∈ 𝐷 𝜓
1311, 12nfan 1934 . . 3 Ⅎ𝑥(𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓)
14 f1osng 6898 . . . . . . . . 9 ((𝐴 ∈ 𝑉 ∧ 𝑥 ∈ V) → {⟨𝐴, 𝑥⟩}:{𝐴}⟶1-1onto{𝑥})
1514elvd 3460 . . . . . . . 8 (𝐴 ∈ 𝑉 → {⟨𝐴, 𝑥⟩}:{𝐴}⟶1-1onto{𝑥})
1615ad3antrrr 743 . . . . . . 7 ((((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) ∧ 𝑥 ∈ 𝐷) ∧ 𝜓) → {⟨𝐴, 𝑥⟩}:{𝐴}⟶1-1onto{𝑥})
17 f1of 6854 . . . . . . 7 ({⟨𝐴, 𝑥⟩}:{𝐴}⟶1-1onto{𝑥} → {⟨𝐴, 𝑥⟩}:{𝐴}⟶{𝑥})
1816, 17syl 18 . . . . . 6 ((((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) ∧ 𝑥 ∈ 𝐷) ∧ 𝜓) → {⟨𝐴, 𝑥⟩}:{𝐴}⟶{𝑥})
19 simplr 781 . . . . . . 7 ((((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) ∧ 𝑥 ∈ 𝐷) ∧ 𝜓) → 𝑥 ∈ 𝐷)
2019snssd 4749 . . . . . 6 ((((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) ∧ 𝑥 ∈ 𝐷) ∧ 𝜓) → {𝑥} ⊆ 𝐷)
2118, 20fssd 6757 . . . . 5 ((((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) ∧ 𝑥 ∈ 𝐷) ∧ 𝜓) → {⟨𝐴, 𝑥⟩}:{𝐴}⟶𝐷)
22 fvsng 7216 . . . . . . . 8 ((𝐴 ∈ 𝑉 ∧ 𝑥 ∈ V) → ({⟨𝐴, 𝑥⟩}‘𝐴) = 𝑥)
2322elvd 3460 . . . . . . 7 (𝐴 ∈ 𝑉 → ({⟨𝐴, 𝑥⟩}‘𝐴) = 𝑥)
2423eqcomd 2769 . . . . . 6 (𝐴 ∈ 𝑉 → 𝑥 = ({⟨𝐴, 𝑥⟩}‘𝐴))
2524ad3antrrr 743 . . . . 5 ((((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) ∧ 𝑥 ∈ 𝐷) ∧ 𝜓) → 𝑥 = ({⟨𝐴, 𝑥⟩}‘𝐴))
26 snex 5404 . . . . . 6 {⟨𝐴, 𝑥⟩} ∈ V
27 feq1 6717 . . . . . . 7 (𝑓 = {⟨𝐴, 𝑥⟩} → (𝑓:{𝐴}⟶𝐷 ↔ {⟨𝐴, 𝑥⟩}:{𝐴}⟶𝐷))
28 fveq1 6915 . . . . . . . 8 (𝑓 = {⟨𝐴, 𝑥⟩} → (𝑓‘𝐴) = ({⟨𝐴, 𝑥⟩}‘𝐴))
2928eqeq2d 2774 . . . . . . 7 (𝑓 = {⟨𝐴, 𝑥⟩} → (𝑥 = (𝑓‘𝐴) ↔ 𝑥 = ({⟨𝐴, 𝑥⟩}‘𝐴)))
3027, 29anbi12d 644 . . . . . 6 (𝑓 = {⟨𝐴, 𝑥⟩} → ((𝑓:{𝐴}⟶𝐷 ∧ 𝑥 = (𝑓‘𝐴)) ↔ ({⟨𝐴, 𝑥⟩}:{𝐴}⟶𝐷 ∧ 𝑥 = ({⟨𝐴, 𝑥⟩}‘𝐴))))
3126, 30spcev 3564 . . . . 5 (({⟨𝐴, 𝑥⟩}:{𝐴}⟶𝐷 ∧ 𝑥 = ({⟨𝐴, 𝑥⟩}‘𝐴)) → ∃𝑓(𝑓:{𝐴}⟶𝐷 ∧ 𝑥 = (𝑓‘𝐴)))
3221, 25, 31syl2anc 596 . . . 4 ((((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) ∧ 𝑥 ∈ 𝐷) ∧ 𝜓) → ∃𝑓(𝑓:{𝐴}⟶𝐷 ∧ 𝑥 = (𝑓‘𝐴)))
33 simprl 783 . . . . . . 7 (((((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) ∧ 𝑥 ∈ 𝐷) ∧ 𝜓) ∧ (𝑓:{𝐴}⟶𝐷 ∧ 𝑥 = (𝑓‘𝐴))) → 𝑓:{𝐴}⟶𝐷)
34 simpllr 788 . . . . . . . . 9 ((((((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) ∧ 𝑥 ∈ 𝐷) ∧ 𝜓) ∧ (𝑓:{𝐴}⟶𝐷 ∧ 𝑥 = (𝑓‘𝐴))) ∧ 𝑓:{𝐴}⟶𝐷) → 𝜓)
35 simplrr 790 . . . . . . . . . 10 ((((((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) ∧ 𝑥 ∈ 𝐷) ∧ 𝜓) ∧ (𝑓:{𝐴}⟶𝐷 ∧ 𝑥 = (𝑓‘𝐴))) ∧ 𝑓:{𝐴}⟶𝐷) → 𝑥 = (𝑓‘𝐴))
3635, 4syl 18 . . . . . . . . 9 ((((((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) ∧ 𝑥 ∈ 𝐷) ∧ 𝜓) ∧ (𝑓:{𝐴}⟶𝐷 ∧ 𝑥 = (𝑓‘𝐴))) ∧ 𝑓:{𝐴}⟶𝐷) → (𝜓 ↔ 𝜑))
3734, 36mpbid 235 . . . . . . . 8 ((((((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) ∧ 𝑥 ∈ 𝐷) ∧ 𝜓) ∧ (𝑓:{𝐴}⟶𝐷 ∧ 𝑥 = (𝑓‘𝐴))) ∧ 𝑓:{𝐴}⟶𝐷) → 𝜑)
3833, 37mpdan 700 . . . . . . 7 (((((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) ∧ 𝑥 ∈ 𝐷) ∧ 𝜓) ∧ (𝑓:{𝐴}⟶𝐷 ∧ 𝑥 = (𝑓‘𝐴))) → 𝜑)
3933, 38jca 521 . . . . . 6 (((((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) ∧ 𝑥 ∈ 𝐷) ∧ 𝜓) ∧ (𝑓:{𝐴}⟶𝐷 ∧ 𝑥 = (𝑓‘𝐴))) → (𝑓:{𝐴}⟶𝐷 ∧ 𝜑))
4039ex 418 . . . . 5 ((((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) ∧ 𝑥 ∈ 𝐷) ∧ 𝜓) → ((𝑓:{𝐴}⟶𝐷 ∧ 𝑥 = (𝑓‘𝐴)) → (𝑓:{𝐴}⟶𝐷 ∧ 𝜑)))
4140eximdv 1952 . . . 4 ((((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) ∧ 𝑥 ∈ 𝐷) ∧ 𝜓) → (∃𝑓(𝑓:{𝐴}⟶𝐷 ∧ 𝑥 = (𝑓‘𝐴)) → ∃𝑓(𝑓:{𝐴}⟶𝐷 ∧ 𝜑)))
4232, 41mpd 16 . . 3 ((((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) ∧ 𝑥 ∈ 𝐷) ∧ 𝜓) → ∃𝑓(𝑓:{𝐴}⟶𝐷 ∧ 𝜑))
43 simpr 490 . . 3 ((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) → ∃𝑥 ∈ 𝐷 𝜓)
4413, 42, 43r19.29af 3275 . 2 ((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) → ∃𝑓(𝑓:{𝐴}⟶𝐷 ∧ 𝜑))
4510, 44impbida 813 1 (𝐴 ∈ 𝑉 → (∃𝑓(𝑓:{𝐴}⟶𝐷 ∧ 𝜑) ↔ ∃𝑥 ∈ 𝐷 𝜓))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1570  ∃wex 1812   ∈ wcel 2147  ∃wrex 3090  Vcvv 3454  {csn 4588  ⟨cop 4840  ⟶wf 6562  ⟶1-1ontowf1o 6565  ‘cfv 6566
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-12 2216  ax-ext 2735  ax-sep 5255  ax-nul 5266  ax-pr 5398
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-ne 2960  df-ral 3081  df-rex 3091  df-reu 3370  df-rab 3417  df-v 3456  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-sn 4589  df-pr 4591  df-op 4841  df-uni 4873  df-br 5109  df-opab 5174  df-id 5553  df-xp 5664  df-rel 5665  df-cnv 5666  df-co 5667  df-dm 5668  df-rn 5669  df-res 5670  df-ima 5671  df-iota 6520  df-fun 6568  df-fn 6569  df-f 6570  df-f1 6571  df-fo 6572  df-f1o 6573  df-fv 6574
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator