Skip to content

chore: call dsimp in the default tactic of ContinuousLinearMap#37386

Open
gasparattila wants to merge 3 commits intoleanprover-community:masterfrom
gasparattila:CLM-dsimp
Open

chore: call dsimp in the default tactic of ContinuousLinearMap#37386
gasparattila wants to merge 3 commits intoleanprover-community:masterfrom
gasparattila:CLM-dsimp

Conversation

@gasparattila
Copy link
Copy Markdown
Contributor


This will also reduce the breakage in #35548.

Open in Gitpod

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 30, 2026

PR summary d194281a48

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

No declarations were harmed in the making of this PR! 🐙

You can run this locally as follows
## summary with just the declaration names:
./scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/reporting/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

Comment on lines +40 to +41
cont : Continuous toFun := by
first | fun_prop | eta_expand; dsimp -failIfUnchanged; fun_prop
Copy link
Copy Markdown
Collaborator

@themathqueen themathqueen Mar 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not just the following? (is it slower?)

Suggested change
cont : Continuous toFun := by
first | fun_prop | eta_expand; dsimp -failIfUnchanged; fun_prop
cont : Continuous toFun := by eta_expand; dsimp -failIfUnchanged; fun_prop

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CStarMatrix.toCLM fails if we use eta_expand. The issue seems to be that after eta_expand, the function isn't well-typed under reducible transparency. This particular example doesn't work with with_reducible eta_expand; dsimp either because of defeq abuse around WithCStarModule.

There could also be some continuous map that is the composition of non-continuous maps such that its simp normal form uses the non-continuous maps. I didn't find such a definition involving linear maps, though.

@themathqueen
Copy link
Copy Markdown
Collaborator

Once #37009 gets merged, can you merge master and remove the cont from the definition of CFC.conjSqrt in Mathlib/Analysis/SpecialFunctions/ContinuousFunctionalCalculus/Rpow/ConjSqrt.lean?

@themathqueen themathqueen added the t-topology Topological spaces, uniform spaces, metric spaces, filters label Apr 1, 2026
Copy link
Copy Markdown
Collaborator

@themathqueen themathqueen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable, thanks!
I'm not an expert in fun_prop attributions, so will let someone else review these as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-topology Topological spaces, uniform spaces, metric spaces, filters

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants