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

fix: type class issues #4114

Closed
wants to merge 3 commits into from
Closed

fix: type class issues #4114

wants to merge 3 commits into from

Conversation

leodemoura
Copy link
Member

Summary:

  • Take synthPendingDepth into account when caching TC results
  • Add maxSynthPendingDepth option with default := 2.
  • Add support for tracking synthPending failures when using set_option diagnostics true

closes #2522
closes #3313
closes #3927

leodemoura added 3 commits May 8, 2024 15:14
This commit also adds supports for tracking `synthPending` failures when using
`set_option diagnostics true`.

It also increases limit 2.

closes #3313
closes #3927
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc May 9, 2024 00:46 Inactive
@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 May 9, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request May 9, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request May 9, 2024
@kim-em kim-em added the full-ci label May 9, 2024
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc May 9, 2024 01:03 Inactive
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan label May 9, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

leanprover-community-mathlib4-bot commented May 9, 2024

Mathlib CI status (docs):

@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc May 9, 2024 01:35 Inactive
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request May 9, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request May 9, 2024
@kim-em kim-em added this pull request to the merge queue May 9, 2024
@kim-em kim-em removed this pull request from the merge queue due to a manual request May 9, 2024
@kim-em
Copy link
Collaborator

kim-em commented May 9, 2024

Speedcenter results on Mathlib (comparing against nightly-testing-2024-05-08, i.e. no changes except this change to Lean, and the two minor adaptations in Mathlib) are available at http://speed.lean-fro.org/mathlib4/compare/74df3d57-7d3a-4c8a-870b-ed5b8ccd5802/to/e7b27246-a3e6-496a-b552-ff4b45c7236e?hash2=fd58d1bdbcaeb92b91d2d047c4a4d4572fda2162.

Unfortunately they are bad: +1.3% instructions, +2.4% wall clock.

@kim-em
Copy link
Collaborator

kim-em commented May 14, 2024

Closing in favour of #4119

github-merge-queue bot pushed a commit that referenced this pull request May 14, 2024
Summary:

- Take `synthPendingDepth` into account when caching TC results
- Add `maxSynthPendingDepth` option with default := 2.
- Add support for tracking `synthPending` failures when using
`set_option diagnostics true`

closes #2522
closes #3313
closes #3927

Identical to #4114  but with `maxSynthPendingDepth := 1`

closes #4114 

cc @semorrison
@kim-em kim-em closed this in #4119 May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
Projects
None yet
3 participants