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

Theorem fveqressseq 6957
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 6956 . . 3 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵 ∧ ∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥)) → 𝐷 ⊆ dom 𝐴)
3 dmres 5913 . . . . 5 dom (𝐴𝐷) = (𝐷 ∩ dom 𝐴)
4 incom 4135 . . . . . 6 (𝐷 ∩ dom 𝐴) = (dom 𝐴𝐷)
5 sseqin2 4149 . . . . . . 7 (𝐷 ⊆ dom 𝐴 ↔ (dom 𝐴𝐷) = 𝐷)
65biimpi 215 . . . . . 6 (𝐷 ⊆ dom 𝐴 → (dom 𝐴𝐷) = 𝐷)
74, 6eqtrid 2790 . . . . 5 (𝐷 ⊆ dom 𝐴 → (𝐷 ∩ dom 𝐴) = 𝐷)
83, 7eqtrid 2790 . . . 4 (𝐷 ⊆ dom 𝐴 → dom (𝐴𝐷) = 𝐷)
98, 1eqtrdi 2794 . . 3 (𝐷 ⊆ dom 𝐴 → dom (𝐴𝐷) = dom 𝐵)
102, 9syl 17 . 2 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵 ∧ ∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥)) → dom (𝐴𝐷) = dom 𝐵)
11 fvres 6793 . . . . . . . 8 (𝑥𝐷 → ((𝐴𝐷)‘𝑥) = (𝐴𝑥))
1211adantl 482 . . . . . . 7 (((Fun 𝐵 ∧ ∅ ∉ ran 𝐵) ∧ 𝑥𝐷) → ((𝐴𝐷)‘𝑥) = (𝐴𝑥))
13 id 22 . . . . . . 7 ((𝐴𝑥) = (𝐵𝑥) → (𝐴𝑥) = (𝐵𝑥))
1412, 13sylan9eq 2798 . . . . . 6 ((((Fun 𝐵 ∧ ∅ ∉ ran 𝐵) ∧ 𝑥𝐷) ∧ (𝐴𝑥) = (𝐵𝑥)) → ((𝐴𝐷)‘𝑥) = (𝐵𝑥))
1514ex 413 . . . . 5 (((Fun 𝐵 ∧ ∅ ∉ ran 𝐵) ∧ 𝑥𝐷) → ((𝐴𝑥) = (𝐵𝑥) → ((𝐴𝐷)‘𝑥) = (𝐵𝑥)))
1615ralimdva 3108 . . . 4 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵) → (∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥) → ∀𝑥𝐷 ((𝐴𝐷)‘𝑥) = (𝐵𝑥)))
17163impia 1116 . . 3 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵 ∧ ∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥)) → ∀𝑥𝐷 ((𝐴𝐷)‘𝑥) = (𝐵𝑥))
182, 7syl 17 . . . . 5 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵 ∧ ∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥)) → (𝐷 ∩ dom 𝐴) = 𝐷)
193, 18eqtrid 2790 . . . 4 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵 ∧ ∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥)) → dom (𝐴𝐷) = 𝐷)
2019raleqdv 3348 . . 3 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵 ∧ ∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥)) → (∀𝑥 ∈ dom (𝐴𝐷)((𝐴𝐷)‘𝑥) = (𝐵𝑥) ↔ ∀𝑥𝐷 ((𝐴𝐷)‘𝑥) = (𝐵𝑥)))
2117, 20mpbird 256 . 2 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵 ∧ ∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥)) → ∀𝑥 ∈ dom (𝐴𝐷)((𝐴𝐷)‘𝑥) = (𝐵𝑥))
22 simpll 764 . . . . . . . 8 (((Fun 𝐵 ∧ ∅ ∉ ran 𝐵) ∧ 𝑥𝐷) → Fun 𝐵)
231eleq2i 2830 . . . . . . . . . 10 (𝑥𝐷𝑥 ∈ dom 𝐵)
2423biimpi 215 . . . . . . . . 9 (𝑥𝐷𝑥 ∈ dom 𝐵)
2524adantl 482 . . . . . . . 8 (((Fun 𝐵 ∧ ∅ ∉ ran 𝐵) ∧ 𝑥𝐷) → 𝑥 ∈ dom 𝐵)
26 simplr 766 . . . . . . . 8 (((Fun 𝐵 ∧ ∅ ∉ ran 𝐵) ∧ 𝑥𝐷) → ∅ ∉ ran 𝐵)
27 nelrnfvne 6955 . . . . . . . 8 ((Fun 𝐵𝑥 ∈ dom 𝐵 ∧ ∅ ∉ ran 𝐵) → (𝐵𝑥) ≠ ∅)
2822, 25, 26, 27syl3anc 1370 . . . . . . 7 (((Fun 𝐵 ∧ ∅ ∉ ran 𝐵) ∧ 𝑥𝐷) → (𝐵𝑥) ≠ ∅)
29 neeq1 3006 . . . . . . 7 ((𝐴𝑥) = (𝐵𝑥) → ((𝐴𝑥) ≠ ∅ ↔ (𝐵𝑥) ≠ ∅))
3028, 29syl5ibrcom 246 . . . . . 6 (((Fun 𝐵 ∧ ∅ ∉ ran 𝐵) ∧ 𝑥𝐷) → ((𝐴𝑥) = (𝐵𝑥) → (𝐴𝑥) ≠ ∅))
3130ralimdva 3108 . . . . 5 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵) → (∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥) → ∀𝑥𝐷 (𝐴𝑥) ≠ ∅))
32313impia 1116 . . . 4 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵 ∧ ∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥)) → ∀𝑥𝐷 (𝐴𝑥) ≠ ∅)
33 fvn0ssdmfun 6952 . . . . 5 (∀𝑥𝐷 (𝐴𝑥) ≠ ∅ → (𝐷 ⊆ dom 𝐴 ∧ Fun (𝐴𝐷)))
3433simprd 496 . . . 4 (∀𝑥𝐷 (𝐴𝑥) ≠ ∅ → Fun (𝐴𝐷))
3532, 34syl 17 . . 3 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵 ∧ ∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥)) → Fun (𝐴𝐷))
36 simp1 1135 . . 3 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵 ∧ ∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥)) → Fun 𝐵)
37 eqfunfv 6914 . . 3 ((Fun (𝐴𝐷) ∧ Fun 𝐵) → ((𝐴𝐷) = 𝐵 ↔ (dom (𝐴𝐷) = dom 𝐵 ∧ ∀𝑥 ∈ dom (𝐴𝐷)((𝐴𝐷)‘𝑥) = (𝐵𝑥))))
3835, 36, 37syl2anc 584 . 2 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵 ∧ ∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥)) → ((𝐴𝐷) = 𝐵 ↔ (dom (𝐴𝐷) = dom 𝐵 ∧ ∀𝑥 ∈ dom (𝐴𝐷)((𝐴𝐷)‘𝑥) = (𝐵𝑥))))
3910, 21, 38mpbir2and 710 1 ((Fun 𝐵 ∧ ∅ ∉ ran 𝐵 ∧ ∀𝑥𝐷 (𝐴𝑥) = (𝐵𝑥)) → (𝐴𝐷) = 𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  w3a 1086   = wceq 1539  wcel 2106  wne 2943  wnel 3049  wral 3064  cin 3886  wss 3887  c0 4256  dom cdm 5589  ran crn 5590  cres 5591  Fun wfun 6427  cfv 6433
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-nel 3050  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-iota 6391  df-fun 6435  df-fn 6436  df-fv 6441
This theorem is referenced by:  plusfreseq  45326
  Copyright terms: Public domain W3C validator