Sitelet https://github.com/math-comp/math-comp/pull/1519
Skip to content

Lock form_of_matrix - #1519

Merged
CohenCyril merged 1 commit into
math-comp:masterfrom
proux01:lock-form-matrix
Feb 27, 2026
Merged

CohenCyril merged 1 commit into
math-comp:masterfrom
proux01:lock-form-matrix

Conversation

@proux01

@proux01 proux01 commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

Extracted out of #1338

Minimal TODO list
  • added changelog entries with doc/changelog/make-entry.sh
  • added corresponding documentation in the headers
  • tried to abide by the contribution guide
  • this PR contains an optimum number of meaningful commits

See this Checklist for details.

Automatic note to reviewers

Read this Checklist.

@proux01 proux01 left a comment

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.

CI seems happy but we should bench this (and open the two HB issues) before merging.

Comment thread algebra/spectral.v
Comment on lines -274 to -281
(*
(**
TODO: bug report
we were expecting
without the lock we were expecting
HB.instance Definition _ n := Bilinear.on (@dotmx n).
to be sufficient to equip dotmx with the bilinear structure
but needed to use .copy in the end as in:
*)
HB.instance Definition _ n := Bilinear.copy (@dotmx n) dotmx_def.

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.

We should understand what's happening here and do the bug report.

Comment thread algebra/spectral.v
Comment on lines +282 to +296
TODO: feature request
implement copy modulo lock

Lemma dotmx_bilinear n : isBilinear _ _ _ _ *%R (conjC \; *%R) (@dotmx C n).
Proof.
rewrite unlock; constructor => /= ?.
- exact: linearBl.
- exact: linearBr.
- exact: linearZl_LR.
- exact: linearZr_LR.
Qed.
HB.instance Definition _ n := dotmx_bilinear n.
**)

HB.instance Definition _ n := Bilinear.copy (@dotmx C n) (@dotmx C n).

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.

We should open the HB issue and remove that comment before merging.

@proux01 proux01 mentioned this pull request Jan 14, 2026
7 tasks
@CohenCyril
CohenCyril merged commit 5da9ad1 into math-comp:master Feb 27, 2026
143 checks passed
@proux01
proux01 deleted the lock-form-matrix branch March 1, 2026 09:18
@proux01

proux01 commented Mar 1, 2026

Copy link
Copy Markdown
Contributor Author

@CohenCyril this could be worth a changelog entry maybe?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants