Zulip Chat Archive

Stream: new members

Topic: importing finset breaks deriving DecidableEq


Malvin Gattinger (Oct 24 2023 at 12:12):

-- import Mathlib.Data.Finset.Basic -- uncomment this ...
-- import Mathlib.Data.Nat.Order.Basic -- or this ...

mutual
inductive Tree : Type :=
  | node : ListTree  Tree

inductive ListTree : Type :=
  | nil : ListTree
  | cons : Tree  ListTree  ListTree
  deriving DecidableEq -- ... and we get an error here :-(
end
-- (Assume I want to use Finset late in the same file.)

Last updated: Dec 20 2023 at 11:08 UTC