I try to find a method to understand. I study some different cases to find my mistake. The method: at start, at the contact between the wall and the circle, there are two dots, one on the wall: 'p1' the other on the circle: 'p2'. At final, there are two dots too, one on the wall: 'p3' the other on the circle: 'p4'. With an infinitisimal movement and with friction between the circle and the wall.
1/ The circle is fixed, the wall rolls around the circle: no friction, no energy needed to roll the wall. The distance (p1,p3) is equal to the distance (p2,p4), it is logical there is no energy from friction. All is fine.
2/ The circle is fixed, the wall doesn't roll but I move it in translation along the circle, the energy of friction is the distance moved by the wall. There is a difference of the distance in the calculation: (p1,p3)-(p2,p4), it is the energy of friction. The energy I need to move the wall in translation is equal to the energy of friction.
3/ The circle is fixed, I move the wall in translation along the circle of x millimeters, and in the same time there is a roll, the roll changes the dot of contact of the distance y millimeters. The distance (p1,p3)-(p2,p4) is equal to x, again it is the energy needed to move the wall. The roll is transparent. But the calculation (p1,p3)-(p2,p4) seems correct, at least here.
4/ I come back to my circle in translation and the wall in rotation around A0. I could say the roll is transparent like in the case 3/ but I could also measure the distance (p1,p3)-(p2,p4) it must works too. I have also the dots p1,p2, p3 and p4. The calculation (p1,p3)-(p2,p4) is equal to d2 not d1.
Maybe I can decomposed the movement in another manner:
4.1/ First time, the circle is fixed, the wall is rolled of the angle necessary.
4.2/ Second time, I move the circle with the wall to the distance it must move.
At final, I measure the distance of the wall from A0, it is like translate the wall, I reported to the drawing:
's' is the distance of the roll
't' is the distance of the wall from A0 when I translate the circle and the wall after the roll
t=d2, and s+t=d1
The distance of the wall from A0 is d2 not d1.
Is there a physicist method to study that sort of problem ? Or at least, it is possible to discuss about my method (even, it seems very basic).