Zulip Chat Archive

Stream: general

Topic: bytecode?


Sebastien Gouezel (Oct 17 2018 at 20:29):

In a file with noncomputable theory, I get the trace message

failed to generate bytecode for 'locally_compact_of_compact'
code generation failed, VM does not have code for 'locally_compact_of_compact_nhds'

What does this mean, and should I worry?

Bryan Gin-ge Chen (Oct 17 2018 at 20:36):

I got that message before when I had accidentally labeled a def as a theorem / lemma. Not sure if that applies in your case or not.

Reid Barton (Oct 17 2018 at 20:36):

Usually it means there is a lemma whose type is not a Prop, yes. In this case it is because I forgot to mark locally_compact_space as a Prop.

Sebastien Gouezel (Oct 17 2018 at 20:38):

Indeed, it solves the problem. Thanks!

Johannes Hölzl (Oct 17 2018 at 21:01):

I have a fix for mathlib

Reid Barton (Oct 17 2018 at 22:57):

Thanks :+1:


Last updated: Dec 20 2023 at 11:08 UTC