Zulip Chat Archive
Stream: general
Topic: simp? tactic
Frederick Pu (Dec 31 2023 at 22:53):
How does the simp tactic create an edit link to produce simp only [blah blahb blah]? Can I replicate this behavior using proof widgets and MakeEditLink?
Alex J. Best (Dec 31 2023 at 23:19):
You can use https://leanprover-community.github.io/mathlib4_docs/Std/Tactic/TryThis.html#Std.Tactic.TryThis.addSuggestion for this, which uses proofwidgets. What is makeeditlink?
Frederick Pu (Dec 31 2023 at 23:20):
make edit link is a thing from the ProofWidget library. I'm trying to make a widget that allows the user to draw a contour on the cartesion plane which then gets automatically turned into a let definition
Patrick Massot (Jan 01 2024 at 00:32):
You can take inspiration from widget code at https://github.com/leanprover-community/mathlib4/blob/master/Mathlib/Tactic/Widget/SelectPanelUtils.lean or https://github.com/PatrickMassot/verbose-lean4/blob/master/Verbose/Tactics/Widget.lean
Last updated: May 02 2025 at 03:31 UTC