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: offset typeclass checking in simp rules #3838

Merged
merged 1 commit into from
Apr 7, 2024

Conversation

joehendrix
Copy link
Contributor

@joehendrix joehendrix commented Apr 6, 2024

This changes how Nat typeclass checks in offset terms from syntactic equality to definitional equality with "instances" transparency.

This may have a negative performance penalty in isOffset?, but it should be small in common cases since the relevant instances are small terms.

This closes #3836

@joehendrix
Copy link
Contributor Author

!bench

This changes how Nat typeclass checks in offset terms from syntactic
equality to definitional equality with "instances" transparency.

This may have a negative performance penalty in `isOffset?`, but it should
be small in common cases since the relevant instances are small terms.
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc April 6, 2024 13:21 Inactive
@leanprover-bot
Copy link
Collaborator

Here are the benchmark results for commit 042b1df.
There were significant changes against commit 0aa6831:

  Benchmark   Metric   Change
  ====================================
- stdlib      dsimp      4.4% (18.1 σ)

@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 Apr 6, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Mathlib CI can not be attempted yet, as the nightly-testing-2024-04-05 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-mathlib, Mathlib CI should run now. (2024-04-06 13:25:26)

@leodemoura leodemoura added this pull request to the merge queue Apr 7, 2024
Merged via the queue into master with commit a82f0d9 Apr 7, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simp offset checking fails with non-canonical instances.
4 participants