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 BaseChangeOrthogonalBilinear resp. BaseChangeOrthogonalQuadratic or mistake in their source code documentation #59

Open
fingolfin opened this issue Apr 4, 2024 · 1 comment
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@fingolfin
Copy link
Member

fingolfin commented Apr 4, 2024

The comment before BaseChangeOrthogonalBilinear and BaseChangeOrthogonalQuadratic indicate that the second entry of the triple they returns indicates the rank of the (canonical) form. But this does not seem to be true in general.

For BaseChangeOrthogonalBilinear it seems to actually return the rank minus one.

Question is: is the comment wrong, or the code? To decide this, one should look at where this value is used, e.g. to compute the Witt index of a form.

For BaseChangeOrthogonalQuadratic I do not yet quite understand what it is.

@fingolfin fingolfin changed the title Bug in BaseChangeOrthogonalBilinear or its source code documentation Bug in BaseChangeOrthogonalBilinear resp. BaseChangeOrthogonalQuadratic or mistake in their source code documentation Apr 4, 2024
@fingolfin fingolfin added bug Something isn't working documentation Improvements or additions to documentation labels Oct 16, 2024
@jdebeule
Copy link
Collaborator

This code has been used extensively to compute the radical of a form, so I am convinced this is about the documentation. The number could be defined more clearly as follows. If n is the dimension of the vector space, then n-r is the dimension of the radical of the form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants