Zulip Chat Archive

Stream: lean4

Topic: Custom intro

view this post on Zulip Mac (Mar 13 2021 at 22:34):

Is it possible to extend the intro tactic to more complex types? If so, how does one extend it?

view this post on Zulip Chris B (Mar 13 2021 at 22:58):

The rintro tactic in mathlib might give you some inspiration. https://leanprover-community.github.io/mathlib_docs/tactic/rcases.html#tactic.rintro

It looks like there's some built-in support for this kind of thing in Lean 4: https://leanprover.github.io/lean4/doc/tactics.html?highlight=intro#pattern-matching

view this post on Zulip Mac (Mar 14 2021 at 01:10):

I am looking to extend intro by perform actions on the object before binding, not pattern matching on the resulting binding. More specifically. for my type T, I want to make intro a expand to apply f; intro a

Last updated: May 18 2021 at 22:15 UTC