Thinking a little bit about the restrictions of the prover interface.
Implementation of as_const, currently without a proof.