Zulip Chat Archive

Stream: Is there code for X?

Topic: Decision procedure for `(ℕ,+,-,≤)`


Geoffrey Irving (Dec 24 2023 at 07:37):

Do we have the decision procedure for ℕ with addition, subtraction, and ordering?

Yaël Dillies (Dec 24 2023 at 07:38):

The tactic omega that recently landed?

Geoffrey Irving (Dec 24 2023 at 07:39):

Perfect, thank you!

Kevin Buzzard (Dec 24 2023 at 08:41):

We've been waiting for this tactic in lean 4 for years and it just landed a few days ago to no fanfare at all, I was very surprised. Perhaps it was just that Scott was going on holiday and didn't have time to announce it, but I am over the moon!

Geoffrey Irving (Dec 24 2023 at 11:50):

Apparently you just have to ask if it exists!

Ruben Van de Velde (Dec 24 2023 at 12:17):

Is there a decision procedure for decision procedures?

Pedro Sánchez Terraf (Dec 24 2023 at 15:36):

Ruben Van de Velde said:

Is there a decision procedure for decision procedures?

Beware of the Haunting Problem :ghost:

Patrick Massot (Dec 24 2023 at 15:50):

Kevin Buzzard said:

We've been waiting for this tactic in lean 4 for years

It's really funny how it feels like we have been using Lean 4 for years. Kevin, we started six months ago.

Kevin Buzzard (Dec 24 2023 at 15:51):

We did, but lean 4 has existed for years and omega was deprecated in lean 3 quite some time ago

Yongyi Chen (Dec 24 2023 at 16:49):

I just grabbed the latest mathlib and I'm still getting tactic 'Mathlib.Tactic.omega' has not been implemented

Eric Rodriguez (Dec 24 2023 at 18:49):

Same, I was excited for this - can't seem to find a PR for it either?

Joachim Breitner (Dec 24 2023 at 21:46):

https://github.com/leanprover/std4/pull/463

Yongyi Chen (Dec 25 2023 at 06:46):

It's because of line 217 in Mathlib.Mathport.Syntax.lean. That file has stubs for tactics which override implemented tactics to claim to the user they are still unimplemented, if Mathlib is imported.

Mario Carneiro (Dec 25 2023 at 07:11):

those are supposed to be removed when they get implemented

Mario Carneiro (Dec 25 2023 at 07:22):

I guess people forgot about this step since it's been so long since we knocked an item off the tactic porting todo list (which is still nonempty!)

Kim Morrison (Jan 04 2024 at 00:28):

#9423

Patrick Massot (Jan 04 2024 at 00:30):

I was sure someone did that already.

Alex J. Best (Jan 04 2024 at 00:47):

Yeah I did #9294, confusing, is your PR against master Scott?

Alex J. Best (Jan 04 2024 at 00:49):

Hm it seems the head commit of Scott's PR is indeed https://github.com/leanprover-community/mathlib4/commit/1be5db8befe8e11141567caec4864747adecb14e which is two weeks old

Kim Morrison (Jan 04 2024 at 01:10):

Thanks. I've been offline for a while. :-)

Kim Morrison (Jan 04 2024 at 01:10):

Annoying that it isn't easier to see this on Github!

Yaël Dillies (Jan 14 2024 at 14:43):

Mario Carneiro said:

I guess people forgot about this step since it's been so long since we knocked an item off the tactic porting todo list

noncomm_ring too was forgotten. I've just opened #9743 to fix this.


Last updated: May 02 2025 at 03:31 UTC