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

Theorem fsnex 7298
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 7147 . . . . . . . 8 (𝐴 ∈ 𝑉 → (𝑓:{𝐴}⟶𝐷 ↔ ((𝑓‘𝐴) ∈ 𝐷 ∧ 𝑓 = {⟨𝐴, (𝑓‘𝐴)⟩})))
21simprbda 504 . . . . . . 7 ((𝐴 ∈ 𝑉 ∧ 𝑓:{𝐴}⟶𝐷) → (𝑓‘𝐴) ∈ 𝐷)
32adantrr 730 . . . . . 6 ((𝐴 ∈ 𝑉 ∧ (𝑓:{𝐴}⟶𝐷 ∧ 𝜑)) → (𝑓‘𝐴) ∈ 𝐷)
4 fsnex.1 . . . . . . 7 (𝑥 = (𝑓‘𝐴) → (𝜓 ↔ 𝜑))
54adantl 487 . . . . . 6 (((𝐴 ∈ 𝑉 ∧ (𝑓:{𝐴}⟶𝐷 ∧ 𝜑)) ∧ 𝑥 = (𝑓‘𝐴)) → (𝜓 ↔ 𝜑))
6 simprr 785 . . . . . 6 ((𝐴 ∈ 𝑉 ∧ (𝑓:{𝐴}⟶𝐷 ∧ 𝜑)) → 𝜑)
73, 5, 6rspcedvd 3581 . . . . 5 ((𝐴 ∈ 𝑉 ∧ (𝑓:{𝐴}⟶𝐷 ∧ 𝜑)) → ∃𝑥 ∈ 𝐷 𝜓)
87ex 418 . . . 4 (𝐴 ∈ 𝑉 → ((𝑓:{𝐴}⟶𝐷 ∧ 𝜑) → ∃𝑥 ∈ 𝐷 𝜓))
98exlimdv 1967 . . 3 (𝐴 ∈ 𝑉 → (∃𝑓(𝑓:{𝐴}⟶𝐷 ∧ 𝜑) → ∃𝑥 ∈ 𝐷 𝜓))
109imp 412 . 2 ((𝐴 ∈ 𝑉 ∧ ∃𝑓(𝑓:{𝐴}⟶𝐷 ∧ 𝜑)) → ∃𝑥 ∈ 𝐷 𝜓)
11 nfv 1948 . . . 4 Ⅎ𝑥 𝐴 ∈ 𝑉
12 nfre1 3290 . . . 4 Ⅎ𝑥∃𝑥 ∈ 𝐷 𝜓
1311, 12nfan 1933 . . 3 Ⅎ𝑥(𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓)
14 f1osng 6875 . . . . . . . . 9 ((𝐴 ∈ 𝑉 ∧ 𝑥 ∈ V) → {⟨𝐴, 𝑥⟩}:{𝐴}–1-1-onto→{𝑥})
1514elvd 3459 . . . . . . . 8 (𝐴 ∈ 𝑉 → {⟨𝐴, 𝑥⟩}:{𝐴}–1-1-onto→{𝑥})
1615ad3antrrr 743 . . . . . . 7 ((((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) ∧ 𝑥 ∈ 𝐷) ∧ 𝜓) → {⟨𝐴, 𝑥⟩}:{𝐴}–1-1-onto→{𝑥})
17 f1of 6832 . . . . . . 7 ({⟨𝐴, 𝑥⟩}:{𝐴}–1-1-onto→{𝑥} → {⟨𝐴, 𝑥⟩}:{𝐴}⟶{𝑥})
1816, 17syl 18 . . . . . 6 ((((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) ∧ 𝑥 ∈ 𝐷) ∧ 𝜓) → {⟨𝐴, 𝑥⟩}:{𝐴}⟶{𝑥})
19 simplr 781 . . . . . . 7 ((((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) ∧ 𝑥 ∈ 𝐷) ∧ 𝜓) → 𝑥 ∈ 𝐷)
2019snssd 4746 . . . . . 6 ((((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) ∧ 𝑥 ∈ 𝐷) ∧ 𝜓) → {𝑥} ⊆ 𝐷)
2118, 20fssd 6735 . . . . 5 ((((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) ∧ 𝑥 ∈ 𝐷) ∧ 𝜓) → {⟨𝐴, 𝑥⟩}:{𝐴}⟶𝐷)
22 fvsng 7192 . . . . . . . 8 ((𝐴 ∈ 𝑉 ∧ 𝑥 ∈ V) → ({⟨𝐴, 𝑥⟩}‘𝐴) = 𝑥)
2322elvd 3459 . . . . . . 7 (𝐴 ∈ 𝑉 → ({⟨𝐴, 𝑥⟩}‘𝐴) = 𝑥)
2423eqcomd 2769 . . . . . 6 (𝐴 ∈ 𝑉 → 𝑥 = ({⟨𝐴, 𝑥⟩}‘𝐴))
2524ad3antrrr 743 . . . . 5 ((((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) ∧ 𝑥 ∈ 𝐷) ∧ 𝜓) → 𝑥 = ({⟨𝐴, 𝑥⟩}‘𝐴))
26 snex 5400 . . . . . 6 {⟨𝐴, 𝑥⟩} ∈ V
27 feq1 6695 . . . . . . 7 (𝑓 = {⟨𝐴, 𝑥⟩} → (𝑓:{𝐴}⟶𝐷 ↔ {⟨𝐴, 𝑥⟩}:{𝐴}⟶𝐷))
28 fveq1 6892 . . . . . . . 8 (𝑓 = {⟨𝐴, 𝑥⟩} → (𝑓‘𝐴) = ({⟨𝐴, 𝑥⟩}‘𝐴))
2928eqeq2d 2774 . . . . . . 7 (𝑓 = {⟨𝐴, 𝑥⟩} → (𝑥 = (𝑓‘𝐴) ↔ 𝑥 = ({⟨𝐴, 𝑥⟩}‘𝐴)))
3027, 29anbi12d 644 . . . . . 6 (𝑓 = {⟨𝐴, 𝑥⟩} → ((𝑓:{𝐴}⟶𝐷 ∧ 𝑥 = (𝑓‘𝐴)) ↔ ({⟨𝐴, 𝑥⟩}:{𝐴}⟶𝐷 ∧ 𝑥 = ({⟨𝐴, 𝑥⟩}‘𝐴))))
3126, 30spcev 3563 . . . . 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 1951 . . . 4 ((((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) ∧ 𝑥 ∈ 𝐷) ∧ 𝜓) → (∃𝑓(𝑓:{𝐴}⟶𝐷 ∧ 𝑥 = (𝑓‘𝐴)) → ∃𝑓(𝑓:{𝐴}⟶𝐷 ∧ 𝜑)))
4232, 41mpd 16 . . 3 ((((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) ∧ 𝑥 ∈ 𝐷) ∧ 𝜓) → ∃𝑓(𝑓:{𝐴}⟶𝐷 ∧ 𝜑))
43 simpr 490 . . 3 ((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) → ∃𝑥 ∈ 𝐷 𝜓)
4413, 42, 43r19.29af 3274 . 2 ((𝐴 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 𝜓) → ∃𝑓(𝑓:{𝐴}⟶𝐷 ∧ 𝜑))
4510, 44impbida 813 1 (𝐴 ∈ 𝑉 → (∃𝑓(𝑓:{𝐴}⟶𝐷 ∧ 𝜑) ↔ ∃𝑥 ∈ 𝐷 𝜓))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1569  ∃wex 1811   ∈ wcel 2146  ∃wrex 3089  Vcvv 3453  {csn 4587  ⟨cop 4837  ⟶wf 6542  –1-1-onto→wf1o 6545  ‘cfv 6546
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1944  ax-6 2001  ax-7 2042  ax-8 2148  ax-9 2156  ax-10 2179  ax-12 2215  ax-ext 2735  ax-sep 5251  ax-nul 5262  ax-pr 5394
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2101  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2838  df-ne 2959  df-ral 3080  df-rex 3090  df-reu 3369  df-rab 3416  df-v 3455  df-ss 3900  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485  df-sn 4588  df-pr 4590  df-op 4838  df-uni 4870  df-br 5106  df-opab 5170  df-id 5549  df-xp 5660  df-rel 5661  df-cnv 5662  df-co 5663  df-dm 5664  df-rn 5665  df-res 5666  df-ima 5667  df-iota 6500  df-fun 6548  df-fn 6549  df-f 6550  df-f1 6551  df-fo 6552  df-f1o 6553  df-fv 6554
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator