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

bug in TorsionQuadraticForm.normal_form() #24864

Closed
simonbrandhorst opened this issue Feb 28, 2018 · 15 comments
Closed

bug in TorsionQuadraticForm.normal_form() #24864

simonbrandhorst opened this issue Feb 28, 2018 · 15 comments

Comments

@simonbrandhorst
Copy link

sage: L1=IntegralLattice(matrix([[-4,0,0],[0,4,0],[0,0,-2]]))
sage: AL1=L1.discriminant_group()
sage: L2=IntegralLattice(matrix([[-4,0,0],[0,-4,0],[0,0,2]]))
sage: AL2=L2.discriminant_group()
sage: AL1.normal_form()
Finite quadratic module over Integer Ring with invariants (2, 4, 4)
Gram matrix of the quadratic form with values in Q/2Z:
[1/4   0   0]
[  0 5/4   0]
[  0   0 1/2]
sage: AL2.normal_form()
Finite quadratic module over Integer Ring with invariants (2, 4, 4)
Gram matrix of the quadratic form with values in Q/2Z:
[7/4   0   0]
[  0 7/4   0]
[  0   0 1/2]

but:

sage: [x,y,z]=AL2.smith_form_gens()
sage: AL2.submodule_with_gens([x+z,y+x-2*z,x-2*z-2*y])
Finite quadratic module over Integer Ring with invariants (2, 4, 4)
Gram matrix of the quadratic form with values in Q/2Z:
[1/4   0   0]
[  0 5/4   0]
[  0   0 1/2]

Component: quadratic forms

Author: Simon Brandhorst

Branch/Commit: 2babaae

Reviewer: Paolo Menegatti

Issue created by migration from https://trac.sagemath.org/ticket/24864

@simonbrandhorst
Copy link
Author

Author: Simon Brandhorst

@simonbrandhorst
Copy link
Author

@simonbrandhorst
Copy link
Author

Commit: 4825174

@simonbrandhorst
Copy link
Author

New commits:

4825174Fixed a bug in normal_form of a torsion_quadratic_module

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 28, 2018

Changed commit from 4825174 to 893ba1c

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 28, 2018

Branch pushed to git repo; I updated commit sha1. New commits:

893ba1ctrivial doc change

@sagetrac-pmenegat
Copy link
Mannequin

sagetrac-pmenegat mannequin commented Mar 1, 2018

comment:5

I've done some tests and it seems ok to me

@simonbrandhorst
Copy link
Author

Reviewer: Paolo Menegatti

@simonbrandhorst
Copy link
Author

comment:7

Thank you for the review. If you review something, please remember to put your name in the reviewers field. :)

@sagetrac-pmenegat
Copy link
Mannequin

sagetrac-pmenegat mannequin commented Mar 1, 2018

comment:8

I will remember for the next time

@vbraun
Copy link
Member

vbraun commented Mar 4, 2018

comment:9

Merge conflict

@simonbrandhorst
Copy link
Author

comment:10

I will merge in the next beta as soon as it is available.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 13, 2018

Changed commit from 893ba1c to 2babaae

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 13, 2018

Branch pushed to git repo; I updated commit sha1. New commits:

2babaaeMerge branch 'develop' into t/24864/bug_in_torsionquadraticform_normal_form__

@vbraun
Copy link
Member

vbraun commented Mar 21, 2018

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

No branches or pull requests

2 participants