leanprover-community / mathlib

  • Home
  • Zulip archive
  • API documentation
  • Lean web editor
  • Links

Zulip Chat Archive

Stream: lean4

Topic: unfolding in typeclass instance search?


Jason Gross (Mar 12 2021 at 14:51):

Is there a way to declare that certain constants should be unfoldable during typeclass instance search?

Leonardo de Moura (Mar 13 2021 at 04:11):

You can mark declarations with the @[reducible] attribute.

Leonardo de Moura (Mar 13 2021 at 04:12):

The keyword abbrev f ... is sugar for @[reducible, inline] def f ...


Last updated: May 02 2025 at 03:31 UTC

Theme Simple by wildflame © 2016 Powered by jekyll