Zulip Chat Archive
Stream: general
Topic: Strange error message
Patrick Massot (Apr 24 2018 at 20:54):
code generation failed, VM does not have code for 'classical.choice'
seems to be Lean trying to tell me to stop considering examples and go back to work
Mario Carneiro (Apr 24 2018 at 20:58):
you can't compute the noncomputable
Patrick Massot (Apr 24 2018 at 20:58):
Yes I understand
Patrick Massot (Apr 24 2018 at 21:04):
funny part is I thought I wasn't using choice
Patrick Massot (Apr 24 2018 at 21:09):
Actually I used a small #eval
to test something in the middle of a file I was working on. Of course this file begins the mathematical preamble, including local attribute [instance] classical.prop_decidable
Patrick Massot (Apr 24 2018 at 21:09):
Removing that line makes eval to succeed
Patrick Massot (Apr 24 2018 at 21:12):
So the line can prevent computing even things which are actually computable. That's nice defense against constructivism
Chris Hughes (Apr 24 2018 at 21:52):
You can use local attribute [instance, priority 0] classical.prop_decidable
to preserve computability when possible.
Last updated: Dec 20 2023 at 11:08 UTC