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 33522
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 33490 . . . . 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 6788 . . . . . 6 𝐸 ∈ V
87mptex 7099 . . . . 5 (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) ∈ V
96, 8elrnmpti 5869 . . . 4 (𝐹 ∈ ran (𝑓 ∈ ran (mRSubst‘𝑇) ↦ (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)) ↔ ∃𝑓 ∈ ran (mRSubst‘𝑇)𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩))
105, 9bitri 274 . . 3 (𝐹 ∈ ran 𝑆 ↔ ∃𝑓 ∈ ran (mRSubst‘𝑇)𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩))
11 simp2 1136 . . . . . . . . 9 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → 𝑓 ∈ ran (mRSubst‘𝑇))
12 simp3 1137 . . . . . . . . . . 11 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → 𝑋𝐸)
13 eqid 2738 . . . . . . . . . . . 12 (mTC‘𝑇) = (mTC‘𝑇)
14 eqid 2738 . . . . . . . . . . . 12 (mREx‘𝑇) = (mREx‘𝑇)
1513, 1, 14mexval 33464 . . . . . . . . . . 11 𝐸 = ((mTC‘𝑇) × (mREx‘𝑇))
1612, 15eleqtrdi 2849 . . . . . . . . . 10 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → 𝑋 ∈ ((mTC‘𝑇) × (mREx‘𝑇)))
17 xp2nd 7864 . . . . . . . . . 10 (𝑋 ∈ ((mTC‘𝑇) × (mREx‘𝑇)) → (2nd𝑋) ∈ (mREx‘𝑇))
1816, 17syl 17 . . . . . . . . 9 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (2nd𝑋) ∈ (mREx‘𝑇))
19 eqid 2738 . . . . . . . . . 10 (mVR‘𝑇) = (mVR‘𝑇)
202, 19, 14mrsubvrs 33484 . . . . . . . . 9 ((𝑓 ∈ ran (mRSubst‘𝑇) ∧ (2nd𝑋) ∈ (mREx‘𝑇)) → (ran (𝑓‘(2nd𝑋)) ∩ (mVR‘𝑇)) = 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))(ran (𝑓‘⟨“𝑥”⟩) ∩ (mVR‘𝑇)))
2111, 18, 20syl2anc 584 . . . . . . . 8 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (ran (𝑓‘(2nd𝑋)) ∩ (mVR‘𝑇)) = 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))(ran (𝑓‘⟨“𝑥”⟩) ∩ (mVR‘𝑇)))
22 fveq2 6774 . . . . . . . . . . . . 13 (𝑒 = 𝑋 → (1st𝑒) = (1st𝑋))
23 2fveq3 6779 . . . . . . . . . . . . 13 (𝑒 = 𝑋 → (𝑓‘(2nd𝑒)) = (𝑓‘(2nd𝑋)))
2422, 23opeq12d 4812 . . . . . . . . . . . 12 (𝑒 = 𝑋 → ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩ = ⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩)
25 eqid 2738 . . . . . . . . . . . 12 (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)
26 opex 5379 . . . . . . . . . . . 12 ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩ ∈ V
2724, 25, 26fvmpt3i 6880 . . . . . . . . . . 11 (𝑋𝐸 → ((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘𝑋) = ⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩)
2812, 27syl 17 . . . . . . . . . 10 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → ((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘𝑋) = ⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩)
2928fveq2d 6778 . . . . . . . . 9 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘𝑋)) = (𝑉‘⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩))
30 xp1st 7863 . . . . . . . . . . . . 13 (𝑋 ∈ ((mTC‘𝑇) × (mREx‘𝑇)) → (1st𝑋) ∈ (mTC‘𝑇))
3116, 30syl 17 . . . . . . . . . . . 12 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (1st𝑋) ∈ (mTC‘𝑇))
322, 14mrsubf 33479 . . . . . . . . . . . . . 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 6962 . . . . . . . . . . . 12 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (𝑓‘(2nd𝑋)) ∈ (mREx‘𝑇))
37 opelxpi 5626 . . . . . . . . . . . 12 (((1st𝑋) ∈ (mTC‘𝑇) ∧ (𝑓‘(2nd𝑋)) ∈ (mREx‘𝑇)) → ⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩ ∈ ((mTC‘𝑇) × (mREx‘𝑇)))
3831, 36, 37syl2anc 584 . . . . . . . . . . 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 33467 . . . . . . . . . 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 6787 . . . . . . . . . . . . 13 (1st𝑋) ∈ V
44 fvex 6787 . . . . . . . . . . . . 13 (𝑓‘(2nd𝑋)) ∈ V
4543, 44op2nd 7840 . . . . . . . . . . . 12 (2nd ‘⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩) = (𝑓‘(2nd𝑋))
4645a1i 11 . . . . . . . . . . 11 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (2nd ‘⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩) = (𝑓‘(2nd𝑋)))
4746rneqd 5847 . . . . . . . . . 10 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → ran (2nd ‘⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩) = ran (𝑓‘(2nd𝑋)))
4847ineq1d 4145 . . . . . . . . 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 33467 . . . . . . . . . . 11 (𝑋𝐸 → (𝑉𝑋) = (ran (2nd𝑋) ∩ (mVR‘𝑇)))
5112, 50syl 17 . . . . . . . . . 10 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (𝑉𝑋) = (ran (2nd𝑋) ∩ (mVR‘𝑇)))
5251iuneq1d 4951 . . . . . . . . 9 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → 𝑥 ∈ (𝑉𝑋)(𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥))) = 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))(𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥))))
53 msubvrs.h . . . . . . . . . . . . . . . . 17 𝐻 = (mVH‘𝑇)
5419, 1, 53mvhf 33520 . . . . . . . . . . . . . . . 16 (𝑇 ∈ mFS → 𝐻:(mVR‘𝑇)⟶𝐸)
55543ad2ant1 1132 . . . . . . . . . . . . . . 15 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → 𝐻:(mVR‘𝑇)⟶𝐸)
56 inss2 4163 . . . . . . . . . . . . . . . 16 (ran (2nd𝑋) ∩ (mVR‘𝑇)) ⊆ (mVR‘𝑇)
5756sseli 3917 . . . . . . . . . . . . . . 15 (𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇)) → 𝑥 ∈ (mVR‘𝑇))
58 ffvelrn 6959 . . . . . . . . . . . . . . 15 ((𝐻:(mVR‘𝑇)⟶𝐸𝑥 ∈ (mVR‘𝑇)) → (𝐻𝑥) ∈ 𝐸)
5955, 57, 58syl2an 596 . . . . . . . . . . . . . 14 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (𝐻𝑥) ∈ 𝐸)
60 fveq2 6774 . . . . . . . . . . . . . . . 16 (𝑒 = (𝐻𝑥) → (1st𝑒) = (1st ‘(𝐻𝑥)))
61 2fveq3 6779 . . . . . . . . . . . . . . . 16 (𝑒 = (𝐻𝑥) → (𝑓‘(2nd𝑒)) = (𝑓‘(2nd ‘(𝐻𝑥))))
6260, 61opeq12d 4812 . . . . . . . . . . . . . . 15 (𝑒 = (𝐻𝑥) → ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩ = ⟨(1st ‘(𝐻𝑥)), (𝑓‘(2nd ‘(𝐻𝑥)))⟩)
6362, 25, 26fvmpt3i 6880 . . . . . . . . . . . . . 14 ((𝐻𝑥) ∈ 𝐸 → ((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥)) = ⟨(1st ‘(𝐻𝑥)), (𝑓‘(2nd ‘(𝐻𝑥)))⟩)
6459, 63syl 17 . . . . . . . . . . . . 13 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → ((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥)) = ⟨(1st ‘(𝐻𝑥)), (𝑓‘(2nd ‘(𝐻𝑥)))⟩)
6557adantl 482 . . . . . . . . . . . . . . . 16 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → 𝑥 ∈ (mVR‘𝑇))
66 eqid 2738 . . . . . . . . . . . . . . . . 17 (mType‘𝑇) = (mType‘𝑇)
6719, 66, 53mvhval 33496 . . . . . . . . . . . . . . . 16 (𝑥 ∈ (mVR‘𝑇) → (𝐻𝑥) = ⟨((mType‘𝑇)‘𝑥), ⟨“𝑥”⟩⟩)
6865, 67syl 17 . . . . . . . . . . . . . . 15 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (𝐻𝑥) = ⟨((mType‘𝑇)‘𝑥), ⟨“𝑥”⟩⟩)
69 fvex 6787 . . . . . . . . . . . . . . . 16 ((mType‘𝑇)‘𝑥) ∈ V
70 s1cli 14310 . . . . . . . . . . . . . . . . 17 ⟨“𝑥”⟩ ∈ Word V
7170elexi 3451 . . . . . . . . . . . . . . . 16 ⟨“𝑥”⟩ ∈ V
7269, 71op1std 7841 . . . . . . . . . . . . . . 15 ((𝐻𝑥) = ⟨((mType‘𝑇)‘𝑥), ⟨“𝑥”⟩⟩ → (1st ‘(𝐻𝑥)) = ((mType‘𝑇)‘𝑥))
7368, 72syl 17 . . . . . . . . . . . . . 14 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (1st ‘(𝐻𝑥)) = ((mType‘𝑇)‘𝑥))
7469, 71op2ndd 7842 . . . . . . . . . . . . . . . 16 ((𝐻𝑥) = ⟨((mType‘𝑇)‘𝑥), ⟨“𝑥”⟩⟩ → (2nd ‘(𝐻𝑥)) = ⟨“𝑥”⟩)
7568, 74syl 17 . . . . . . . . . . . . . . 15 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (2nd ‘(𝐻𝑥)) = ⟨“𝑥”⟩)
7675fveq2d 6778 . . . . . . . . . . . . . 14 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (𝑓‘(2nd ‘(𝐻𝑥))) = (𝑓‘⟨“𝑥”⟩))
7773, 76opeq12d 4812 . . . . . . . . . . . . 13 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → ⟨(1st ‘(𝐻𝑥)), (𝑓‘(2nd ‘(𝐻𝑥)))⟩ = ⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩)
7864, 77eqtrd 2778 . . . . . . . . . . . 12 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → ((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥)) = ⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩)
7978fveq2d 6778 . . . . . . . . . . 11 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥))) = (𝑉‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩))
80 simpl1 1190 . . . . . . . . . . . . . . . 16 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → 𝑇 ∈ mFS)
8119, 13, 66mtyf2 33513 . . . . . . . . . . . . . . . 16 (𝑇 ∈ mFS → (mType‘𝑇):(mVR‘𝑇)⟶(mTC‘𝑇))
8280, 81syl 17 . . . . . . . . . . . . . . 15 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (mType‘𝑇):(mVR‘𝑇)⟶(mTC‘𝑇))
8382, 65ffvelrnd 6962 . . . . . . . . . . . . . 14 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → ((mType‘𝑇)‘𝑥) ∈ (mTC‘𝑇))
8433adantr 481 . . . . . . . . . . . . . . 15 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → 𝑓:(mREx‘𝑇)⟶(mREx‘𝑇))
85 elun2 4111 . . . . . . . . . . . . . . . . . 18 (𝑥 ∈ (mVR‘𝑇) → 𝑥 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)))
8665, 85syl 17 . . . . . . . . . . . . . . . . 17 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → 𝑥 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)))
8786s1cld 14308 . . . . . . . . . . . . . . . 16 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → ⟨“𝑥”⟩ ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
88 eqid 2738 . . . . . . . . . . . . . . . . . 18 (mCN‘𝑇) = (mCN‘𝑇)
8988, 19, 14mrexval 33463 . . . . . . . . . . . . . . . . 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 6962 . . . . . . . . . . . . . 14 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (𝑓‘⟨“𝑥”⟩) ∈ (mREx‘𝑇))
93 opelxpi 5626 . . . . . . . . . . . . . 14 ((((mType‘𝑇)‘𝑥) ∈ (mTC‘𝑇) ∧ (𝑓‘⟨“𝑥”⟩) ∈ (mREx‘𝑇)) → ⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩ ∈ ((mTC‘𝑇) × (mREx‘𝑇)))
9483, 92, 93syl2anc 584 . . . . . . . . . . . . 13 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → ⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩ ∈ ((mTC‘𝑇) × (mREx‘𝑇)))
9594, 15eleqtrrdi 2850 . . . . . . . . . . . 12 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → ⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩ ∈ 𝐸)
9619, 1, 40mvrsval 33467 . . . . . . . . . . . 12 (⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩ ∈ 𝐸 → (𝑉‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩) = (ran (2nd ‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩) ∩ (mVR‘𝑇)))
9795, 96syl 17 . . . . . . . . . . 11 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (𝑉‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩) = (ran (2nd ‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩) ∩ (mVR‘𝑇)))
98 fvex 6787 . . . . . . . . . . . . . . 15 (𝑓‘⟨“𝑥”⟩) ∈ V
9969, 98op2nd 7840 . . . . . . . . . . . . . 14 (2nd ‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩) = (𝑓‘⟨“𝑥”⟩)
10099a1i 11 . . . . . . . . . . . . 13 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (2nd ‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩) = (𝑓‘⟨“𝑥”⟩))
101100rneqd 5847 . . . . . . . . . . . 12 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → ran (2nd ‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩) = ran (𝑓‘⟨“𝑥”⟩))
102101ineq1d 4145 . . . . . . . . . . 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 4948 . . . . . . . . 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 6773 . . . . . . . . 9 (𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) → (𝐹𝑋) = ((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘𝑋))
108107fveq2d 6778 . . . . . . . 8 (𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) → (𝑉‘(𝐹𝑋)) = (𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘𝑋)))
109 fveq1 6773 . . . . . . . . . 10 (𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) → (𝐹‘(𝐻𝑥)) = ((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥)))
110109fveq2d 6778 . . . . . . . . 9 (𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) → (𝑉‘(𝐹‘(𝐻𝑥))) = (𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥))))
111110iuneq2d 4953 . . . . . . . 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 1120 . . . . 5 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇)) → (𝑋𝐸 → (𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) → (𝑉‘(𝐹𝑋)) = 𝑥 ∈ (𝑉𝑋)(𝑉‘(𝐹‘(𝐻𝑥))))))
115114com23 86 . . . 4 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇)) → (𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) → (𝑋𝐸 → (𝑉‘(𝐹𝑋)) = 𝑥 ∈ (𝑉𝑋)(𝑉‘(𝐹‘(𝐻𝑥))))))
116115rexlimdva 3213 . . 3 (𝑇 ∈ mFS → (∃𝑓 ∈ ran (mRSubst‘𝑇)𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) → (𝑋𝐸 → (𝑉‘(𝐹𝑋)) = 𝑥 ∈ (𝑉𝑋)(𝑉‘(𝐹‘(𝐻𝑥))))))
11710, 116syl5bi 241 . 2 (𝑇 ∈ mFS → (𝐹 ∈ ran 𝑆 → (𝑋𝐸 → (𝑉‘(𝐹𝑋)) = 𝑥 ∈ (𝑉𝑋)(𝑉‘(𝐹‘(𝐻𝑥))))))
1181173imp 1110 1 ((𝑇 ∈ mFS ∧ 𝐹 ∈ ran 𝑆𝑋𝐸) → (𝑉‘(𝐹𝑋)) = 𝑥 ∈ (𝑉𝑋)(𝑉‘(𝐹‘(𝐻𝑥))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396  w3a 1086   = wceq 1539  wcel 2106  wrex 3065  Vcvv 3432  cun 3885  cin 3886  cop 4567   ciun 4924  cmpt 5157   × cxp 5587  ran crn 5590  wf 6429  cfv 6433  1st c1st 7829  2nd c2nd 7830  Word cword 14217  ⟨“cs1 14300  mCNcmcn 33422  mVRcmvar 33423  mTypecmty 33424  mTCcmtc 33426  mRExcmrex 33428  mExcmex 33429  mVarscmvrs 33431  mRSubstcmrsub 33432  mSubstcmsub 33433  mVHcmvh 33434  mFScmfs 33438
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-rep 5209  ax-sep 5223  ax-nul 5230  ax-pow 5288  ax-pr 5352  ax-un 7588  ax-cnex 10927  ax-resscn 10928  ax-1cn 10929  ax-icn 10930  ax-addcl 10931  ax-addrcl 10932  ax-mulcl 10933  ax-mulrcl 10934  ax-mulcom 10935  ax-addass 10936  ax-mulass 10937  ax-distr 10938  ax-i2m1 10939  ax-1ne0 10940  ax-1rid 10941  ax-rnegex 10942  ax-rrecex 10943  ax-cnre 10944  ax-pre-lttri 10945  ax-pre-lttrn 10946  ax-pre-ltadd 10947  ax-pre-mulgt0 10948
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  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-rmo 3071  df-reu 3072  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-pss 3906  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-int 4880  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-tr 5192  df-id 5489  df-eprel 5495  df-po 5503  df-so 5504  df-fr 5544  df-we 5546  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-pred 6202  df-ord 6269  df-on 6270  df-lim 6271  df-suc 6272  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-riota 7232  df-ov 7278  df-oprab 7279  df-mpo 7280  df-om 7713  df-1st 7831  df-2nd 7832  df-frecs 8097  df-wrecs 8128  df-recs 8202  df-rdg 8241  df-1o 8297  df-er 8498  df-map 8617  df-pm 8618  df-en 8734  df-dom 8735  df-sdom 8736  df-fin 8737  df-card 9697  df-pnf 11011  df-mnf 11012  df-xr 11013  df-ltxr 11014  df-le 11015  df-sub 11207  df-neg 11208  df-nn 11974  df-2 12036  df-n0 12234  df-xnn0 12306  df-z 12320  df-uz 12583  df-fz 13240  df-fzo 13383  df-seq 13722  df-hash 14045  df-word 14218  df-lsw 14266  df-concat 14274  df-s1 14301  df-substr 14354  df-pfx 14384  df-struct 16848  df-sets 16865  df-slot 16883  df-ndx 16895  df-base 16913  df-ress 16942  df-plusg 16975  df-0g 17152  df-gsum 17153  df-mgm 18326  df-sgrp 18375  df-mnd 18386  df-submnd 18431  df-frmd 18488  df-mrex 33448  df-mex 33449  df-mvrs 33451  df-mrsub 33452  df-msub 33453  df-mvh 33454  df-mfs 33458
This theorem is referenced by:  mclsppslem  33545
  Copyright terms: Public domain W3C validator