-
Notifications
You must be signed in to change notification settings - Fork 439
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
Functional induction principles should prune parmeters #6320
Comments
Likely just a matter of changing this code: lean4/src/Lean/Meta/Tactic/FunInd.lean Lines 722 to 728 in 019f8e1
|
nomeata
added a commit
that referenced
this issue
Dec 6, 2024
This PR removes unnecessary parameters from the funcion induction principles. This is a breaking change; broken code can typically be adjusted simply by passing fewer parameters. Closes #6320
nomeata
added a commit
that referenced
this issue
Dec 7, 2024
This PR removes unnecessary parameters from the funcion induction principles. This is a breaking change; broken code can typically be adjusted simply by passing fewer parameters. Part 1, before stage0 update. Closes #6320
nomeata
added a commit
that referenced
this issue
Dec 7, 2024
This PR removes unnecessary parameters from the funcion induction principles. This is a breaking change; broken code can typically be adjusted simply by passing fewer parameters. Part 2, adjusting after stage0 update. Closes #6320
nomeata
added a commit
that referenced
this issue
Dec 7, 2024
This PR removes unnecessary parameters from the funcion induction principles. This is a breaking change; broken code can typically be adjusted simply by passing fewer parameters. Part 2, adjusting after stage0 update. Closes #6320
nomeata
added a commit
that referenced
this issue
Dec 7, 2024
This PR removes unnecessary parameters from the funcion induction principles. This is a breaking change; broken code can typically be adjusted simply by passing fewer parameters. Part 1, before stage0 update. Closes #6320
nomeata
added a commit
that referenced
this issue
Dec 7, 2024
This PR removes unnecessary parameters from the funcion induction principles. This is a breaking change; broken code can typically be adjusted simply by passing fewer parameters. Part 2, adjusting after stage0 update. Closes #6320
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It can happen that (fixed) function parameters end up completely unused in the function’s induction principle. For example in
The parameter
f
is used neither in the theorem statement nor the proof.I originally left these parameters there, assuming they wouldn’t hurt and would help the user knowing how to instantiate the induction principle.
But in practice they get in the way, for example in this proof, where the function of interest appears under a lambda:
Here I cannot pass any
f
to the induction principle, but the proof would make perfect sense otherwise.Version
info: Lean 4.16.0-nightly-2024-12-05
The text was updated successfully, but these errors were encountered: