Skip to content

Conversation

@kim-em
Copy link

@kim-em kim-em commented Dec 8, 2025

This PR adds register_try?_tactic calls for all finishing tactics currently registered with register_hint, which are not already covered by grind modules (i.e. I have not registered linarith or ring), using identical priority values:

Common tactics (Common.lean):

  • tauto (priority 500)
  • aesop (priority 80)
  • fun_prop (priority 200)

Domain-specific tactics:

  • norm_num (1000), noncomm_ring (1000)
  • field (850), bound (70)
  • finiteness (1000), compute_degree (1000), positivity (1000), field_simp (1000)

🤖 Prepared with Claude Code

@kim-em kim-em force-pushed the add-try-registrations branch from 9d26e23 to 2fbf413 Compare December 8, 2025 00:23
Register a selection of mathlib finishing tactics with the `try?` tactic:
- Common finishing tactics: tauto, aesop, fun_prop
- Domain-specific finishing tactics: norm_num, noncomm_ring, field,
  bound, finiteness, compute_degree, positivity, field_simp

These tactics are registered alongside the existing `hint` registrations
to make them available to the built-in `try?` tactic in Lean 4.27.0+.

🤖 Prepared with Claude Code
@kim-em kim-em force-pushed the add-try-registrations branch from 2fbf413 to 3d04a0d Compare December 8, 2025 00:35
@kim-em
Copy link
Author

kim-em commented Dec 8, 2025

This PR is now blocked on leanprover/lean4#11547, which fixes the linter errors by marking the auto-generated auxTryTactic* definitions as internal.

Once that PR merges and appears in nightly-2025-12-08 (or later), this PR should pass without any changes.

@kim-em
Copy link
Author

kim-em commented Dec 9, 2025

Waiting on #137 to be merged first.

Edit: done now.

@kim-em
Copy link
Author

kim-em commented Dec 10, 2025

I'm going to take LGTM from Johan on Zulip as a

bors merge

mathlib-bors bot pushed a commit that referenced this pull request Dec 10, 2025
This PR adds `register_try?_tactic` calls for all finishing tactics currently registered with `register_hint`, which are not already covered by `grind` modules (i.e. I have not registered `linarith` or `ring`), using identical priority values:

**Common tactics** (Common.lean):
- tauto (priority 500)
- aesop (priority 80)
- fun_prop (priority 200)

**Domain-specific tactics**:
- norm_num (1000), noncomm_ring (1000)
- field (850), bound (70)
- finiteness (1000), compute_degree (1000), positivity (1000), field_simp (1000)


🤖 Prepared with Claude Code
@mathlib-bors
Copy link

mathlib-bors bot commented Dec 10, 2025

This PR was included in a batch that successfully built, but then failed to merge into bump/v4.27.0 (it was a non-fast-forward update). It will be automatically retried.

mathlib-bors bot pushed a commit that referenced this pull request Dec 10, 2025
This PR adds `register_try?_tactic` calls for all finishing tactics currently registered with `register_hint`, which are not already covered by `grind` modules (i.e. I have not registered `linarith` or `ring`), using identical priority values:

**Common tactics** (Common.lean):
- tauto (priority 500)
- aesop (priority 80)
- fun_prop (priority 200)

**Domain-specific tactics**:
- norm_num (1000), noncomm_ring (1000)
- field (850), bound (70)
- finiteness (1000), compute_degree (1000), positivity (1000), field_simp (1000)


🤖 Prepared with Claude Code
@mathlib-bors
Copy link

mathlib-bors bot commented Dec 10, 2025

Build failed:

@kim-em
Copy link
Author

kim-em commented Dec 10, 2025

bors merge

mathlib-bors bot pushed a commit that referenced this pull request Dec 11, 2025
This PR adds `register_try?_tactic` calls for all finishing tactics currently registered with `register_hint`, which are not already covered by `grind` modules (i.e. I have not registered `linarith` or `ring`), using identical priority values:

**Common tactics** (Common.lean):
- tauto (priority 500)
- aesop (priority 80)
- fun_prop (priority 200)

**Domain-specific tactics**:
- norm_num (1000), noncomm_ring (1000)
- field (850), bound (70)
- finiteness (1000), compute_degree (1000), positivity (1000), field_simp (1000)


🤖 Prepared with Claude Code
@mathlib-bors
Copy link

mathlib-bors bot commented Dec 11, 2025

Pull request successfully merged into bump/v4.27.0.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: register mathlib tactics with try? [Merged by Bors] - feat: register mathlib tactics with try? Dec 11, 2025
@mathlib-bors mathlib-bors bot closed this Dec 11, 2025
@mathlib-bors mathlib-bors bot deleted the add-try-registrations branch December 11, 2025 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants