leanprover-community / mathlib

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

Zulip Chat Archive

Stream: general

Topic: derive add_comm_monoid


Daniel Selsam (Jul 27 2021 at 20:38):

Could somebody briefly explain how @[derive [add_comm_monoid]] works, and point me to the code that actually executes?

Gabriel Ebner (Jul 27 2021 at 20:42):

It's probably the δ-derive handler: https://github.com/leanprover-community/mathlib/blob/768980a90c2bdf2b4ad957efcd2f4c86c60be262/src/tactic/delta_instance.lean


Last updated: May 02 2025 at 03:31 UTC

Theme Simple by wildflame © 2016 Powered by jekyll