Users' Mathboxes Mathbox for Mario Carneiro < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  msubrn Structured version   Visualization version   GIF version

Theorem msubrn 33470
Description: Although it is defined for partial mappings of variables, every partial substitution is a substitution on some complete mapping of the variables. (Contributed by Mario Carneiro, 18-Jul-2016.)
Hypotheses
Ref Expression
msubff.v 𝑉 = (mVR‘𝑇)
msubff.r 𝑅 = (mREx‘𝑇)
msubff.s 𝑆 = (mSubst‘𝑇)
Assertion
Ref Expression
msubrn ran 𝑆 = (𝑆 “ (𝑅m 𝑉))

Proof of Theorem msubrn
Dummy variables 𝑒 𝑓 𝑔 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 msubff.v . . . . . 6 𝑉 = (mVR‘𝑇)
2 msubff.r . . . . . 6 𝑅 = (mREx‘𝑇)
3 msubff.s . . . . . 6 𝑆 = (mSubst‘𝑇)
4 eqid 2739 . . . . . 6 (mEx‘𝑇) = (mEx‘𝑇)
5 eqid 2739 . . . . . 6 (mRSubst‘𝑇) = (mRSubst‘𝑇)
61, 2, 3, 4, 5msubffval 33464 . . . . 5 (𝑇 ∈ V → 𝑆 = (𝑓 ∈ (𝑅pm 𝑉) ↦ (𝑒 ∈ (mEx‘𝑇) ↦ ⟨(1st𝑒), (((mRSubst‘𝑇)‘𝑓)‘(2nd𝑒))⟩)))
76rneqd 5844 . . . 4 (𝑇 ∈ V → ran 𝑆 = ran (𝑓 ∈ (𝑅pm 𝑉) ↦ (𝑒 ∈ (mEx‘𝑇) ↦ ⟨(1st𝑒), (((mRSubst‘𝑇)‘𝑓)‘(2nd𝑒))⟩)))
81, 2, 5mrsubff 33453 . . . . . . . . . 10 (𝑇 ∈ V → (mRSubst‘𝑇):(𝑅pm 𝑉)⟶(𝑅m 𝑅))
98adantr 480 . . . . . . . . 9 ((𝑇 ∈ V ∧ 𝑓 ∈ (𝑅pm 𝑉)) → (mRSubst‘𝑇):(𝑅pm 𝑉)⟶(𝑅m 𝑅))
109ffund 6600 . . . . . . . 8 ((𝑇 ∈ V ∧ 𝑓 ∈ (𝑅pm 𝑉)) → Fun (mRSubst‘𝑇))
118ffnd 6597 . . . . . . . . . 10 (𝑇 ∈ V → (mRSubst‘𝑇) Fn (𝑅pm 𝑉))
12 fnfvelrn 6952 . . . . . . . . . 10 (((mRSubst‘𝑇) Fn (𝑅pm 𝑉) ∧ 𝑓 ∈ (𝑅pm 𝑉)) → ((mRSubst‘𝑇)‘𝑓) ∈ ran (mRSubst‘𝑇))
1311, 12sylan 579 . . . . . . . . 9 ((𝑇 ∈ V ∧ 𝑓 ∈ (𝑅pm 𝑉)) → ((mRSubst‘𝑇)‘𝑓) ∈ ran (mRSubst‘𝑇))
141, 2, 5mrsubrn 33454 . . . . . . . . 9 ran (mRSubst‘𝑇) = ((mRSubst‘𝑇) “ (𝑅m 𝑉))
1513, 14eleqtrdi 2850 . . . . . . . 8 ((𝑇 ∈ V ∧ 𝑓 ∈ (𝑅pm 𝑉)) → ((mRSubst‘𝑇)‘𝑓) ∈ ((mRSubst‘𝑇) “ (𝑅m 𝑉)))
16 fvelima 6829 . . . . . . . 8 ((Fun (mRSubst‘𝑇) ∧ ((mRSubst‘𝑇)‘𝑓) ∈ ((mRSubst‘𝑇) “ (𝑅m 𝑉))) → ∃𝑔 ∈ (𝑅m 𝑉)((mRSubst‘𝑇)‘𝑔) = ((mRSubst‘𝑇)‘𝑓))
1710, 15, 16syl2anc 583 . . . . . . 7 ((𝑇 ∈ V ∧ 𝑓 ∈ (𝑅pm 𝑉)) → ∃𝑔 ∈ (𝑅m 𝑉)((mRSubst‘𝑇)‘𝑔) = ((mRSubst‘𝑇)‘𝑓))
18 elmapi 8611 . . . . . . . . . . . . 13 (𝑔 ∈ (𝑅m 𝑉) → 𝑔:𝑉𝑅)
1918adantl 481 . . . . . . . . . . . 12 ((𝑇 ∈ V ∧ 𝑔 ∈ (𝑅m 𝑉)) → 𝑔:𝑉𝑅)
20 ssid 3947 . . . . . . . . . . . 12 𝑉𝑉
211, 2, 3, 4, 5msubfval 33465 . . . . . . . . . . . 12 ((𝑔:𝑉𝑅𝑉𝑉) → (𝑆𝑔) = (𝑒 ∈ (mEx‘𝑇) ↦ ⟨(1st𝑒), (((mRSubst‘𝑇)‘𝑔)‘(2nd𝑒))⟩))
2219, 20, 21sylancl 585 . . . . . . . . . . 11 ((𝑇 ∈ V ∧ 𝑔 ∈ (𝑅m 𝑉)) → (𝑆𝑔) = (𝑒 ∈ (mEx‘𝑇) ↦ ⟨(1st𝑒), (((mRSubst‘𝑇)‘𝑔)‘(2nd𝑒))⟩))
23 fvex 6781 . . . . . . . . . . . . . . . 16 (mEx‘𝑇) ∈ V
2423mptex 7093 . . . . . . . . . . . . . . 15 (𝑒 ∈ (mEx‘𝑇) ↦ ⟨(1st𝑒), (((mRSubst‘𝑇)‘𝑓)‘(2nd𝑒))⟩) ∈ V
25 eqid 2739 . . . . . . . . . . . . . . 15 (𝑓 ∈ (𝑅pm 𝑉) ↦ (𝑒 ∈ (mEx‘𝑇) ↦ ⟨(1st𝑒), (((mRSubst‘𝑇)‘𝑓)‘(2nd𝑒))⟩)) = (𝑓 ∈ (𝑅pm 𝑉) ↦ (𝑒 ∈ (mEx‘𝑇) ↦ ⟨(1st𝑒), (((mRSubst‘𝑇)‘𝑓)‘(2nd𝑒))⟩))
2624, 25fnmpti 6572 . . . . . . . . . . . . . 14 (𝑓 ∈ (𝑅pm 𝑉) ↦ (𝑒 ∈ (mEx‘𝑇) ↦ ⟨(1st𝑒), (((mRSubst‘𝑇)‘𝑓)‘(2nd𝑒))⟩)) Fn (𝑅pm 𝑉)
276fneq1d 6522 . . . . . . . . . . . . . 14 (𝑇 ∈ V → (𝑆 Fn (𝑅pm 𝑉) ↔ (𝑓 ∈ (𝑅pm 𝑉) ↦ (𝑒 ∈ (mEx‘𝑇) ↦ ⟨(1st𝑒), (((mRSubst‘𝑇)‘𝑓)‘(2nd𝑒))⟩)) Fn (𝑅pm 𝑉)))
2826, 27mpbiri 257 . . . . . . . . . . . . 13 (𝑇 ∈ V → 𝑆 Fn (𝑅pm 𝑉))
2928adantr 480 . . . . . . . . . . . 12 ((𝑇 ∈ V ∧ 𝑔 ∈ (𝑅m 𝑉)) → 𝑆 Fn (𝑅pm 𝑉))
30 mapsspm 8638 . . . . . . . . . . . . 13 (𝑅m 𝑉) ⊆ (𝑅pm 𝑉)
3130a1i 11 . . . . . . . . . . . 12 ((𝑇 ∈ V ∧ 𝑔 ∈ (𝑅m 𝑉)) → (𝑅m 𝑉) ⊆ (𝑅pm 𝑉))
32 simpr 484 . . . . . . . . . . . 12 ((𝑇 ∈ V ∧ 𝑔 ∈ (𝑅m 𝑉)) → 𝑔 ∈ (𝑅m 𝑉))
33 fnfvima 7103 . . . . . . . . . . . 12 ((𝑆 Fn (𝑅pm 𝑉) ∧ (𝑅m 𝑉) ⊆ (𝑅pm 𝑉) ∧ 𝑔 ∈ (𝑅m 𝑉)) → (𝑆𝑔) ∈ (𝑆 “ (𝑅m 𝑉)))
3429, 31, 32, 33syl3anc 1369 . . . . . . . . . . 11 ((𝑇 ∈ V ∧ 𝑔 ∈ (𝑅m 𝑉)) → (𝑆𝑔) ∈ (𝑆 “ (𝑅m 𝑉)))
3522, 34eqeltrrd 2841 . . . . . . . . . 10 ((𝑇 ∈ V ∧ 𝑔 ∈ (𝑅m 𝑉)) → (𝑒 ∈ (mEx‘𝑇) ↦ ⟨(1st𝑒), (((mRSubst‘𝑇)‘𝑔)‘(2nd𝑒))⟩) ∈ (𝑆 “ (𝑅m 𝑉)))
3635adantlr 711 . . . . . . . . 9 (((𝑇 ∈ V ∧ 𝑓 ∈ (𝑅pm 𝑉)) ∧ 𝑔 ∈ (𝑅m 𝑉)) → (𝑒 ∈ (mEx‘𝑇) ↦ ⟨(1st𝑒), (((mRSubst‘𝑇)‘𝑔)‘(2nd𝑒))⟩) ∈ (𝑆 “ (𝑅m 𝑉)))
37 fveq1 6767 . . . . . . . . . . . 12 (((mRSubst‘𝑇)‘𝑔) = ((mRSubst‘𝑇)‘𝑓) → (((mRSubst‘𝑇)‘𝑔)‘(2nd𝑒)) = (((mRSubst‘𝑇)‘𝑓)‘(2nd𝑒)))
3837opeq2d 4816 . . . . . . . . . . 11 (((mRSubst‘𝑇)‘𝑔) = ((mRSubst‘𝑇)‘𝑓) → ⟨(1st𝑒), (((mRSubst‘𝑇)‘𝑔)‘(2nd𝑒))⟩ = ⟨(1st𝑒), (((mRSubst‘𝑇)‘𝑓)‘(2nd𝑒))⟩)
3938mpteq2dv 5180 . . . . . . . . . 10 (((mRSubst‘𝑇)‘𝑔) = ((mRSubst‘𝑇)‘𝑓) → (𝑒 ∈ (mEx‘𝑇) ↦ ⟨(1st𝑒), (((mRSubst‘𝑇)‘𝑔)‘(2nd𝑒))⟩) = (𝑒 ∈ (mEx‘𝑇) ↦ ⟨(1st𝑒), (((mRSubst‘𝑇)‘𝑓)‘(2nd𝑒))⟩))
4039eleq1d 2824 . . . . . . . . 9 (((mRSubst‘𝑇)‘𝑔) = ((mRSubst‘𝑇)‘𝑓) → ((𝑒 ∈ (mEx‘𝑇) ↦ ⟨(1st𝑒), (((mRSubst‘𝑇)‘𝑔)‘(2nd𝑒))⟩) ∈ (𝑆 “ (𝑅m 𝑉)) ↔ (𝑒 ∈ (mEx‘𝑇) ↦ ⟨(1st𝑒), (((mRSubst‘𝑇)‘𝑓)‘(2nd𝑒))⟩) ∈ (𝑆 “ (𝑅m 𝑉))))
4136, 40syl5ibcom 244 . . . . . . . 8 (((𝑇 ∈ V ∧ 𝑓 ∈ (𝑅pm 𝑉)) ∧ 𝑔 ∈ (𝑅m 𝑉)) → (((mRSubst‘𝑇)‘𝑔) = ((mRSubst‘𝑇)‘𝑓) → (𝑒 ∈ (mEx‘𝑇) ↦ ⟨(1st𝑒), (((mRSubst‘𝑇)‘𝑓)‘(2nd𝑒))⟩) ∈ (𝑆 “ (𝑅m 𝑉))))
4241rexlimdva 3214 . . . . . . 7 ((𝑇 ∈ V ∧ 𝑓 ∈ (𝑅pm 𝑉)) → (∃𝑔 ∈ (𝑅m 𝑉)((mRSubst‘𝑇)‘𝑔) = ((mRSubst‘𝑇)‘𝑓) → (𝑒 ∈ (mEx‘𝑇) ↦ ⟨(1st𝑒), (((mRSubst‘𝑇)‘𝑓)‘(2nd𝑒))⟩) ∈ (𝑆 “ (𝑅m 𝑉))))
4317, 42mpd 15 . . . . . 6 ((𝑇 ∈ V ∧ 𝑓 ∈ (𝑅pm 𝑉)) → (𝑒 ∈ (mEx‘𝑇) ↦ ⟨(1st𝑒), (((mRSubst‘𝑇)‘𝑓)‘(2nd𝑒))⟩) ∈ (𝑆 “ (𝑅m 𝑉)))
4443fmpttd 6983 . . . . 5 (𝑇 ∈ V → (𝑓 ∈ (𝑅pm 𝑉) ↦ (𝑒 ∈ (mEx‘𝑇) ↦ ⟨(1st𝑒), (((mRSubst‘𝑇)‘𝑓)‘(2nd𝑒))⟩)):(𝑅pm 𝑉)⟶(𝑆 “ (𝑅m 𝑉)))
4544frnd 6604 . . . 4 (𝑇 ∈ V → ran (𝑓 ∈ (𝑅pm 𝑉) ↦ (𝑒 ∈ (mEx‘𝑇) ↦ ⟨(1st𝑒), (((mRSubst‘𝑇)‘𝑓)‘(2nd𝑒))⟩)) ⊆ (𝑆 “ (𝑅m 𝑉)))
467, 45eqsstrd 3963 . . 3 (𝑇 ∈ V → ran 𝑆 ⊆ (𝑆 “ (𝑅m 𝑉)))
473rnfvprc 6762 . . . 4 𝑇 ∈ V → ran 𝑆 = ∅)
48 0ss 4335 . . . 4 ∅ ⊆ (𝑆 “ (𝑅m 𝑉))
4947, 48eqsstrdi 3979 . . 3 𝑇 ∈ V → ran 𝑆 ⊆ (𝑆 “ (𝑅m 𝑉)))
5046, 49pm2.61i 182 . 2 ran 𝑆 ⊆ (𝑆 “ (𝑅m 𝑉))
51 imassrn 5977 . 2 (𝑆 “ (𝑅m 𝑉)) ⊆ ran 𝑆
5250, 51eqssi 3941 1 ran 𝑆 = (𝑆 “ (𝑅m 𝑉))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wa 395   = wceq 1541  wcel 2109  wrex 3066  Vcvv 3430  wss 3891  c0 4261  cop 4572  cmpt 5161  ran crn 5589  cima 5591  Fun wfun 6424   Fn wfn 6425  wf 6426  cfv 6430  (class class class)co 7268  1st c1st 7815  2nd c2nd 7816  m cmap 8589  pm cpm 8590  mVRcmvar 33402  mRExcmrex 33407  mExcmex 33408  mRSubstcmrsub 33411  mSubstcmsub 33412
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1801  ax-4 1815  ax-5 1916  ax-6 1974  ax-7 2014  ax-8 2111  ax-9 2119  ax-10 2140  ax-11 2157  ax-12 2174  ax-ext 2710  ax-rep 5213  ax-sep 5226  ax-nul 5233  ax-pow 5291  ax-pr 5355  ax-un 7579  ax-cnex 10911  ax-resscn 10912  ax-1cn 10913  ax-icn 10914  ax-addcl 10915  ax-addrcl 10916  ax-mulcl 10917  ax-mulrcl 10918  ax-mulcom 10919  ax-addass 10920  ax-mulass 10921  ax-distr 10922  ax-i2m1 10923  ax-1ne0 10924  ax-1rid 10925  ax-rnegex 10926  ax-rrecex 10927  ax-cnre 10928  ax-pre-lttri 10929  ax-pre-lttrn 10930  ax-pre-ltadd 10931  ax-pre-mulgt0 10932
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1544  df-fal 1554  df-ex 1786  df-nf 1790  df-sb 2071  df-mo 2541  df-eu 2570  df-clab 2717  df-cleq 2731  df-clel 2817  df-nfc 2890  df-ne 2945  df-nel 3051  df-ral 3070  df-rex 3071  df-reu 3072  df-rmo 3073  df-rab 3074  df-v 3432  df-sbc 3720  df-csb 3837  df-dif 3894  df-un 3896  df-in 3898  df-ss 3908  df-pss 3910  df-nul 4262  df-if 4465  df-pw 4540  df-sn 4567  df-pr 4569  df-tp 4571  df-op 4573  df-uni 4845  df-int 4885  df-iun 4931  df-br 5079  df-opab 5141  df-mpt 5162  df-tr 5196  df-id 5488  df-eprel 5494  df-po 5502  df-so 5503  df-fr 5543  df-we 5545  df-xp 5594  df-rel 5595  df-cnv 5596  df-co 5597  df-dm 5598  df-rn 5599  df-res 5600  df-ima 5601  df-pred 6199  df-ord 6266  df-on 6267  df-lim 6268  df-suc 6269  df-iota 6388  df-fun 6432  df-fn 6433  df-f 6434  df-f1 6435  df-fo 6436  df-f1o 6437  df-fv 6438  df-riota 7225  df-ov 7271  df-oprab 7272  df-mpo 7273  df-om 7701  df-1st 7817  df-2nd 7818  df-frecs 8081  df-wrecs 8112  df-recs 8186  df-rdg 8225  df-1o 8281  df-er 8472  df-map 8591  df-pm 8592  df-en 8708  df-dom 8709  df-sdom 8710  df-fin 8711  df-card 9681  df-pnf 10995  df-mnf 10996  df-xr 10997  df-ltxr 10998  df-le 10999  df-sub 11190  df-neg 11191  df-nn 11957  df-2 12019  df-n0 12217  df-z 12303  df-uz 12565  df-fz 13222  df-fzo 13365  df-seq 13703  df-hash 14026  df-word 14199  df-concat 14255  df-s1 14282  df-struct 16829  df-sets 16846  df-slot 16864  df-ndx 16876  df-base 16894  df-ress 16923  df-plusg 16956  df-0g 17133  df-gsum 17134  df-mgm 18307  df-sgrp 18356  df-mnd 18367  df-submnd 18412  df-frmd 18469  df-mrex 33427  df-mrsub 33431  df-msub 33432
This theorem is referenced by:  msubff1o  33498
  Copyright terms: Public domain W3C validator