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

omegaDefault documentation for aesop #6548

Closed
3 tasks done
b-mehta opened this issue Jan 6, 2025 · 0 comments · Fixed by #6549
Closed
3 tasks done

omegaDefault documentation for aesop #6548

b-mehta opened this issue Jan 6, 2025 · 0 comments · Fixed by #6549
Labels
bug Something isn't working

Comments

@b-mehta
Copy link
Contributor

b-mehta commented Jan 6, 2025

Prerequisites

Please put an X between the brackets as you perform the following steps:

Description

The documentation for the omegaDefault tactic gives a broken example for aesop usage.

Context

I tried to use omega with aesop but the documentation example was not valid. It says:

/-- The `omega` tactic, for resolving integer and natural linear arithmetic problems. This
`TacticM Unit` frontend with default configuration can be used as an Aesop rule, for example via
the tactic call `aesop (add 50% tactic Lean.Omega.omegaDefault)`. -/

but this does not work:

import Aesop

example : 1 = 1 := by
  aesop (add 50% tactic Lean.Omega.omegaDefault)

Steps to Reproduce

  1. Code as above

Expected behavior: Example tactic call succeeds.

Actual behavior: Example tactic call fails.

Versions

Lean 4.16.0-rc1 on live.lean-lang.org
Target: x86_64-unknown-linux-gnu on live.lean-lang.org

Impact

Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.

@b-mehta b-mehta added the bug Something isn't working label Jan 6, 2025
github-merge-queue bot pushed a commit that referenced this issue Jan 6, 2025
luisacicolini pushed a commit to opencompl/lean4 that referenced this issue Jan 21, 2025
JovanGerb pushed a commit to JovanGerb/lean4 that referenced this issue Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant