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 33518
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 2740 . . . . . 6 (mRSubst‘𝑇) = (mRSubst‘𝑇)
3 msubvrs.s . . . . . 6 𝑆 = (mSubst‘𝑇)
41, 2, 3elmsubrn 33486 . . . . 5 ran 𝑆 = ran (𝑓 ∈ ran (mRSubst‘𝑇) ↦ (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩))
54eleq2i 2832 . . . 4 (𝐹 ∈ ran 𝑆𝐹 ∈ ran (𝑓 ∈ ran (mRSubst‘𝑇) ↦ (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)))
6 eqid 2740 . . . . 5 (𝑓 ∈ ran (mRSubst‘𝑇) ↦ (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)) = (𝑓 ∈ ran (mRSubst‘𝑇) ↦ (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩))
71fvexi 6785 . . . . . 6 𝐸 ∈ V
87mptex 7096 . . . . 5 (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) ∈ V
96, 8elrnmpti 5868 . . . 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 2740 . . . . . . . . . . . 12 (mTC‘𝑇) = (mTC‘𝑇)
14 eqid 2740 . . . . . . . . . . . 12 (mREx‘𝑇) = (mREx‘𝑇)
1513, 1, 14mexval 33460 . . . . . . . . . . 11 𝐸 = ((mTC‘𝑇) × (mREx‘𝑇))
1612, 15eleqtrdi 2851 . . . . . . . . . 10 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → 𝑋 ∈ ((mTC‘𝑇) × (mREx‘𝑇)))
17 xp2nd 7857 . . . . . . . . . 10 (𝑋 ∈ ((mTC‘𝑇) × (mREx‘𝑇)) → (2nd𝑋) ∈ (mREx‘𝑇))
1816, 17syl 17 . . . . . . . . 9 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (2nd𝑋) ∈ (mREx‘𝑇))
19 eqid 2740 . . . . . . . . . 10 (mVR‘𝑇) = (mVR‘𝑇)
202, 19, 14mrsubvrs 33480 . . . . . . . . 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 6771 . . . . . . . . . . . . 13 (𝑒 = 𝑋 → (1st𝑒) = (1st𝑋))
23 2fveq3 6776 . . . . . . . . . . . . 13 (𝑒 = 𝑋 → (𝑓‘(2nd𝑒)) = (𝑓‘(2nd𝑋)))
2422, 23opeq12d 4818 . . . . . . . . . . . 12 (𝑒 = 𝑋 → ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩ = ⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩)
25 eqid 2740 . . . . . . . . . . . 12 (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)
26 opex 5383 . . . . . . . . . . . 12 ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩ ∈ V
2724, 25, 26fvmpt3i 6877 . . . . . . . . . . 11 (𝑋𝐸 → ((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘𝑋) = ⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩)
2812, 27syl 17 . . . . . . . . . 10 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → ((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘𝑋) = ⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩)
2928fveq2d 6775 . . . . . . . . 9 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘𝑋)) = (𝑉‘⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩))
30 xp1st 7856 . . . . . . . . . . . . 13 (𝑋 ∈ ((mTC‘𝑇) × (mREx‘𝑇)) → (1st𝑋) ∈ (mTC‘𝑇))
3116, 30syl 17 . . . . . . . . . . . 12 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (1st𝑋) ∈ (mTC‘𝑇))
322, 14mrsubf 33475 . . . . . . . . . . . . . 14 (𝑓 ∈ ran (mRSubst‘𝑇) → 𝑓:(mREx‘𝑇)⟶(mREx‘𝑇))
3311, 32syl 17 . . . . . . . . . . . . 13 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → 𝑓:(mREx‘𝑇)⟶(mREx‘𝑇))
3417, 15eleq2s 2859 . . . . . . . . . . . . . 14 (𝑋𝐸 → (2nd𝑋) ∈ (mREx‘𝑇))
3512, 34syl 17 . . . . . . . . . . . . 13 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (2nd𝑋) ∈ (mREx‘𝑇))
3633, 35ffvelrnd 6959 . . . . . . . . . . . 12 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (𝑓‘(2nd𝑋)) ∈ (mREx‘𝑇))
37 opelxpi 5627 . . . . . . . . . . . 12 (((1st𝑋) ∈ (mTC‘𝑇) ∧ (𝑓‘(2nd𝑋)) ∈ (mREx‘𝑇)) → ⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩ ∈ ((mTC‘𝑇) × (mREx‘𝑇)))
3831, 36, 37syl2anc 584 . . . . . . . . . . 11 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → ⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩ ∈ ((mTC‘𝑇) × (mREx‘𝑇)))
3938, 15eleqtrrdi 2852 . . . . . . . . . 10 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → ⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩ ∈ 𝐸)
40 msubvrs.v . . . . . . . . . . 11 𝑉 = (mVars‘𝑇)
4119, 1, 40mvrsval 33463 . . . . . . . . . 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 6784 . . . . . . . . . . . . 13 (1st𝑋) ∈ V
44 fvex 6784 . . . . . . . . . . . . 13 (𝑓‘(2nd𝑋)) ∈ V
4543, 44op2nd 7833 . . . . . . . . . . . 12 (2nd ‘⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩) = (𝑓‘(2nd𝑋))
4645a1i 11 . . . . . . . . . . 11 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (2nd ‘⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩) = (𝑓‘(2nd𝑋)))
4746rneqd 5846 . . . . . . . . . 10 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → ran (2nd ‘⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩) = ran (𝑓‘(2nd𝑋)))
4847ineq1d 4151 . . . . . . . . 9 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (ran (2nd ‘⟨(1st𝑋), (𝑓‘(2nd𝑋))⟩) ∩ (mVR‘𝑇)) = (ran (𝑓‘(2nd𝑋)) ∩ (mVR‘𝑇)))
4929, 42, 483eqtrd 2784 . . . . . . . 8 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘𝑋)) = (ran (𝑓‘(2nd𝑋)) ∩ (mVR‘𝑇)))
5019, 1, 40mvrsval 33463 . . . . . . . . . . 11 (𝑋𝐸 → (𝑉𝑋) = (ran (2nd𝑋) ∩ (mVR‘𝑇)))
5112, 50syl 17 . . . . . . . . . 10 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (𝑉𝑋) = (ran (2nd𝑋) ∩ (mVR‘𝑇)))
5251iuneq1d 4957 . . . . . . . . 9 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → 𝑥 ∈ (𝑉𝑋)(𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥))) = 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))(𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥))))
53 msubvrs.h . . . . . . . . . . . . . . . . 17 𝐻 = (mVH‘𝑇)
5419, 1, 53mvhf 33516 . . . . . . . . . . . . . . . 16 (𝑇 ∈ mFS → 𝐻:(mVR‘𝑇)⟶𝐸)
55543ad2ant1 1132 . . . . . . . . . . . . . . 15 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → 𝐻:(mVR‘𝑇)⟶𝐸)
56 inss2 4169 . . . . . . . . . . . . . . . 16 (ran (2nd𝑋) ∩ (mVR‘𝑇)) ⊆ (mVR‘𝑇)
5756sseli 3922 . . . . . . . . . . . . . . 15 (𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇)) → 𝑥 ∈ (mVR‘𝑇))
58 ffvelrn 6956 . . . . . . . . . . . . . . 15 ((𝐻:(mVR‘𝑇)⟶𝐸𝑥 ∈ (mVR‘𝑇)) → (𝐻𝑥) ∈ 𝐸)
5955, 57, 58syl2an 596 . . . . . . . . . . . . . 14 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (𝐻𝑥) ∈ 𝐸)
60 fveq2 6771 . . . . . . . . . . . . . . . 16 (𝑒 = (𝐻𝑥) → (1st𝑒) = (1st ‘(𝐻𝑥)))
61 2fveq3 6776 . . . . . . . . . . . . . . . 16 (𝑒 = (𝐻𝑥) → (𝑓‘(2nd𝑒)) = (𝑓‘(2nd ‘(𝐻𝑥))))
6260, 61opeq12d 4818 . . . . . . . . . . . . . . 15 (𝑒 = (𝐻𝑥) → ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩ = ⟨(1st ‘(𝐻𝑥)), (𝑓‘(2nd ‘(𝐻𝑥)))⟩)
6362, 25, 26fvmpt3i 6877 . . . . . . . . . . . . . 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 2740 . . . . . . . . . . . . . . . . 17 (mType‘𝑇) = (mType‘𝑇)
6719, 66, 53mvhval 33492 . . . . . . . . . . . . . . . 16 (𝑥 ∈ (mVR‘𝑇) → (𝐻𝑥) = ⟨((mType‘𝑇)‘𝑥), ⟨“𝑥”⟩⟩)
6865, 67syl 17 . . . . . . . . . . . . . . 15 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (𝐻𝑥) = ⟨((mType‘𝑇)‘𝑥), ⟨“𝑥”⟩⟩)
69 fvex 6784 . . . . . . . . . . . . . . . 16 ((mType‘𝑇)‘𝑥) ∈ V
70 s1cli 14308 . . . . . . . . . . . . . . . . 17 ⟨“𝑥”⟩ ∈ Word V
7170elexi 3450 . . . . . . . . . . . . . . . 16 ⟨“𝑥”⟩ ∈ V
7269, 71op1std 7834 . . . . . . . . . . . . . . 15 ((𝐻𝑥) = ⟨((mType‘𝑇)‘𝑥), ⟨“𝑥”⟩⟩ → (1st ‘(𝐻𝑥)) = ((mType‘𝑇)‘𝑥))
7368, 72syl 17 . . . . . . . . . . . . . 14 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (1st ‘(𝐻𝑥)) = ((mType‘𝑇)‘𝑥))
7469, 71op2ndd 7835 . . . . . . . . . . . . . . . 16 ((𝐻𝑥) = ⟨((mType‘𝑇)‘𝑥), ⟨“𝑥”⟩⟩ → (2nd ‘(𝐻𝑥)) = ⟨“𝑥”⟩)
7568, 74syl 17 . . . . . . . . . . . . . . 15 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (2nd ‘(𝐻𝑥)) = ⟨“𝑥”⟩)
7675fveq2d 6775 . . . . . . . . . . . . . 14 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (𝑓‘(2nd ‘(𝐻𝑥))) = (𝑓‘⟨“𝑥”⟩))
7773, 76opeq12d 4818 . . . . . . . . . . . . 13 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → ⟨(1st ‘(𝐻𝑥)), (𝑓‘(2nd ‘(𝐻𝑥)))⟩ = ⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩)
7864, 77eqtrd 2780 . . . . . . . . . . . 12 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → ((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥)) = ⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩)
7978fveq2d 6775 . . . . . . . . . . 11 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥))) = (𝑉‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩))
80 simpl1 1190 . . . . . . . . . . . . . . . 16 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → 𝑇 ∈ mFS)
8119, 13, 66mtyf2 33509 . . . . . . . . . . . . . . . 16 (𝑇 ∈ mFS → (mType‘𝑇):(mVR‘𝑇)⟶(mTC‘𝑇))
8280, 81syl 17 . . . . . . . . . . . . . . 15 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (mType‘𝑇):(mVR‘𝑇)⟶(mTC‘𝑇))
8382, 65ffvelrnd 6959 . . . . . . . . . . . . . 14 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → ((mType‘𝑇)‘𝑥) ∈ (mTC‘𝑇))
8433adantr 481 . . . . . . . . . . . . . . 15 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → 𝑓:(mREx‘𝑇)⟶(mREx‘𝑇))
85 elun2 4116 . . . . . . . . . . . . . . . . . 18 (𝑥 ∈ (mVR‘𝑇) → 𝑥 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)))
8665, 85syl 17 . . . . . . . . . . . . . . . . 17 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → 𝑥 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)))
8786s1cld 14306 . . . . . . . . . . . . . . . 16 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → ⟨“𝑥”⟩ ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
88 eqid 2740 . . . . . . . . . . . . . . . . . 18 (mCN‘𝑇) = (mCN‘𝑇)
8988, 19, 14mrexval 33459 . . . . . . . . . . . . . . . . 17 (𝑇 ∈ mFS → (mREx‘𝑇) = Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
9080, 89syl 17 . . . . . . . . . . . . . . . 16 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (mREx‘𝑇) = Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
9187, 90eleqtrrd 2844 . . . . . . . . . . . . . . 15 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → ⟨“𝑥”⟩ ∈ (mREx‘𝑇))
9284, 91ffvelrnd 6959 . . . . . . . . . . . . . 14 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (𝑓‘⟨“𝑥”⟩) ∈ (mREx‘𝑇))
93 opelxpi 5627 . . . . . . . . . . . . . 14 ((((mType‘𝑇)‘𝑥) ∈ (mTC‘𝑇) ∧ (𝑓‘⟨“𝑥”⟩) ∈ (mREx‘𝑇)) → ⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩ ∈ ((mTC‘𝑇) × (mREx‘𝑇)))
9483, 92, 93syl2anc 584 . . . . . . . . . . . . 13 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → ⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩ ∈ ((mTC‘𝑇) × (mREx‘𝑇)))
9594, 15eleqtrrdi 2852 . . . . . . . . . . . 12 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → ⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩ ∈ 𝐸)
9619, 1, 40mvrsval 33463 . . . . . . . . . . . 12 (⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩ ∈ 𝐸 → (𝑉‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩) = (ran (2nd ‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩) ∩ (mVR‘𝑇)))
9795, 96syl 17 . . . . . . . . . . 11 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (𝑉‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩) = (ran (2nd ‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩) ∩ (mVR‘𝑇)))
98 fvex 6784 . . . . . . . . . . . . . . 15 (𝑓‘⟨“𝑥”⟩) ∈ V
9969, 98op2nd 7833 . . . . . . . . . . . . . 14 (2nd ‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩) = (𝑓‘⟨“𝑥”⟩)
10099a1i 11 . . . . . . . . . . . . 13 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (2nd ‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩) = (𝑓‘⟨“𝑥”⟩))
101100rneqd 5846 . . . . . . . . . . . 12 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → ran (2nd ‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩) = ran (𝑓‘⟨“𝑥”⟩))
102101ineq1d 4151 . . . . . . . . . . 11 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (ran (2nd ‘⟨((mType‘𝑇)‘𝑥), (𝑓‘⟨“𝑥”⟩)⟩) ∩ (mVR‘𝑇)) = (ran (𝑓‘⟨“𝑥”⟩) ∩ (mVR‘𝑇)))
10379, 97, 1023eqtrd 2784 . . . . . . . . . 10 (((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) ∧ 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))) → (𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥))) = (ran (𝑓‘⟨“𝑥”⟩) ∩ (mVR‘𝑇)))
104103iuneq2dv 4954 . . . . . . . . 9 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))(𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥))) = 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))(ran (𝑓‘⟨“𝑥”⟩) ∩ (mVR‘𝑇)))
10552, 104eqtrd 2780 . . . . . . . 8 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → 𝑥 ∈ (𝑉𝑋)(𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥))) = 𝑥 ∈ (ran (2nd𝑋) ∩ (mVR‘𝑇))(ran (𝑓‘⟨“𝑥”⟩) ∩ (mVR‘𝑇)))
10621, 49, 1053eqtr4d 2790 . . . . . . 7 ((𝑇 ∈ mFS ∧ 𝑓 ∈ ran (mRSubst‘𝑇) ∧ 𝑋𝐸) → (𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘𝑋)) = 𝑥 ∈ (𝑉𝑋)(𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥))))
107 fveq1 6770 . . . . . . . . 9 (𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) → (𝐹𝑋) = ((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘𝑋))
108107fveq2d 6775 . . . . . . . 8 (𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) → (𝑉‘(𝐹𝑋)) = (𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘𝑋)))
109 fveq1 6770 . . . . . . . . . 10 (𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) → (𝐹‘(𝐻𝑥)) = ((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥)))
110109fveq2d 6775 . . . . . . . . 9 (𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) → (𝑉‘(𝐹‘(𝐻𝑥))) = (𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥))))
111110iuneq2d 4959 . . . . . . . 8 (𝐹 = (𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩) → 𝑥 ∈ (𝑉𝑋)(𝑉‘(𝐹‘(𝐻𝑥))) = 𝑥 ∈ (𝑉𝑋)(𝑉‘((𝑒𝐸 ↦ ⟨(1st𝑒), (𝑓‘(2nd𝑒))⟩)‘(𝐻𝑥))))
112108, 111eqeq12d 2756 . . . . . . 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 3215 . . 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 1542  wcel 2110  wrex 3067  Vcvv 3431  cun 3890  cin 3891  cop 4573   ciun 4930  cmpt 5162   × cxp 5588  ran crn 5591  wf 6428  cfv 6432  1st c1st 7822  2nd c2nd 7823  Word cword 14215  ⟨“cs1 14298  mCNcmcn 33418  mVRcmvar 33419  mTypecmty 33420  mTCcmtc 33422  mRExcmrex 33424  mExcmex 33425  mVarscmvrs 33427  mRSubstcmrsub 33428  mSubstcmsub 33429  mVHcmvh 33430  mFScmfs 33434
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1802  ax-4 1816  ax-5 1917  ax-6 1975  ax-7 2015  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2158  ax-12 2175  ax-ext 2711  ax-rep 5214  ax-sep 5227  ax-nul 5234  ax-pow 5292  ax-pr 5356  ax-un 7582  ax-cnex 10928  ax-resscn 10929  ax-1cn 10930  ax-icn 10931  ax-addcl 10932  ax-addrcl 10933  ax-mulcl 10934  ax-mulrcl 10935  ax-mulcom 10936  ax-addass 10937  ax-mulass 10938  ax-distr 10939  ax-i2m1 10940  ax-1ne0 10941  ax-1rid 10942  ax-rnegex 10943  ax-rrecex 10944  ax-cnre 10945  ax-pre-lttri 10946  ax-pre-lttrn 10947  ax-pre-ltadd 10948  ax-pre-mulgt0 10949
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1545  df-fal 1555  df-ex 1787  df-nf 1791  df-sb 2072  df-mo 2542  df-eu 2571  df-clab 2718  df-cleq 2732  df-clel 2818  df-nfc 2891  df-ne 2946  df-nel 3052  df-ral 3071  df-rex 3072  df-reu 3073  df-rmo 3074  df-rab 3075  df-v 3433  df-sbc 3721  df-csb 3838  df-dif 3895  df-un 3897  df-in 3899  df-ss 3909  df-pss 3911  df-nul 4263  df-if 4466  df-pw 4541  df-sn 4568  df-pr 4570  df-op 4574  df-uni 4846  df-int 4886  df-iun 4932  df-br 5080  df-opab 5142  df-mpt 5163  df-tr 5197  df-id 5490  df-eprel 5496  df-po 5504  df-so 5505  df-fr 5545  df-we 5547  df-xp 5596  df-rel 5597  df-cnv 5598  df-co 5599  df-dm 5600  df-rn 5601  df-res 5602  df-ima 5603  df-pred 6201  df-ord 6268  df-on 6269  df-lim 6270  df-suc 6271  df-iota 6390  df-fun 6434  df-fn 6435  df-f 6436  df-f1 6437  df-fo 6438  df-f1o 6439  df-fv 6440  df-riota 7228  df-ov 7274  df-oprab 7275  df-mpo 7276  df-om 7707  df-1st 7824  df-2nd 7825  df-frecs 8088  df-wrecs 8119  df-recs 8193  df-rdg 8232  df-1o 8288  df-er 8481  df-map 8600  df-pm 8601  df-en 8717  df-dom 8718  df-sdom 8719  df-fin 8720  df-card 9698  df-pnf 11012  df-mnf 11013  df-xr 11014  df-ltxr 11015  df-le 11016  df-sub 11207  df-neg 11208  df-nn 11974  df-2 12036  df-n0 12234  df-xnn0 12306  df-z 12320  df-uz 12582  df-fz 13239  df-fzo 13382  df-seq 13720  df-hash 14043  df-word 14216  df-lsw 14264  df-concat 14272  df-s1 14299  df-substr 14352  df-pfx 14382  df-struct 16846  df-sets 16863  df-slot 16881  df-ndx 16893  df-base 16911  df-ress 16940  df-plusg 16973  df-0g 17150  df-gsum 17151  df-mgm 18324  df-sgrp 18373  df-mnd 18384  df-submnd 18429  df-frmd 18486  df-mrex 33444  df-mex 33445  df-mvrs 33447  df-mrsub 33448  df-msub 33449  df-mvh 33450  df-mfs 33454
This theorem is referenced by:  mclsppslem  33541
  Copyright terms: Public domain W3C validator