They had something like that in Newark NJ, about 2400 years later. It was called a "plane," and there were many of them on what was called the Morris Canal. The one pictured below was called "Plane 12 East," and was built around 1830. It hauled canal barges up a height of 70 feet.
As you can see in the picture, the weight of a downward-heading boat supplied most of the energy needed to pull the other boat up the incline.
Smart.
My tiny contribution to Jean Pierre’s idea about the use of the Grand Gallery of the Great Pyramid is, the counterweight crib of rocks was just under the amount needed to pull the granite blocks up the other ramp, so, after hooking everything up, the workers would dogpile on the crib, and the additional weight would finish the job.
Then they and their buddies on the other crews would get on the sled that carried the granite up the other ramp, and their weight would raise the counterweight back to the top as they headed down to the plateau level.
I probably should tell him about it sometime, y’know, if I ever meet him.