Work done by Friction Force in a different reference frame Assume a block has an initial speed v0. With a friction force, it stops after moving a distanced d. I want to examine the work-energy theorem, or conservation of total energy in 2 reference frames: (i) Ground (ii) an inertial reference frame S moving with speed v0/2.
From the ground point of view: -F * d = 0 - 1/2m * v02.  Or, if studying the entire system (and treat the friction as internal force): 1/2m * v02 + Q = 0, where Q is the dissipated energy.
From the reference frame S point of view, the object moves right with an initial speed v0/2 and moves back to the original location with speed -v0/2. So work done by the friction is 0, and change of kinetic energy is 0, which is consistent, in terms of work-energy theorem. But from total energy point of view, Q = 0.
But obviously this is contradictory, as Q should be the same in both reference frames.
 A: You have two objects interacting, the block and the ground.  You need to consider the energy transfer from both objects.
In the ground frame, the ground moves no distance against the (frictional) force, so the energy transferred is zero.  But in the moving frame, the work done against the ground is non-zero.
A: Remember that now the ground is moving with velocity $-v_0/2$. Remember the friction has a reaction force, and so there is work being done by friction on the ground. You'll find energy is "not conserved" then, but that's only because in your model you assume that the Earth has infinite mass and does not accelerate because of a small block sliding against it.
A: Let’s have the block as one system and the ground as another, so that friction is an external force for both. I find it easier to think in terms of power than directly in terms of work. So let’s be explicit, in terms of $v_0$, $m$, and $F$, in the ground frame we have the velocity of the block is $$v(t)=-\frac{F}{m} t + v_0$$ for $0\le t \le t_f = v_0\ m/F$ and the velocity of the ground is $$V(t)=0$$
Then the mechanical power entering the block is $$p(t)=-F \ v(t)=\frac{F^2}{m}t-v_0 F$$ which is always negative meaning that mechanical power is leaving the block.
The mechanical power entering the ground is $$P(t)=F \ V(t)=0$$ meaning that no mechanical power is entering the ground.
So we have mechanical power leaving the block but not entering the ground. That difference in power is the source of heat. $$\dot Q(t)=-\left(P(t)+p(t)\right)= -\frac{F^2}{m}t+v_0 F $$
Now, switching to another frame is easy. In the new frame we simply subtract $v_0/2$ from all velocities and recalculate all quantities of interest. The new velocity of the block is $$v(t)=-\frac{F}{m} t + \frac{v_0}{2}$$ and the new velocity of the ground is $$V(t)=-\frac{v_0}{2}$$
Similarly the new mechanical power entering the block is $$p(t)=-F \ v(t)=\frac{F^2}{m}t-\frac{v_0}{2}F$$ which is negative at first, meaning that mechanical power is leaving the block, but becomes positive at the halfway point, meaning that the kinetic friction force does work on the block.
The new mechanical power entering the ground is $$P(t)=F \ V(t)=-F \frac{v_0}{2}$$which is constant and negative, meaning that mechanical power leaves the Earth at a steady rate through the whole experiment.
The new heat is given by $$\dot Q(t)=-\left(P(t)+p(t)\right)= -\frac{F^2}{m}t+v_0 F $$ which is the same as previously found for the ground frame.
So although the various velocities and power (work) values are different, the heat is the same in both frames. This is because mechanical work on the earth is non-zero (negative) in the moving frame, and it is this mechanical energy which is transferred to the block and accounts for the increased energy of the block without any decreased heat compared to the ground frame.
The work energy theorem can be applied to the ground to ensure that the Earth lost KE in the moving frame to account for the extra energy given to the block.
