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

Theorem ffvresb 6349
Description: A necessary and sufficient condition for a restricted function. (Contributed by Mario Carneiro, 14-Nov-2013.)
Assertion
Ref Expression
ffvresb (Fun 𝐹 → ((𝐹𝐴):𝐴𝐵 ↔ ∀𝑥𝐴 (𝑥 ∈ dom 𝐹 ∧ (𝐹𝑥) ∈ 𝐵)))
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵   𝑥,𝐹

Proof of Theorem ffvresb
StepHypRef Expression
1 fdm 6008 . . . . . 6 ((𝐹𝐴):𝐴𝐵 → dom (𝐹𝐴) = 𝐴)
2 dmres 5378 . . . . . . 7 dom (𝐹𝐴) = (𝐴 ∩ dom 𝐹)
3 inss2 3812 . . . . . . 7 (𝐴 ∩ dom 𝐹) ⊆ dom 𝐹
42, 3eqsstri 3614 . . . . . 6 dom (𝐹𝐴) ⊆ dom 𝐹
51, 4syl6eqssr 3635 . . . . 5 ((𝐹𝐴):𝐴𝐵𝐴 ⊆ dom 𝐹)
65sselda 3583 . . . 4 (((𝐹𝐴):𝐴𝐵𝑥𝐴) → 𝑥 ∈ dom 𝐹)
7 fvres 6164 . . . . . 6 (𝑥𝐴 → ((𝐹𝐴)‘𝑥) = (𝐹𝑥))
87adantl 482 . . . . 5 (((𝐹𝐴):𝐴𝐵𝑥𝐴) → ((𝐹𝐴)‘𝑥) = (𝐹𝑥))
9 ffvelrn 6313 . . . . 5 (((𝐹𝐴):𝐴𝐵𝑥𝐴) → ((𝐹𝐴)‘𝑥) ∈ 𝐵)
108, 9eqeltrrd 2699 . . . 4 (((𝐹𝐴):𝐴𝐵𝑥𝐴) → (𝐹𝑥) ∈ 𝐵)
116, 10jca 554 . . 3 (((𝐹𝐴):𝐴𝐵𝑥𝐴) → (𝑥 ∈ dom 𝐹 ∧ (𝐹𝑥) ∈ 𝐵))
1211ralrimiva 2960 . 2 ((𝐹𝐴):𝐴𝐵 → ∀𝑥𝐴 (𝑥 ∈ dom 𝐹 ∧ (𝐹𝑥) ∈ 𝐵))
13 simpl 473 . . . . . . 7 ((𝑥 ∈ dom 𝐹 ∧ (𝐹𝑥) ∈ 𝐵) → 𝑥 ∈ dom 𝐹)
1413ralimi 2947 . . . . . 6 (∀𝑥𝐴 (𝑥 ∈ dom 𝐹 ∧ (𝐹𝑥) ∈ 𝐵) → ∀𝑥𝐴 𝑥 ∈ dom 𝐹)
15 dfss3 3573 . . . . . 6 (𝐴 ⊆ dom 𝐹 ↔ ∀𝑥𝐴 𝑥 ∈ dom 𝐹)
1614, 15sylibr 224 . . . . 5 (∀𝑥𝐴 (𝑥 ∈ dom 𝐹 ∧ (𝐹𝑥) ∈ 𝐵) → 𝐴 ⊆ dom 𝐹)
17 funfn 5877 . . . . . 6 (Fun 𝐹𝐹 Fn dom 𝐹)
18 fnssres 5962 . . . . . 6 ((𝐹 Fn dom 𝐹𝐴 ⊆ dom 𝐹) → (𝐹𝐴) Fn 𝐴)
1917, 18sylanb 489 . . . . 5 ((Fun 𝐹𝐴 ⊆ dom 𝐹) → (𝐹𝐴) Fn 𝐴)
2016, 19sylan2 491 . . . 4 ((Fun 𝐹 ∧ ∀𝑥𝐴 (𝑥 ∈ dom 𝐹 ∧ (𝐹𝑥) ∈ 𝐵)) → (𝐹𝐴) Fn 𝐴)
21 simpr 477 . . . . . . . 8 ((𝑥 ∈ dom 𝐹 ∧ (𝐹𝑥) ∈ 𝐵) → (𝐹𝑥) ∈ 𝐵)
227eleq1d 2683 . . . . . . . 8 (𝑥𝐴 → (((𝐹𝐴)‘𝑥) ∈ 𝐵 ↔ (𝐹𝑥) ∈ 𝐵))
2321, 22syl5ibr 236 . . . . . . 7 (𝑥𝐴 → ((𝑥 ∈ dom 𝐹 ∧ (𝐹𝑥) ∈ 𝐵) → ((𝐹𝐴)‘𝑥) ∈ 𝐵))
2423ralimia 2945 . . . . . 6 (∀𝑥𝐴 (𝑥 ∈ dom 𝐹 ∧ (𝐹𝑥) ∈ 𝐵) → ∀𝑥𝐴 ((𝐹𝐴)‘𝑥) ∈ 𝐵)
2524adantl 482 . . . . 5 ((Fun 𝐹 ∧ ∀𝑥𝐴 (𝑥 ∈ dom 𝐹 ∧ (𝐹𝑥) ∈ 𝐵)) → ∀𝑥𝐴 ((𝐹𝐴)‘𝑥) ∈ 𝐵)
26 fnfvrnss 6345 . . . . 5 (((𝐹𝐴) Fn 𝐴 ∧ ∀𝑥𝐴 ((𝐹𝐴)‘𝑥) ∈ 𝐵) → ran (𝐹𝐴) ⊆ 𝐵)
2720, 25, 26syl2anc 692 . . . 4 ((Fun 𝐹 ∧ ∀𝑥𝐴 (𝑥 ∈ dom 𝐹 ∧ (𝐹𝑥) ∈ 𝐵)) → ran (𝐹𝐴) ⊆ 𝐵)
28 df-f 5851 . . . 4 ((𝐹𝐴):𝐴𝐵 ↔ ((𝐹𝐴) Fn 𝐴 ∧ ran (𝐹𝐴) ⊆ 𝐵))
2920, 27, 28sylanbrc 697 . . 3 ((Fun 𝐹 ∧ ∀𝑥𝐴 (𝑥 ∈ dom 𝐹 ∧ (𝐹𝑥) ∈ 𝐵)) → (𝐹𝐴):𝐴𝐵)
3029ex 450 . 2 (Fun 𝐹 → (∀𝑥𝐴 (𝑥 ∈ dom 𝐹 ∧ (𝐹𝑥) ∈ 𝐵) → (𝐹𝐴):𝐴𝐵))
3112, 30impbid2 216 1 (Fun 𝐹 → ((𝐹𝐴):𝐴𝐵 ↔ ∀𝑥𝐴 (𝑥 ∈ dom 𝐹 ∧ (𝐹𝑥) ∈ 𝐵)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 384   = wceq 1480  wcel 1987  wral 2907  cin 3554  wss 3555  dom cdm 5074  ran crn 5075  cres 5076  Fun wfun 5841   Fn wfn 5842  wf 5843  cfv 5847
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-sep 4741  ax-nul 4749  ax-pr 4867
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ral 2912  df-rex 2913  df-rab 2916  df-v 3188  df-sbc 3418  df-dif 3558  df-un 3560  df-in 3562  df-ss 3569  df-nul 3892  df-if 4059  df-sn 4149  df-pr 4151  df-op 4155  df-uni 4403  df-br 4614  df-opab 4674  df-mpt 4675  df-id 4989  df-xp 5080  df-rel 5081  df-cnv 5082  df-co 5083  df-dm 5084  df-rn 5085  df-res 5086  df-iota 5810  df-fun 5849  df-fn 5850  df-f 5851  df-fv 5855
This theorem is referenced by:  lmbr2  20973  lmff  21015  lmmbr2  22965  iscau2  22983  relogbf  24429  sseqf  30235  fourierdlem97  39727
  Copyright terms: Public domain W3C validator