Skip to content

Conversation

@euprunin
Copy link
Collaborator

@euprunin euprunin commented Jan 4, 2026

The goal of this golfing PR is to decrease the number of times lemmas are called explicitly (replacing calls to lemmas with calls to tactics). Any decrease in compilation time is a welcome side effect, although it is not a primary objective.

Trace profiling results (shown if ≥10 ms before or after):

  • Submodule.exists_norm_eq_iInf_of_complete_subspace: 140 ms before, 111 ms after 🎉
  • Submodule.norm_eq_iInf_iff_inner_eq_zero: 225 ms before, 193 ms after 🎉
  • CategoryTheory.PreGaloisCategory.has_decomp_quotients: 282 ms before, 253 ms after 🎉
  • lipschitzGroup.conjAct_smul_ι_mem_range_ι: 216 ms before, 191 ms after 🎉
  • Module.Basis.card_le_card_of_linearIndependent: 94 ms before, 62 ms after 🎉
  • Submodule.quotDualCoannihilatorToDual_nondegenerate: 102 ms before, 90 ms after 🎉
  • Submodule.eq_top_of_finrank_eq: 430 ms before, 334 ms after 🎉
  • Submodule.LinearDisjoint.of_basis_left: 101 ms before, 91 ms after 🎉
  • Submodule.LinearDisjoint.of_basis_right: 100 ms before, 94 ms after 🎉
  • LinearMap.BilinForm.toQuadraticMap_isOrtho: 89 ms before, 74 ms after 🎉
  • NumberField.InfinitePlace.card_isUnramified: 338 ms before, 286 ms after 🎉
  • NumberField.InfinitePlace.card_isUnramified_compl: 352 ms before, 297 ms after 🎉
  • FiniteDimensional.exists_is_basis_integral: 239 ms before, 200 ms after 🎉

This golfing PR is batched under the following guidelines:

  • Up to ~5 changed files per PR
  • Up to ~25 changed declarations per PR
  • Up to ~100 changed lines per PR

Open in Gitpod

@github-actions
Copy link

github-actions bot commented Jan 4, 2026

PR summary 70e9ecf4e8

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/declarations_diff.sh <optional_commit>

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

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


No changes to technical debt.

You can run this locally as

./scripts/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).

@tb65536
Copy link
Collaborator

tb65536 commented Jan 5, 2026

maintainer merge

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

🚀 Pull request has been placed on the maintainer queue by tb65536.

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jan 5, 2026
Copy link
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

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

Thanks 🎉

bors merge

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added ready-to-merge This PR has been sent to bors. and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Jan 5, 2026
mathlib-bors bot pushed a commit that referenced this pull request Jan 5, 2026
The goal of this golfing PR is to decrease the number of times lemmas are called explicitly (replacing calls to lemmas with calls to tactics). Any decrease in compilation time is a welcome side effect, although it is not a primary objective.

Trace profiling results (shown if ≥10 ms before or after):
* `Submodule.exists_norm_eq_iInf_of_complete_subspace`: 140 ms before, 111 ms after  🎉
* `Submodule.norm_eq_iInf_iff_inner_eq_zero`: 225 ms before, 193 ms after  🎉
* `CategoryTheory.PreGaloisCategory.has_decomp_quotients`: 282 ms before, 253 ms after  🎉
* `lipschitzGroup.conjAct_smul_ι_mem_range_ι`: 216 ms before, 191 ms after  🎉
* `Module.Basis.card_le_card_of_linearIndependent`: 94 ms before, 62 ms after  🎉
* `Submodule.quotDualCoannihilatorToDual_nondegenerate`: 102 ms before, 90 ms after  🎉
* `Submodule.eq_top_of_finrank_eq`: 430 ms before, 334 ms after  🎉
* `Submodule.LinearDisjoint.of_basis_left`: 101 ms before, 91 ms after  🎉
* `Submodule.LinearDisjoint.of_basis_right`: 100 ms before, 94 ms after  🎉
* `LinearMap.BilinForm.toQuadraticMap_isOrtho`: 89 ms before, 74 ms after  🎉
* `NumberField.InfinitePlace.card_isUnramified`: 338 ms before, 286 ms after  🎉
* `NumberField.InfinitePlace.card_isUnramified_compl`: 352 ms before, 297 ms after  🎉
* `FiniteDimensional.exists_is_basis_integral`: 239 ms before, 200 ms after  🎉

This golfing PR is batched under the following guidelines:
* Up to ~5 changed files per PR
* Up to ~25 changed declarations per PR
* Up to ~100 changed lines per PR
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Jan 5, 2026

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: golf proofs [Merged by Bors] - chore: golf proofs Jan 5, 2026
@mathlib-bors mathlib-bors bot closed this Jan 5, 2026
kim-em pushed a commit to kim-em/mathlib4 that referenced this pull request Jan 6, 2026
The goal of this golfing PR is to decrease the number of times lemmas are called explicitly (replacing calls to lemmas with calls to tactics). Any decrease in compilation time is a welcome side effect, although it is not a primary objective.

Trace profiling results (shown if ≥10 ms before or after):
* `Submodule.exists_norm_eq_iInf_of_complete_subspace`: 140 ms before, 111 ms after  🎉
* `Submodule.norm_eq_iInf_iff_inner_eq_zero`: 225 ms before, 193 ms after  🎉
* `CategoryTheory.PreGaloisCategory.has_decomp_quotients`: 282 ms before, 253 ms after  🎉
* `lipschitzGroup.conjAct_smul_ι_mem_range_ι`: 216 ms before, 191 ms after  🎉
* `Module.Basis.card_le_card_of_linearIndependent`: 94 ms before, 62 ms after  🎉
* `Submodule.quotDualCoannihilatorToDual_nondegenerate`: 102 ms before, 90 ms after  🎉
* `Submodule.eq_top_of_finrank_eq`: 430 ms before, 334 ms after  🎉
* `Submodule.LinearDisjoint.of_basis_left`: 101 ms before, 91 ms after  🎉
* `Submodule.LinearDisjoint.of_basis_right`: 100 ms before, 94 ms after  🎉
* `LinearMap.BilinForm.toQuadraticMap_isOrtho`: 89 ms before, 74 ms after  🎉
* `NumberField.InfinitePlace.card_isUnramified`: 338 ms before, 286 ms after  🎉
* `NumberField.InfinitePlace.card_isUnramified_compl`: 352 ms before, 297 ms after  🎉
* `FiniteDimensional.exists_is_basis_integral`: 239 ms before, 200 ms after  🎉

This golfing PR is batched under the following guidelines:
* Up to ~5 changed files per PR
* Up to ~25 changed declarations per PR
* Up to ~100 changed lines per PR
@adomani adomani mentioned this pull request Jan 16, 2026
goliath-klein pushed a commit to PrParadoxy/mathlib4 that referenced this pull request Jan 24, 2026
The goal of this golfing PR is to decrease the number of times lemmas are called explicitly (replacing calls to lemmas with calls to tactics). Any decrease in compilation time is a welcome side effect, although it is not a primary objective.

Trace profiling results (shown if ≥10 ms before or after):
* `Submodule.exists_norm_eq_iInf_of_complete_subspace`: 140 ms before, 111 ms after  🎉
* `Submodule.norm_eq_iInf_iff_inner_eq_zero`: 225 ms before, 193 ms after  🎉
* `CategoryTheory.PreGaloisCategory.has_decomp_quotients`: 282 ms before, 253 ms after  🎉
* `lipschitzGroup.conjAct_smul_ι_mem_range_ι`: 216 ms before, 191 ms after  🎉
* `Module.Basis.card_le_card_of_linearIndependent`: 94 ms before, 62 ms after  🎉
* `Submodule.quotDualCoannihilatorToDual_nondegenerate`: 102 ms before, 90 ms after  🎉
* `Submodule.eq_top_of_finrank_eq`: 430 ms before, 334 ms after  🎉
* `Submodule.LinearDisjoint.of_basis_left`: 101 ms before, 91 ms after  🎉
* `Submodule.LinearDisjoint.of_basis_right`: 100 ms before, 94 ms after  🎉
* `LinearMap.BilinForm.toQuadraticMap_isOrtho`: 89 ms before, 74 ms after  🎉
* `NumberField.InfinitePlace.card_isUnramified`: 338 ms before, 286 ms after  🎉
* `NumberField.InfinitePlace.card_isUnramified_compl`: 352 ms before, 297 ms after  🎉
* `FiniteDimensional.exists_is_basis_integral`: 239 ms before, 200 ms after  🎉

This golfing PR is batched under the following guidelines:
* Up to ~5 changed files per PR
* Up to ~25 changed declarations per PR
* Up to ~100 changed lines per PR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants