Zulip Chat Archive

Stream: new members

Topic: Choose fastest tactic


Martin Dvořák (Aug 17 2022 at 20:19):

How do I choose the fastest tactic when hint shows me the following output?

the following tactics solve the goal:
----
Try this: omega
Try this: nlinarith
Try this: linarith
Try this: ring
Try this: finish

Patrick Massot (Aug 17 2022 at 20:21):

omega and finish should be slow. nlinarith strictly contains linarith

Patrick Massot (Aug 17 2022 at 20:22):

ring and linarith are probably comparable

Martin Dvořák (Aug 17 2022 at 20:30):

Can I see it from the output? Is it ordered with respect to the number of steps each tactic had to execute? Or how can I display this information?

Patrick Massot (Aug 17 2022 at 20:31):

You can't.

Martin Dvořák (Aug 17 2022 at 20:32):

Not even by editing the code? If I want to benchmark before choosing...

Yaël Dillies (Aug 17 2022 at 20:54):

You can always look at the times with the profiler. set_option profiler true.

Martin Dvořák (Aug 17 2022 at 20:59):

Can I display its result for a specific line of code? I'm looking at the output and I'm feeling dumb.


Last updated: Dec 20 2023 at 11:08 UTC