Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: literals, lower and upper bounds in the offset constraint module within grind #6648

Merged
merged 5 commits into from
Jan 15, 2025

Conversation

leodemoura
Copy link
Member

This PR adds support for numerals, lower & upper bounds to the offset constraint module in the grind tactic. grind can now solve examples such as:

example (f : Nat → Nat) :
        f 2 = a →
        b ≤ 1 → b ≥ 1 →
        c = b + 1 →
        f c = a := by
  grind

In the example above, the literal 2 and the lower&upper bounds, b ≤ 1 and b ≥ 1, are now processed by offset constraint module.

@leodemoura leodemoura added the changelog-language Language features, tactics, and metaprograms label Jan 15, 2025
@leodemoura leodemoura enabled auto-merge January 15, 2025 02:30
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc January 15, 2025 02:38 Inactive
@leodemoura leodemoura added this pull request to the merge queue Jan 15, 2025
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Jan 15, 2025
@leanprover-community-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 5d6bf75795c7efa1e6346b77e1762d1f9d0adc63 --onto e9bd9807ef7a983365df9ac55d35040d0b2d5ef2. (2025-01-15 02:57:19)

Merged via the queue into master with commit 8d69909 Jan 15, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-language Language features, tactics, and metaprograms toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants