Skip to content

documentation of QQbar #3416

@micjoswig

Description

@micjoswig

The Calcium implementation of QQbar becomes increasingly important for OSCAR. So it needs to be properly documented.

Searching for "QQbar" kind of works but only leads to the Nemo docs.

As I think, QQbar should also be mentioned here.

QQbar is used, e.g., for polyhedral computations in real number fields (with fixed embeddings). This works nicely, but the overall behavior could be surprising for some users. Crucially, QQbar implements a comparison function, which is only defined for real numbers. The implementation is correct as it dies with an error if the user tries to compare complex numbers with nonzero imaginary parts. Yet, this "feature" allows QQbar as a type parameter, e.g., for the Polyhedron class. And this is unexpected, because the algebraic closure of the rationals is not an ordered field.

Again, there is nothing wrong with the implementation. But the docs need to explain this carefully.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions