Use zarith instead of num and improve the tooling.
Add an auxiliary function for the size of a formula.
Add remainder.