Skip to content

refactor: rfl tactic: do not use Kernel.isDefEq - #3772

Merged
nomeata merged 4 commits into
masterfrom
joachim/rfl-no-kernel-defeq
Sep 3, 2024
Merged

nomeata merged 4 commits into
masterfrom
joachim/rfl-no-kernel-defeq

Conversation

@nomeata

@nomeata nomeata commented Mar 26, 2024 •

Copy link
Copy Markdown
Collaborator

Sebastian mentioned that the use of the kernel defeq was to work around
a performance issue that was fixed since. Let's see if we can do
without.

This is also a semantic change: Ground terms (no free vars, no mvars) are reduced at
“all” transparency even if the the transparency setting is default. This was the case
even before 03f6b87 switched to the kernel defeq
checking for performance. It seems that this is rather surprising behavior from the user
point of view. The fallout on batteries and mathlib is rather limited, only a few
rfl proofs seem to have (inadvertently or not) have relied on this.

The speedcenter reports no significant regressions on core or mathlib.

@nomeata
nomeata requested a review from kim-em March 26, 2024 09:38
@github-actions
github-actions Bot temporarily deployed to lean-lang.org/lean4/doc March 26, 2024 09:50 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 Mar 26, 2024
ghost pushed a commit to leanprover-community/batteries that referenced this pull request Mar 26, 2024
ghost pushed a commit to leanprover-community/mathlib4 that referenced this pull request Mar 26, 2024
@ghost ghost added the breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan label Mar 26, 2024
@ghost

ghost commented Mar 26, 2024 •

Copy link
Copy Markdown

Mathlib CI status (docs):

@github-actions
github-actions Bot temporarily deployed to lean-lang.org/lean4/doc March 26, 2024 10:49 Inactive
ghost pushed a commit to leanprover-community/batteries that referenced this pull request Mar 26, 2024
ghost pushed a commit to leanprover-community/mathlib4 that referenced this pull request Mar 26, 2024
@nomeata
nomeata force-pushed the joachim/rfl-no-kernel-defeq branch from d7dd520 to 159861f Compare May 13, 2024 17:20
ghost pushed a commit to leanprover-community/batteries that referenced this pull request May 13, 2024
ghost pushed a commit to leanprover-community/mathlib4 that referenced this pull request May 13, 2024
Sebastian mentioned that the use of the kernel defeq was to work around
a performance issue that was fixed since. Let's see if we can do
without.
@nomeata
nomeata force-pushed the joachim/rfl-no-kernel-defeq branch from 159861f to cc4164e Compare June 9, 2024 10:00
ghost pushed a commit to leanprover-community/batteries that referenced this pull request Jun 9, 2024
ghost pushed a commit to leanprover-community/mathlib4 that referenced this pull request Jun 9, 2024
@ghost ghost added the release-ci Enable all CI checks for a PR, like is done for releases label Jun 9, 2024
nomeata added a commit to leanprover-community/mathlib4 that referenced this pull request Jun 9, 2024
nomeata added a commit to leanprover-community/mathlib4 that referenced this pull request Jun 9, 2024
nomeata added a commit to leanprover-community/mathlib4 that referenced this pull request Jun 9, 2024
nomeata added a commit to leanprover-community/mathlib4 that referenced this pull request Jun 9, 2024
nomeata added a commit to leanprover-community/mathlib4 that referenced this pull request Jun 10, 2024
@github-actions
github-actions Bot temporarily deployed to lean-lang.org/lean4/doc June 10, 2024 08:37 Inactive
ghost pushed a commit to leanprover-community/batteries that referenced this pull request Jun 10, 2024
ghost pushed a commit to leanprover-community/mathlib4 that referenced this pull request Jun 10, 2024
@ghost ghost removed the breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan label Jun 10, 2024
@ghost ghost added the builds-mathlib CI has verified that Mathlib builds against this PR label Jun 10, 2024
@nomeata
nomeata marked this pull request as ready for review June 10, 2024 16:17
@nomeata
nomeata requested a review from leodemoura as a code owner June 10, 2024 16:17
@nomeata nomeata added the awaiting-review Waiting for someone to review the PR label Jun 10, 2024
@nomeata nomeata added will-merge-soon …unless someone speaks up and removed awaiting-review Waiting for someone to review the PR labels Aug 30, 2024
@nomeata

nomeata commented Aug 30, 2024 •

Copy link
Copy Markdown
Collaborator Author

Got 🟢 . Will update the adaption branches to check for new surprises, and then merge.

@leanprover-bot leanprover-bot added the P-medium We may work on this issue if we find the time label Aug 30, 2024
@nomeata nomeata removed the release-ci Enable all CI checks for a PR, like is done for releases label Sep 2, 2024
ghost pushed a commit to leanprover-community/batteries that referenced this pull request Sep 2, 2024
ghost pushed a commit to leanprover-community/mathlib4 that referenced this pull request Sep 2, 2024
@github-actions
github-actions Bot temporarily deployed to lean-lang.org/lean4/doc September 2, 2024 12:56 Inactive
ghost pushed a commit to leanprover-community/batteries that referenced this pull request Sep 2, 2024
ghost pushed a commit to leanprover-community/mathlib4 that referenced this pull request Sep 2, 2024
@ghost ghost added breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan builds-mathlib CI has verified that Mathlib builds against this PR and removed builds-mathlib CI has verified that Mathlib builds against this PR breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan labels Sep 2, 2024
@nomeata

nomeata commented Sep 3, 2024

Copy link
Copy Markdown
Collaborator Author

@nomeata
nomeata added this pull request to the merge queue Sep 3, 2024
Merged via the queue into master with commit 4eea578 Sep 3, 2024
@nomeata
nomeata deleted the joachim/rfl-no-kernel-defeq branch September 3, 2024 21:08

This branch was previously deployed

1 inactive deployment
lean-lang.org/lean4/doc — 72a9a107 Deployed Sep 2, 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 P-medium We may work on this issue if we find the time 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.

2 participants