Zulip Chat Archive

Stream: mathlib4

Topic: def .. deriving


Yury G. Kudryashov (Feb 18 2023 at 22:41):

I have an impression that some random typeclasses work with

def Ennreal := WithTop 0 deriving Zero, AddCommMonoidWithOne, SemilatticeSup, DistribLattice, OrderBot,
  BoundedOrder, CanonicallyOrderedCommSemiring, CompleteLinearOrder, DenselyOrdered, Nontrivial,
  CanonicallyLinearOrderedAddMonoid, Sub, OrderedSub, LinearOrderedAddCommMonoidWithTop

and other don't. Is there a simple rule? For now, I'm moving instances that fail to separate instance lines.


Last updated: Dec 20 2023 at 11:08 UTC