Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit ea94d7c

Browse files
committed
docs(algebra/module/equiv): correct a misleading comment (#18458)
The linter is saying that the argument is unused because the argument is unused. The comment claiming that it doesn't appear and the linter is just confused is false. We could remove the argument, but the extra generality it would provide is illusory, and it would likely just be inconvenient. This is forward-ported in leanprover-community/mathlib4#2347, though we will need to update the SHA again after this PR is merged.
1 parent 0c1f285 commit ea94d7c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/algebra/module/equiv.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@ variables (e₁₂ : M₁ ≃ₛₗ[σ₁₂] M₂) (e₂₃ : M₂ ≃ₛₗ[σ
240240

241241
include σ₃₁
242242
/-- Linear equivalences are transitive. -/
243-
-- Note: The linter thinks the `ring_hom_comp_triple` argument is doubled -- it is not.
243+
-- Note: the `ring_hom_comp_triple σ₃₂ σ₂₁ σ₃₁` is unused, but is convenient to carry around
244+
-- implicitly for lemmas like `linear_equiv.self_trans_symm`.
244245
@[trans, nolint unused_arguments]
245246
def trans : M₁ ≃ₛₗ[σ₁₃] M₃ :=
246247
{ .. e₂₃.to_linear_map.comp e₁₂.to_linear_map,

0 commit comments

Comments
 (0)