Skip to content

refactor: extract withRecArgInfo from findRecArg - #4549

Merged
nomeata merged 3 commits into
masterfrom
joachim/findRecArg
Jun 26, 2024
Merged

nomeata merged 3 commits into
masterfrom
joachim/findRecArg

Conversation

@nomeata

@nomeata nomeata commented Jun 24, 2024

Copy link
Copy Markdown
Collaborator

this is in preparation for #4542, and extracts from findRecArg the
functionality for trying one particular argument.

It also refactors the code a bit. In particular

  • It reports errors in the order of the parameters, not the order of
    in which they are tried (it tries non-indices first).
  • For every argument it will say why it wasn't tried, even if the
    reason is quite obviously (fixed prefix, or Prop-typed etc.)

Therefore there is some error message churn.

nomeata added 2 commits June 24, 2024 12:27
this is  in preparation for #4542, and extracts from `findRecArg` the
functionality for trying one particular argument.

It also refactors the code a bit. In particular

 * It reports errors in the order of the parameters, not the order of
   in which they are tried (it tries non-indices first).
 * For every argument it will say why it wasn't tried, even if the
   reason is quite obviously (fixed prefix, or `Prop`-typed etc.)

Therefore there is some error message churn.
@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 Jun 24, 2024
ghost pushed a commit to leanprover-community/batteries that referenced this pull request Jun 24, 2024
ghost pushed a commit to leanprover-community/mathlib4 that referenced this pull request Jun 24, 2024
@github-actions
github-actions Bot temporarily deployed to lean-lang.org/lean4/doc June 24, 2024 11:28 Inactive
ghost pushed a commit to leanprover-community/batteries that referenced this pull request Jun 24, 2024
ghost pushed a commit to leanprover-community/mathlib4 that referenced this pull request Jun 24, 2024
@ghost

ghost commented Jun 24, 2024 •

Copy link
Copy Markdown

Mathlib CI status (docs):

@nomeata
nomeata marked this pull request as ready for review June 24, 2024 11:57
@nomeata nomeata added the will-merge-soon …unless someone speaks up label Jun 24, 2024
@ghost ghost added the builds-mathlib CI has verified that Mathlib builds against this PR label Jun 24, 2024
@nomeata
nomeata added this pull request to the merge queue Jun 26, 2024
Merged via the queue into master with commit 18c9792 Jun 26, 2024

This branch was previously deployed

1 inactive deployment
lean-lang.org/lean4/doc — 64b10649 Deployed Jun 24, 2024 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

builds-mathlib CI has verified that Mathlib builds against this PR toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN will-merge-soon …unless someone speaks up

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant