Remix.run Logo
▲ StilesCrisis 6 hours ago

You could, just like you could slowly disassemble your house back into individual pieces of lumber and nails and drywall, but it would be laborious and at the end of it you'd just have a pile of semi-broken construction materials.

▲xyzsparetimexyz 6 hours ago | parent [-]

I believe that it could be more akin to decompilation? When done correctly, you turn something a bit crude into potentially beautiful.

▲StilesCrisis 6 hours ago | parent [-]

The Lean is already full-fledged code with structure and names. What are you decompiling into? How do you raise it further?

▲jhrmnn 2 hours ago | parent | next [-]

Lean is the Assembly of mathematics. Human proofs are natural language specifications of a functionally equivalent program.

▲xyzsparetimexyz 5 hours ago | parent | prev [-]

Well, you raise it into more lean. Its just higher level.

▲StilesCrisis 30 minutes ago | parent [-]

You could try but that's kind of improbable. "Why don't they rewrite <program X> in the same language, with every feature intact, but much smaller and simpler" seems optimistic in Lean, C++, Rust or any other language.