I am currently trying to generate Haskell code from my program verification lemma, which looks like this:
Lemma the_thing_is_ok : forall (e:Something), Matches e (calculate_value e).
Right after ending my Section, I do:
Extraction Language Haskell.
Recursive Extraction the_thing_is_ok
And it does not seem to be really happy about something, since it returns the following error:
__ = Prelude.error "Logical or arity value used"
I have another Lemma which does seem to export just fine but I could not figure out what the problem was exactly. Any clues on how to work around that error?
Coq erases values of type Prop
during extraction—they're considered to have no computational meaning. If you have a computation which requires computing with a Prop
then extraction will fail.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With