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

Theorem msubvrs 33422
Description: The set of variables in a substitution is the union, indexed by the variables in the original expression, of the variables in the substitution to that variable. (Contributed by Mario Carneiro, 18-Jul-2016.)
Hypotheses
Ref Expression
msubvrs.s 𝑆 = (mSubst‘𝑇)
msubvrs.e 𝐸 = (mEx‘𝑇)
msubvrs.v 𝑉 = (mVars‘𝑇)
msubvrs.h 𝐻 = (mVH‘𝑇)
Assertion
Ref Expression
msubvrs ((𝑇 ∈ mFS ∧ 𝐹 ∈ ran 𝑆𝑋𝐸) → (𝑉‘(𝐹𝑋)) = 𝑥 ∈ (𝑉𝑋)(𝑉‘(𝐹‘(𝐻𝑥))))
Distinct variable groups:   𝑥,𝐸   𝑥,𝐹   𝑥,𝑇   𝑥,𝑋   𝑥,𝑉
Allowed substitution hints:   𝑆(𝑥)   𝐻(𝑥)

Proof of Theorem msubvrs
Dummy variables 𝑒 𝑓 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 msubvrs.e . . . . . 6 𝐸 = (mEx‘𝑇)
2 eqid 2738 . . . . . 6 (mRSubst‘𝑇) = (mRSubst‘𝑇)
3 msubvrs.s . . . . . 6 𝑆 = (mSubst‘𝑇)
41, 2, 3elmsubrn 33390 . . . . 5 ran 𝑆 = ran (𝑓 ∈ ran (mRSubst‘𝑇) ↦ (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩))
54eleq2i 2830 . . . 4 (𝐹 ∈ ran 𝑆𝐹 ∈ ran (𝑓 ∈ ran (mRSubst‘𝑇) ↦ (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)))
6 eqid 2738 . . . . 5 (𝑓 ∈ ran (mRSubst‘𝑇) ↦ (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)) = (𝑓 ∈ ran (mRSubst‘𝑇) ↦ (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩))
71fvexi 6770 . . . . . 6 𝐸 ∈ V
87mptex 7081 . . . . 5 (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) ∈ V
96, 8elrnmpti 5858 . . . 4 (𝐹 ∈ ran (𝑓 ∈ ran (mRSubst‘𝑇) ↦ (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)) ↔ ∃𝑓 ∈ ran (mRSubst‘𝑇)𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩))
105, 9bitri 274 . . 3 (𝐹 ∈ ran 𝑆 ↔ ∃𝑓 ∈ ran (mRSubst‘𝑇)𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩))
11 simp2 1135 . . . . . . . . 9 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → 𝑓 ∈ ran (mRSubst‘𝑇))
12 simp3 1136 . . . . . . . . . . 11 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → 𝑋𝐸)
13 eqid 2738 . . . . . . . . . . . 12 (mTC‘𝑇) = (mTC‘𝑇)
14 eqid 2738 . . . . . . . . . . . 12 (mREx‘𝑇) = (mREx‘𝑇)
1513, 1, 14mexval 33364 . . . . . . . . . . 11 𝐸 = ((mTC‘𝑇) × (mREx‘𝑇))
1612, 15eleqtrdi 2849 . . . . . . . . . 10 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → 𝑋 ∈ ((mTC‘𝑇) × (mREx‘𝑇)))
17 xp2nd 7837 . . . . . . . . . 10 (𝑋 ∈ ((mTC‘𝑇) × (mREx‘𝑇)) → (2nd𝑋) ∈ (mREx‘𝑇))
1816, 17syl 17 . . . . . . . . 9 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (2nd𝑋) ∈ (mREx‘𝑇))
19 eqid 2738 . . . . . . . . . 10 (mVR‘𝑇) = (mVR‘𝑇)
202, 19, 14mrsubvrs 33384 . . . . . . . . 9 ((𝑓 ∈ ran (mRSubst‘𝑇) ∧ (2nd𝑋) ∈ (mREx‘𝑇)) → (ran (𝑓‘(2nd𝑋)) ∩ (mVR‘𝑇)) = 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))(ran (𝑓‘⟨“𝑥”⟩) ∩ (mVR‘𝑇)))
2111, 18, 20syl2anc 583 . . . . . . . 8 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (ran (𝑓‘(2nd𝑋)) ∩ (mVR‘𝑇)) = 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))(ran (𝑓‘⟨“𝑥”⟩) ∩ (mVR‘𝑇)))
22 fveq2 6756 . . . . . . . . . . . . 13 (𝑒 = 𝑋 → (1st𝑒) = (1st𝑋))
23 2fveq3 6761 . . . . . . . . . . . . 13 (𝑒 = 𝑋 → (𝑓‘(2nd𝑒)) = (𝑓‘(2nd𝑋)))
2422, 23opeq12d 4809 . . . . . . . . . . . 12 (𝑒 = 𝑋 → ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩ = ⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩)
25 eqid 2738 . . . . . . . . . . . 12 (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)
26 opex 5373 . . . . . . . . . . . 12 ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩ ∈ V
2724, 25, 26fvmpt3i 6862 . . . . . . . . . . 11 (𝑋𝐸 → ((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘𝑋) = ⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩)
2812, 27syl 17 . . . . . . . . . 10 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → ((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘𝑋) = ⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩)
2928fveq2d 6760 . . . . . . . . 9 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘𝑋)) = (𝑉‘⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩))
30 xp1st 7836 . . . . . . . . . . . . 13 (𝑋 ∈ ((mTC‘𝑇) × (mREx‘𝑇)) → (1st𝑋) ∈ (mTC‘𝑇))
3116, 30syl 17 . . . . . . . . . . . 12 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (1st𝑋) ∈ (mTC‘𝑇))
322, 14mrsubf 33379 . . . . . . . . . . . . . 14 (𝑓 ∈ ran (mRSubst‘𝑇) → 𝑓:(mREx‘𝑇)⟶(mREx‘𝑇))
3311, 32syl 17 . . . . . . . . . . . . 13 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → 𝑓:(mREx‘𝑇)⟶(mREx‘𝑇))
3417, 15eleq2s 2857 . . . . . . . . . . . . . 14 (𝑋𝐸 → (2nd𝑋) ∈ (mREx‘𝑇))
3512, 34syl 17 . . . . . . . . . . . . 13 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (2nd𝑋) ∈ (mREx‘𝑇))
3633, 35ffvelrnd 6944 . . . . . . . . . . . 12 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (𝑓‘(2nd𝑋)) ∈ (mREx‘𝑇))
37 opelxpi 5617 . . . . . . . . . . . 12 (((1st𝑋) ∈ (mTC‘𝑇) ∧ (𝑓‘(2nd𝑋)) ∈ (mREx‘𝑇)) → ⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩ ∈ ((mTC‘𝑇) × (mREx‘𝑇)))
3831, 36, 37syl2anc 583 . . . . . . . . . . 11 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → ⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩ ∈ ((mTC‘𝑇) × (mREx‘𝑇)))
3938, 15eleqtrrdi 2850 . . . . . . . . . 10 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → ⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩ ∈ 𝐸)
40 msubvrs.v . . . . . . . . . . 11 𝑉 = (mVars‘𝑇)
4119, 1, 40mvrsval 33367 . . . . . . . . . 10 (⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩ ∈ 𝐸 → (𝑉‘⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩) = (ran (2nd ‘⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩) ∩ (mVR‘𝑇)))
4239, 41syl 17 . . . . . . . . 9 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (𝑉‘⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩) = (ran (2nd ‘⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩) ∩ (mVR‘𝑇)))
43 fvex 6769 . . . . . . . . . . . . 13 (1st𝑋) ∈ V
44 fvex 6769 . . . . . . . . . . . . 13 (𝑓‘(2nd𝑋)) ∈ V
4543, 44op2nd 7813 . . . . . . . . . . . 12 (2nd ‘⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩) = (𝑓‘(2nd𝑋))
4645a1i 11 . . . . . . . . . . 11 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (2nd ‘⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩) = (𝑓‘(2nd𝑋)))
4746rneqd 5836 . . . . . . . . . 10 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → ran (2nd ‘⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩) = ran (𝑓‘(2nd𝑋)))
4847ineq1d 4142 . . . . . . . . 9 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (ran (2nd ‘⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩) ∩ (mVR‘𝑇)) = (ran (𝑓‘(2nd𝑋)) ∩ (mVR‘𝑇)))
4929, 42, 483eqtrd 2782 . . . . . . . 8 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘𝑋)) = (ran (𝑓‘(2nd𝑋)) ∩ (mVR‘𝑇)))
5019, 1, 40mvrsval 33367 . . . . . . . . . . 11 (𝑋𝐸 → (𝑉𝑋) = (ran (2nd𝑋) ∩ (mVR‘𝑇)))
5112, 50syl 17 . . . . . . . . . 10 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (𝑉𝑋) = (ran (2nd𝑋) ∩ (mVR‘𝑇)))
5251iuneq1d 4948 . . . . . . . . 9 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → 𝑥 ∈ (𝑉𝑋)(𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥))) = 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))(𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥))))
53 msubvrs.h . . . . . . . . . . . . . . . . 17 𝐻 = (mVH‘𝑇)
5419, 1, 53mvhf 33420 . . . . . . . . . . . . . . . 16 (𝑇 ∈ mFS → 𝐻:(mVR‘𝑇)⟶𝐸)
55543ad2ant1 1131 . . . . . . . . . . . . . . 15 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → 𝐻:(mVR‘𝑇)⟶𝐸)
56 inss2 4160 . . . . . . . . . . . . . . . 16 (ran (2nd𝑋) ∩ (mVR‘𝑇)) ⊆ (mVR‘𝑇)
5756sseli 3913 . . . . . . . . . . . . . . 15 (𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇)) → 𝑥 ∈ (mVR‘𝑇))
58 ffvelrn 6941 . . . . . . . . . . . . . . 15 ((𝐻:(mVR‘𝑇)⟶𝐸𝑥 ∈ (mVR‘𝑇)) → (𝐻𝑥) ∈ 𝐸)
5955, 57, 58syl2an 595 . . . . . . . . . . . . . 14 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (𝐻𝑥) ∈ 𝐸)
60 fveq2 6756 . . . . . . . . . . . . . . . 16 (𝑒 = (𝐻𝑥) → (1st𝑒) = (1st ‘(𝐻𝑥)))
61 2fveq3 6761 . . . . . . . . . . . . . . . 16 (𝑒 = (𝐻𝑥) → (𝑓‘(2nd𝑒)) = (𝑓‘(2nd ‘(𝐻𝑥))))
6260, 61opeq12d 4809 . . . . . . . . . . . . . . 15 (𝑒 = (𝐻𝑥) → ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩ = ⟨(1st ‘(𝐻𝑥)), (𝑓‘(2nd ‘(𝐻𝑥)))⟩)
6362, 25, 26fvmpt3i 6862 . . . . . . . . . . . . . 14 ((𝐻𝑥) ∈ 𝐸 → ((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥)) = ⟨(1st ‘(𝐻𝑥)), (𝑓‘(2nd ‘(𝐻𝑥)))⟩)
6459, 63syl 17 . . . . . . . . . . . . 13 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → ((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥)) = ⟨(1st ‘(𝐻𝑥)), (𝑓‘(2nd ‘(𝐻𝑥)))⟩)
6557adantl 481 . . . . . . . . . . . . . . . 16 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → 𝑥 ∈ (mVR‘𝑇))
66 eqid 2738 . . . . . . . . . . . . . . . . 17 (mType‘𝑇) = (mType‘𝑇)
6719, 66, 53mvhval 33396 . . . . . . . . . . . . . . . 16 (𝑥 ∈ (mVR‘𝑇) → (𝐻𝑥) = ⟨((mType‘𝑇)‘𝑥), ⟨“𝑥”⟩⟩)
6865, 67syl 17 . . . . . . . . . . . . . . 15 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (𝐻𝑥) = ⟨((mType‘𝑇)‘𝑥), ⟨“𝑥”⟩⟩)
69 fvex 6769 . . . . . . . . . . . . . . . 16 ((mType‘𝑇)‘𝑥) ∈ V
70 s1cli 14238 . . . . . . . . . . . . . . . . 17 ⟨“𝑥”⟩ ∈ Word V
7170elexi 3441 . . . . . . . . . . . . . . . 16 ⟨“𝑥”⟩ ∈ V
7269, 71op1std 7814 . . . . . . . . . . . . . . 15 ((𝐻𝑥) = ⟨((mType‘𝑇)‘𝑥), ⟨“𝑥”⟩⟩ → (1st ‘(𝐻𝑥)) = ((mType‘𝑇)‘𝑥))
7368, 72syl 17 . . . . . . . . . . . . . 14 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (1st ‘(𝐻𝑥)) = ((mType‘𝑇)‘𝑥))
7469, 71op2ndd 7815 . . . . . . . . . . . . . . . 16 ((𝐻𝑥) = ⟨((mType‘𝑇)‘𝑥), ⟨“𝑥”⟩⟩ → (2nd ‘(𝐻𝑥)) = ⟨“𝑥”⟩)
7568, 74syl 17 . . . . . . . . . . . . . . 15 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (2nd ‘(𝐻𝑥)) = ⟨“𝑥”⟩)
7675fveq2d 6760 . . . . . . . . . . . . . 14 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (𝑓‘(2nd ‘(𝐻𝑥))) = (𝑓‘⟨“𝑥”⟩))
7773, 76opeq12d 4809 . . . . . . . . . . . . 13 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → ⟨(1st ‘(𝐻𝑥)), (𝑓‘(2nd ‘(𝐻𝑥)))⟩ = ⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩)
7864, 77eqtrd 2778 . . . . . . . . . . . 12 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → ((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥)) = ⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩)
7978fveq2d 6760 . . . . . . . . . . 11 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥))) = (𝑉‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩))
80 simpl1 1189 . . . . . . . . . . . . . . . 16 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → 𝑇 ∈ mFS)
8119, 13, 66mtyf2 33413 . . . . . . . . . . . . . . . 16 (𝑇 ∈ mFS → (mType‘𝑇):(mVR‘𝑇)⟶(mTC‘𝑇))
8280, 81syl 17 . . . . . . . . . . . . . . 15 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (mType‘𝑇):(mVR‘𝑇)⟶(mTC‘𝑇))
8382, 65ffvelrnd 6944 . . . . . . . . . . . . . 14 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → ((mType‘𝑇)‘𝑥) ∈ (mTC‘𝑇))
8433adantr 480 . . . . . . . . . . . . . . 15 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → 𝑓:(mREx‘𝑇)⟶(mREx‘𝑇))
85 elun2 4107 . . . . . . . . . . . . . . . . . 18 (𝑥 ∈ (mVR‘𝑇) → 𝑥 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)))
8665, 85syl 17 . . . . . . . . . . . . . . . . 17 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → 𝑥 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)))
8786s1cld 14236 . . . . . . . . . . . . . . . 16 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → ⟨“𝑥”⟩ ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
88 eqid 2738 . . . . . . . . . . . . . . . . . 18 (mCN‘𝑇) = (mCN‘𝑇)
8988, 19, 14mrexval 33363 . . . . . . . . . . . . . . . . 17 (𝑇 ∈ mFS → (mREx‘𝑇) = Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
9080, 89syl 17 . . . . . . . . . . . . . . . 16 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (mREx‘𝑇) = Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
9187, 90eleqtrrd 2842 . . . . . . . . . . . . . . 15 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → ⟨“𝑥”⟩ ∈ (mREx‘𝑇))
9284, 91ffvelrnd 6944 . . . . . . . . . . . . . 14 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (𝑓‘⟨“𝑥”⟩) ∈ (mREx‘𝑇))
93 opelxpi 5617 . . . . . . . . . . . . . 14 ((((mType‘𝑇)‘𝑥) ∈ (mTC‘𝑇) ∧ (𝑓‘⟨“𝑥”⟩) ∈ (mREx‘𝑇)) → ⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩ ∈ ((mTC‘𝑇) × (mREx‘𝑇)))
9483, 92, 93syl2anc 583 . . . . . . . . . . . . 13 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → ⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩ ∈ ((mTC‘𝑇) × (mREx‘𝑇)))
9594, 15eleqtrrdi 2850 . . . . . . . . . . . 12 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → ⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩ ∈ 𝐸)
9619, 1, 40mvrsval 33367 . . . . . . . . . . . 12 (⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩ ∈ 𝐸 → (𝑉‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩) = (ran (2nd ‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩) ∩ (mVR‘𝑇)))
9795, 96syl 17 . . . . . . . . . . 11 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (𝑉‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩) = (ran (2nd ‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩) ∩ (mVR‘𝑇)))
98 fvex 6769 . . . . . . . . . . . . . . 15 (𝑓‘⟨“𝑥”⟩) ∈ V
9969, 98op2nd 7813 . . . . . . . . . . . . . 14 (2nd ‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩) = (𝑓‘⟨“𝑥”⟩)
10099a1i 11 . . . . . . . . . . . . 13 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (2nd ‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩) = (𝑓‘⟨“𝑥”⟩))
101100rneqd 5836 . . . . . . . . . . . 12 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → ran (2nd ‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩) = ran (𝑓‘⟨“𝑥”⟩))
102101ineq1d 4142 . . . . . . . . . . 11 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (ran (2nd ‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩) ∩ (mVR‘𝑇)) = (ran (𝑓‘⟨“𝑥”⟩) ∩ (mVR‘𝑇)))
10379, 97, 1023eqtrd 2782 . . . . . . . . . 10 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥))) = (ran (𝑓‘⟨“𝑥”⟩) ∩ (mVR‘𝑇)))
104103iuneq2dv 4945 . . . . . . . . 9 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))(𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥))) = 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))(ran (𝑓‘⟨“𝑥”⟩) ∩ (mVR‘𝑇)))
10552, 104eqtrd 2778 . . . . . . . 8 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → 𝑥 ∈ (𝑉𝑋)(𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥))) = 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))(ran (𝑓‘⟨“𝑥”⟩) ∩ (mVR‘𝑇)))
10621, 49, 1053eqtr4d 2788 . . . . . . 7 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘𝑋)) = 𝑥 ∈ (𝑉𝑋)(𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥))))
107 fveq1 6755 . . . . . . . . 9 (𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) → (𝐹𝑋) = ((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘𝑋))
108107fveq2d 6760 . . . . . . . 8 (𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) → (𝑉‘(𝐹𝑋)) = (𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘𝑋)))
109 fveq1 6755 . . . . . . . . . 10 (𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) → (𝐹‘(𝐻𝑥)) = ((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥)))
110109fveq2d 6760 . . . . . . . . 9 (𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) → (𝑉‘(𝐹‘(𝐻𝑥))) = (𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥))))
111110iuneq2d 4950 . . . . . . . 8 (𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) → 𝑥 ∈ (𝑉𝑋)(𝑉‘(𝐹‘(𝐻𝑥))) = 𝑥 ∈ (𝑉𝑋)(𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥))))
112108, 111eqeq12d 2754 . . . . . . 7 (𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) → ((𝑉‘(𝐹𝑋)) = 𝑥 ∈ (𝑉𝑋)(𝑉‘(𝐹‘(𝐻𝑥))) ↔ (𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘𝑋)) = 𝑥 ∈ (𝑉𝑋)(𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥)))))
113106, 112syl5ibrcom 246 . . . . . 6 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) → (𝑉‘(𝐹𝑋)) = 𝑥 ∈ (𝑉𝑋)(𝑉‘(𝐹‘(𝐻𝑥)))))
1141133expia 1119 . . . . 5 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇)) → (𝑋𝐸 → (𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) → (𝑉‘(𝐹𝑋)) = 𝑥 ∈ (𝑉𝑋)(𝑉‘(𝐹‘(𝐻𝑥))))))
115114com23 86 . . . 4 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇)) → (𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) → (𝑋𝐸 → (𝑉‘(𝐹𝑋)) = 𝑥 ∈ (𝑉𝑋)(𝑉‘(𝐹‘(𝐻𝑥))))))
116115rexlimdva 3212 . . 3 (𝑇 ∈ mFS → (∃𝑓 ∈ ran (mRSubst‘𝑇)𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) → (𝑋𝐸 → (𝑉‘(𝐹𝑋)) = 𝑥 ∈ (𝑉𝑋)(𝑉‘(𝐹‘(𝐻𝑥))))))
11710, 116syl5bi 241 . 2 (𝑇 ∈ mFS → (𝐹 ∈ ran 𝑆 → (𝑋𝐸 → (𝑉‘(𝐹𝑋)) = 𝑥 ∈ (𝑉𝑋)(𝑉‘(𝐹‘(𝐻𝑥))))))
1181173imp 1109 1 ((𝑇 ∈ mFS ∧ 𝐹 ∈ ran 𝑆𝑋𝐸) → (𝑉‘(𝐹𝑋)) = 𝑥 ∈ (𝑉𝑋)(𝑉‘(𝐹‘(𝐻𝑥))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395  w3a 1085   = wceq 1539  wcel 2108  wrex 3064  Vcvv 3422  cun 3881  cin 3882  cop 4564   ciun 4921  cmpt 5153   × cxp 5578  ran crn 5581  wf 6414  cfv 6418  1st c1st 7802  2nd c2nd 7803  Word cword 14145  ⟨“cs1 14228  mCNcmcn 33322  mVRcmvar 33323  mTypecmty 33324  mTCcmtc 33326  mRExcmrex 33328  mExcmex 33329  mVarscmvrs 33331  mRSubstcmrsub 33332  mSubstcmsub 33333  mVHcmvh 33334  mFScmfs 33338
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-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  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-reu 3070  df-rmo 3071  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-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-int 4877  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  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-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-1st 7804  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-1o 8267  df-er 8456  df-map 8575  df-pm 8576  df-en 8692  df-dom 8693  df-sdom 8694  df-fin 8695  df-card 9628  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-nn 11904  df-2 11966  df-n0 12164  df-xnn0 12236  df-z 12250  df-uz 12512  df-fz 13169  df-fzo 13312  df-seq 13650  df-hash 13973  df-word 14146  df-lsw 14194  df-concat 14202  df-s1 14229  df-substr 14282  df-pfx 14312  df-struct 16776  df-sets 16793  df-slot 16811  df-ndx 16823  df-base 16841  df-ress 16868  df-plusg 16901  df-0g 17069  df-gsum 17070  df-mgm 18241  df-sgrp 18290  df-mnd 18301  df-submnd 18346  df-frmd 18403  df-mrex 33348  df-mex 33349  df-mvrs 33351  df-mrsub 33352  df-msub 33353  df-mvh 33354  df-mfs 33358
This theorem is referenced by:  mclsppslem  33445
  Copyright terms: Public domain W3C validator