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

lean: Disable autoImplicits #202

Closed
wants to merge 1 commit into from

Conversation

eric-wieser
Copy link
Contributor

@eric-wieser eric-wieser commented Aug 14, 2024

These are a common source of misformalizations. For instance,

(hS : S = fun a k ↦ ∑ i : Fin k, a + i)

has the parenthesization around the summation incorrect, and so i is not in scope. As another example,

theorem putnam_1978_a3
(p : Polynomial ℝ)
(hp : p = 2 * (X ^ 6 + 1) + 4 * (X ^ 5 + X) + 3 * (X ^ 4 + X ^ 2) + 5 * X ^ 3)

is misformalized as "for any Polynomial with name X", not for "the monomial Polynomial.X". With this option on, this now gives an error that X doesn't exist.

The solution is either to add the missing arguments (when the formalization is correct), or fix the formalization (when it is not).

These are a common source of misformalizations.
@eric-wieser eric-wieser changed the title Disable autoImplicits lean: Disable autoImplicits Aug 14, 2024
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.

1 participant