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

chore: bump Lean to v4.9.0 #119

Merged
merged 5 commits into from
Jul 8, 2024
Merged

chore: bump Lean to v4.9.0 #119

merged 5 commits into from
Jul 8, 2024

Conversation

joewatt95
Copy link
Contributor

@joewatt95 joewatt95 commented Jul 6, 2024

This bumps Lean and Mathlib to the latest (as of 2024-7-6) stable version.

@joewatt95 joewatt95 marked this pull request as draft July 6, 2024 03:09
@joewatt95 joewatt95 marked this pull request as ready for review July 6, 2024 08:05
@@ -5,7 +5,8 @@ Released under Apache 2.0 license as described in the file LICENSE.
Authors: Abdalrhman Mohamed
-/

import Mathlib.Data.Real.Basic
import Mathlib.Data.Real.Star
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is needed as Real.Basic as per 4.8.0 has been split up to Real.Basic and Real.Star as per 4.9.0. Reverting this results in the following error when tests are run:

Test/linarith.lean:146:2: error: [arithPolyNorm]: could not prove x - y = -x + y

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the error above the only one caused by the version change? If so, then let's keep import Mathlib.Data.Real.Basic. This error message is an instance of a bigger issue that will be resolved with once cvc5/#10911 is merged.

Copy link
Contributor Author

@joewatt95 joewatt95 Jul 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, this is the only failing test case caused by the version change. As per your suggestion, I have in dff5fb8 reverted import Mathlib.Data.Real.Star to import Mathlib.Data.Real.Basic, and updated the aforementioned test case to account for that error.

Also, thank you for mentioning the related cvc5 issue. I found this test case breakage to be rather puzzling, and suspected that there may be something deeper going on here.

Copy link
Collaborator

@abdoo8080 abdoo8080 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @joewatt95! Thanks for the PR! It looks good to me. I left just one minor comment.

@@ -5,7 +5,8 @@ Released under Apache 2.0 license as described in the file LICENSE.
Authors: Abdalrhman Mohamed
-/

import Mathlib.Data.Real.Basic
import Mathlib.Data.Real.Star
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the error above the only one caused by the version change? If so, then let's keep import Mathlib.Data.Real.Basic. This error message is an instance of a bigger issue that will be resolved with once cvc5/#10911 is merged.

@abdoo8080 abdoo8080 merged commit 91ac7f4 into ufmg-smite:main Jul 8, 2024
2 checks passed
mhk119 pushed a commit to mhk119/lean-smt that referenced this pull request Jul 29, 2024
* bump Lean to v4.9.0

* Fix compilation of Smt.Real

* Fix expected outputs of most test cases

* import Real.Star instead of Real.Basic

* Revert import Real.Star -> Real.Basic, update test case to reflect failure
@joewatt95 joewatt95 deleted the v4.9.0 branch August 1, 2024 01:55
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