Skip to content

chore(LinearAlgebra/CliffordAlgebra): rename lemmas and remove defeq abuse - #46612

Open
Nicola9Falciola wants to merge 7 commits into
leanprover-community:masterfrom
Nicola9Falciola:abuse_notatio_1
Open

Nicola9Falciola wants to merge 7 commits into
leanprover-community:masterfrom
Nicola9Falciola:abuse_notatio_1

Conversation

@Nicola9Falciola

@Nicola9Falciola Nicola9Falciola commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

This PR removes the abuse of notation of the type reverse.foo in favor of reverse_foo and remove the protected on those lemmas that should not clash anymore. Some very easy golfing is also making rw into terminal simp.

It also remove two defeq abuse in LinearAlgebra/CliffordAlgebra/Contraction.


@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

PR summary 76791ceffb

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

+ reverse_algebraMap
+ reverse_mul
+ reverse_one

You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci

## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>

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

The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.

Declarations diff (Lean)

✅ Lean-aware diff — post-build, computed from the Lean environment (commit 76791ce).

  • +3 new declarations
  • −0 removed declarations
+CliffordAlgebra.reverse_algebraMap
+CliffordAlgebra.reverse_mul
+CliffordAlgebra.reverse_one

Decrease in strong tech debt: (relative, absolute) = (1.42, 0.00)
Current number Change Type (strong)
1738 -2 backward.defeqAttrib.useBackward
3500 -1 backward.isDefEq.respectTransparency
1958 -1 backward.isDefEq.respectTransparency.types
No changes to weak technical debt.

Current commit 76791ceffb
Reference commit bf427be482

This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:

git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.py 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).

@github-actions github-actions Bot added the t-algebra Algebra (groups, rings, fields, etc) label Nov 27, 2026
@github-actions github-actions Bot added the tech debt Fixes cross-cutting technical debt, see the "technical debt counters" stream on zulip label Nov 28, 2026
@Nicola9Falciola Nicola9Falciola changed the title chore(LinearAlgebra/CliffordAlgebra): rename reverse.map_mul to reverse_mul and similar chore(LinearAlgebra/CliffordAlgebra): remove name abuse and defeq abuse Nov 28, 2026
@themathqueen

Copy link
Copy Markdown
Member

I think "rename lemmas and remove defeq abuse" might be a more appropriate name. "remove name abuse" sounds confusing 😅

@Nicola9Falciola Nicola9Falciola changed the title chore(LinearAlgebra/CliffordAlgebra): remove name abuse and defeq abuse chore(LinearAlgebra/CliffordAlgebra): rename lemmas and remove defeq abuse Nov 28, 2026
@Nicola9Falciola

Copy link
Copy Markdown
Contributor Author

!radar

@leanprover-radar

leanprover-radar commented Nov 30, 2026 •

Copy link
Copy Markdown

Benchmark results for 76791ce against bf427be are in. No significant results found. @Nicola9Falciola

  • 🟥 build//instructions: +2.1G (+0.00%)

Small changes (5✅, 10🟥)

  • 15 hidden

This branch has not been deployed

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

Labels

t-algebra Algebra (groups, rings, fields, etc) tech debt Fixes cross-cutting technical debt, see the "technical debt counters" stream on zulip

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants