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

Theorem fveqressseq 6939
Description: If the empty set is not contained in the range of a function, and the function values of another class (not necessarily a function) are equal to the function values of the function for all elements of the domain of the function, then the class restricted to the domain of the function is the function itself. (Contributed by AV, 28-Jan-2020.)
Hypothesis
Ref Expression
fveqdmss.1 𝐷 = dom 𝐵
Assertion
Ref Expression
fveqressseq ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵 ∧ ∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥)) → (𝐴𝐷) = 𝐵)
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵   𝑥,𝐷

Proof of Theorem fveqressseq
StepHypRef Expression
1 fveqdmss.1 . . . 4 𝐷 = dom 𝐵
21fveqdmss 6938 . . 3 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵 ∧ ∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥)) → 𝐷 ⊆ dom 𝐴)
3 dmres 5902 . . . . 5 dom (𝐴𝐷) = (𝐷 ∩ dom 𝐴)
4 incom 4131 . . . . . 6 (𝐷 ∩ dom 𝐴) = (dom 𝐴𝐷)
5 sseqin2 4146 . . . . . . 7 (𝐷 ⊆ dom 𝐴 ↔ (dom 𝐴𝐷) = 𝐷)
65biimpi 215 . . . . . 6 (𝐷 ⊆ dom 𝐴 → (dom 𝐴𝐷) = 𝐷)
74, 6eqtrid 2790 . . . . 5 (𝐷 ⊆ dom 𝐴 → (𝐷 ∩ dom 𝐴) = 𝐷)
83, 7eqtrid 2790 . . . 4 (𝐷 ⊆ dom 𝐴 → dom (𝐴𝐷) = 𝐷)
98, 1eqtrdi 2795 . . 3 (𝐷 ⊆ dom 𝐴 → dom (𝐴𝐷) = dom 𝐵)
102, 9syl 17 . 2 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵 ∧ ∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥)) → dom (𝐴𝐷) = dom 𝐵)
11 fvres 6775 . . . . . . . 8 (𝑥𝐷 → ((𝐴𝐷)‘𝑥) = (𝐴𝑥))
1211adantl 481 . . . . . . 7 (((Fun 𝐵 ∧ ∅ ∉ ran 𝐵) ∧ 𝑥𝐷) → ((𝐴𝐷)‘𝑥) = (𝐴𝑥))
13 id 22 . . . . . . 7 ((𝐴𝑥) = (𝐵𝑥) → (𝐴𝑥) = (𝐵𝑥))
1412, 13sylan9eq 2799 . . . . . 6 ((((Fun 𝐵 ∧ ∅ ∉ ran 𝐵) ∧ 𝑥𝐷) ∧ (𝐴𝑥) = (𝐵𝑥)) → ((𝐴𝐷)‘𝑥) = (𝐵𝑥))
1514ex 412 . . . . 5 (((Fun 𝐵 ∧ ∅ ∉ ran 𝐵) ∧ 𝑥𝐷) → ((𝐴𝑥) = (𝐵𝑥) → ((𝐴𝐷)‘𝑥) = (𝐵𝑥)))
1615ralimdva 3102 . . . 4 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵) → (∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥) → ∀𝑥𝐷 ((𝐴𝐷)‘𝑥) = (𝐵𝑥)))
17163impia 1115 . . 3 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵 ∧ ∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥)) → ∀𝑥𝐷 ((𝐴𝐷)‘𝑥) = (𝐵𝑥))
182, 7syl 17 . . . . 5 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵 ∧ ∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥)) → (𝐷 ∩ dom 𝐴) = 𝐷)
193, 18eqtrid 2790 . . . 4 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵 ∧ ∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥)) → dom (𝐴𝐷) = 𝐷)
2019raleqdv 3339 . . 3 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵 ∧ ∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥)) → (∀𝑥 ∈ dom (𝐴𝐷)((𝐴𝐷)‘𝑥) = (𝐵𝑥) ↔ ∀𝑥𝐷 ((𝐴𝐷)‘𝑥) = (𝐵𝑥)))
2117, 20mpbird 256 . 2 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵 ∧ ∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥)) → ∀𝑥 ∈ dom (𝐴𝐷)((𝐴𝐷)‘𝑥) = (𝐵𝑥))
22 simpll 763 . . . . . . . 8 (((Fun 𝐵 ∧ ∅ ∉ ran 𝐵) ∧ 𝑥𝐷) → Fun 𝐵)
231eleq2i 2830 . . . . . . . . . 10 (𝑥𝐷𝑥 ∈ dom 𝐵)
2423biimpi 215 . . . . . . . . 9 (𝑥𝐷𝑥 ∈ dom 𝐵)
2524adantl 481 . . . . . . . 8 (((Fun 𝐵 ∧ ∅ ∉ ran 𝐵) ∧ 𝑥𝐷) → 𝑥 ∈ dom 𝐵)
26 simplr 765 . . . . . . . 8 (((Fun 𝐵 ∧ ∅ ∉ ran 𝐵) ∧ 𝑥𝐷) → ∅ ∉ ran 𝐵)
27 nelrnfvne 6937 . . . . . . . 8 ((Fun 𝐵𝑥 ∈ dom 𝐵 ∧ ∅ ∉ ran 𝐵) → (𝐵𝑥) ≠ ∅)
2822, 25, 26, 27syl3anc 1369 . . . . . . 7 (((Fun 𝐵 ∧ ∅ ∉ ran 𝐵) ∧ 𝑥𝐷) → (𝐵𝑥) ≠ ∅)
29 neeq1 3005 . . . . . . 7 ((𝐴𝑥) = (𝐵𝑥) → ((𝐴𝑥) ≠ ∅ ↔ (𝐵𝑥) ≠ ∅))
3028, 29syl5ibrcom 246 . . . . . 6 (((Fun 𝐵 ∧ ∅ ∉ ran 𝐵) ∧ 𝑥𝐷) → ((𝐴𝑥) = (𝐵𝑥) → (𝐴𝑥) ≠ ∅))
3130ralimdva 3102 . . . . 5 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵) → (∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥) → ∀𝑥𝐷 (𝐴𝑥) ≠ ∅))
32313impia 1115 . . . 4 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵 ∧ ∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥)) → ∀𝑥𝐷 (𝐴𝑥) ≠ ∅)
33 fvn0ssdmfun 6934 . . . . 5 (∀𝑥𝐷 (𝐴𝑥) ≠ ∅ → (𝐷 ⊆ dom 𝐴 ∧ Fun (𝐴𝐷)))
3433simprd 495 . . . 4 (∀𝑥𝐷 (𝐴𝑥) ≠ ∅ → Fun (𝐴𝐷))
3532, 34syl 17 . . 3 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵 ∧ ∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥)) → Fun (𝐴𝐷))
36 simp1 1134 . . 3 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵 ∧ ∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥)) → Fun 𝐵)
37 eqfunfv 6896 . . 3 ((Fun (𝐴𝐷) ∧ Fun 𝐵) → ((𝐴𝐷) = 𝐵 ↔ (dom (𝐴𝐷) = dom 𝐵 ∧ ∀𝑥 ∈ dom (𝐴𝐷)((𝐴𝐷)‘𝑥) = (𝐵𝑥))))
3835, 36, 37syl2anc 583 . 2 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵 ∧ ∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥)) → ((𝐴𝐷) = 𝐵 ↔ (dom (𝐴𝐷) = dom 𝐵 ∧ ∀𝑥 ∈ dom (𝐴𝐷)((𝐴𝐷)‘𝑥) = (𝐵𝑥))))
3910, 21, 38mpbir2and 709 1 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵 ∧ ∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥)) → (𝐴𝐷) = 𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  w3a 1085   = wceq 1539  wcel 2108  wne 2942  wnel 3048  wral 3063  cin 3882  wss 3883  c0 4253  dom cdm 5580  ran crn 5581  cres 5582  Fun wfun 6412  cfv 6418
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-fv 6426
This theorem is referenced by:  plusfreseq  45214
  Copyright terms: Public domain W3C validator