Zulip Chat Archive

Stream: metaprogramming / tactics

Topic: Tactic Monad Definition


Tanner Duve (Oct 14 2024 at 23:24):

Hi, where in the Lean docs can I find the monad instance for tactic defined explicitly?

Adam Topaz (Oct 14 2024 at 23:33):

src#Lean.Elab.Tactic.TacticM

Adam Topaz (Oct 14 2024 at 23:33):

Is that what you’re looking for?

Adam Topaz (Oct 14 2024 at 23:36):

Most of Lean's metaprogramming monads are defined as ReaderT Context (StateRefT State M) for some monad M. We have a summary of the hierarchy in the mathlib wiki: https://github.com/leanprover-community/mathlib4/wiki/Monad-map

Tanner Duve (Oct 15 2024 at 01:29):

This is what I was looking for. Thanks.


Last updated: May 02 2025 at 03:31 UTC