Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - feat(linear_algebra/bilinear_form): add is_refl and ortho_sym for alt_bilin_form #10304

Closed
wants to merge 3 commits into from

Conversation

mcdoll
Copy link
Member

@mcdoll mcdoll commented Nov 12, 2021

Lemma is_refl shows that every alternating bilinear form is reflexive.
Lemma ortho_sym shows that being orthogonal with respect to an alternating bilinear form is symmetric.


Open in Gitpod

…_bilin_form

Lemma is_refl shows that every alternating bilinear form is reflexive.
Lemma ortho_sym shows that being orthogonal with respect to an alternating bilinear form is symmetric.
Copy link
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

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

I think the API for sym_bilin_form / alt_bilin_form / refl_bilin_form is in need of a cleanup, but this change looks like it fits the existing pattern so that cleanup makes sense to leave for another PR.

That cleanup in my mind would be to rename sym_bilin_form.is_sym to bilin_form.is_symm, alt_bilin_form.is_alt to bilin_form.is_alt, etc, if you're interested in making another small PR after this one is merged.

bors d+

src/linear_algebra/bilinear_form.lean Outdated Show resolved Hide resolved
@bors
Copy link

bors bot commented Nov 12, 2021

✌️ mcdoll can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@eric-wieser eric-wieser added the awaiting-CI The author would like to see what CI has to say before doing more work. label Nov 12, 2021
@github-actions github-actions bot added the delegated The PR author may merge after reviewing final suggestions. label Nov 12, 2021
end

lemma ortho_sym (H : is_alt B₁) {x y : M₁} :
is_ortho B₁ x y ↔ is_ortho B₁ y x := refl_bilin_form.ortho_sym (is_refl H)
Copy link
Member

Choose a reason for hiding this comment

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

Note if we made the rename I suggest in another PR, this will become the shorter

  is_ortho B₁ x y ↔ is_ortho B₁ y x := H.is_refl.ortho_sym 

Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
@github-actions github-actions bot removed the awaiting-CI The author would like to see what CI has to say before doing more work. label Nov 13, 2021
@mcdoll
Copy link
Member Author

mcdoll commented Nov 13, 2021

bors r+

bors bot pushed a commit that referenced this pull request Nov 13, 2021
…_bilin_form (#10304)

Lemma `is_refl` shows that every alternating bilinear form is reflexive.
Lemma `ortho_sym` shows that being orthogonal with respect to an alternating bilinear form is symmetric.
@bors
Copy link

bors bot commented Nov 13, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(linear_algebra/bilinear_form): add is_refl and ortho_sym for alt_bilin_form [Merged by Bors] - feat(linear_algebra/bilinear_form): add is_refl and ortho_sym for alt_bilin_form Nov 13, 2021
@bors bors bot closed this Nov 13, 2021
@bors bors bot deleted the symplectic branch November 13, 2021 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated The PR author may merge after reviewing final suggestions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants