Zulip Chat Archive

Stream: lean4

Topic: free variables in mk.injEq


Scott Morrison (Apr 10 2023 at 09:39):

Anyone see what is going on in:

-- (kernel) declaration has free variables 'O.mk.injEq'
structure O (c : False = False) where
  m : Prop

This came up in !4#3072

Mario Carneiro (Apr 10 2023 at 09:56):

A very strange workaround:

set_option genInjectivity false in
structure O (c : False = False) where
  m : Prop
gen_injective_theorems% O

Scott Morrison (Apr 10 2023 at 10:49):

Thanks! Reported as https://github.com/leanprover/lean4/issues/2188

Kevin Buzzard (Apr 10 2023 at 11:21):

Heh, presumably now the injectivity lemma is missing?

Scott Morrison (Apr 10 2023 at 11:32):

No, in Mario's suggestion there is a gen_injective_theorems% O command afterwards, which apparently successfully generates them! I


Last updated: Dec 20 2023 at 11:08 UTC