Zulip Chat Archive
Stream: general
Topic: cannot remove attribute [class]
Kevin Buzzard (Mar 12 2022 at 12:56):
local attribute [-class] decidable -- cannot remove attribute [class]
I assume there's a good reason for this? I wanted to do it because someone on the Discord was asking why they got a weird error when they did cases h
when h : decidable p
and I wanted to demonstrate a very bad way of working around the issue (after explaining unfreezingI
first!)
Gabriel Ebner (Mar 14 2022 at 10:55):
It's because it takes extra work to implement it, and I think this is the first time anybody every asked for it.
Eric Rodriguez (Mar 14 2022 at 10:56):
I thought the same when I ran into the error, but I assumed whoever wrote Lean knew better than me
Kevin Buzzard (Mar 14 2022 at 12:53):
I certainly don't need it :-) As I say, it just seemed to be the quickest way of proving the assertion "your code (casing on a frozen local instance) doesn't work because decidable
is a class".
Last updated: Dec 20 2023 at 11:08 UTC