Skip to content

Graduate "Quadratic forms and isometries" from experimental to officially supported#5046

Merged
simonbrandhorst merged 9 commits intooscar-system:masterfrom
StevellM:sm/promote_to_src
Jul 3, 2025
Merged

Graduate "Quadratic forms and isometries" from experimental to officially supported#5046
simonbrandhorst merged 9 commits intooscar-system:masterfrom
StevellM:sm/promote_to_src

Conversation

@StevellM
Copy link
Copy Markdown
Member

@StevellM StevellM commented Jul 1, 2025

Close #4796.

Move the project QuadFormAndIsom from experimental to src/NumberTheory.

At the same time, in order to have consistency within the documentation, I have moved the chapter on "Quadratic and Hermitian forms" to under "Number Theory" of the manual (it is currently under "Linear Algebra").

I have merged the old experimental/QuadFormAndIsom/src/serialization.jl with the existing file src/Serialization/QuadForm.jl.
@antonydellavecchia I had a problem with the function test_save_load_roundtrip while running the tests locally, so I moved the content of experimental/QuadFormAndIsom/test/setup_tests.jl at the beginning of test/NumberTheory/QuadFormAndIsom.jl. Is it OK like this or is there another way ?

@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.84%. Comparing base (3e33213) to head (7c5a361).
⚠️ Report is 163 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5046      +/-   ##
==========================================
- Coverage   84.86%   84.84%   -0.03%     
==========================================
  Files         698      696       -2     
  Lines       94290    94320      +30     
==========================================
  Hits        80022    80022              
- Misses      14268    14298      +30     
Files with missing lines Coverage Δ
src/NumberTheory/QuadFormAndIsom.jl 100.00% <100.00%> (ø)
src/NumberTheory/QuadFormAndIsom/embeddings.jl 96.09% <ø> (ø)
src/NumberTheory/QuadFormAndIsom/enumeration.jl 83.54% <ø> (ø)
...eory/QuadFormAndIsom/hermitian_miranda_morrison.jl 95.06% <ø> (ø)
...erTheory/QuadFormAndIsom/lattices_with_isometry.jl 99.71% <ø> (ø)
src/NumberTheory/QuadFormAndIsom/printings.jl 100.00% <ø> (ø)
...mberTheory/QuadFormAndIsom/spaces_with_isometry.jl 100.00% <ø> (ø)
src/NumberTheory/QuadFormAndIsom/types.jl 100.00% <ø> (ø)
src/Oscar.jl 62.82% <ø> (ø)
src/Serialization/QuadForm.jl 100.00% <100.00%> (ø)

... and 17 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread test/NumberTheory/QuadFormAndIsom.jl Outdated
Comment on lines +1 to +2
include(joinpath(Oscar.oscardir, "test", "Serialization", "setup_tests.jl"))
include(joinpath(Oscar.oscardir, "test", "Serialization", "upgrades", "setup_tests.jl"))
Copy link
Copy Markdown
Collaborator

@antonydellavecchia antonydellavecchia Jul 1, 2025

Choose a reason for hiding this comment

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

you shouldn't need these lines here.
Does the error have to do with the upgrade script?
whats the error exactly?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think you need to move the serialization related tests from this file to test/Serialization/QuadForm.jl, and then you don't need these two lines anymore.
I did the same thing when moving root systems to src half a year ago, aka move all serialization tests to some file in the test/Serialization folder

Copy link
Copy Markdown
Member Author

@StevellM StevellM Jul 2, 2025

Choose a reason for hiding this comment

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

you shouldn't need these lines here. Does the error have to do with the upgrade script? whats the error exactly?

The errors I encountered are "test_save_load_roundtrip not defined" and same with "test_1_4_0_upgrade is not defined".
Following Lars' suggestion, I have moved the "test save roundtrip" tests inside the Serialization/QuadForm.jl test file, and for the upgrade test, I have removed ZZLatWithIsom from the exclude list in file Serialization/upgrades/runtests (last line). See the upcoming commit

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah, looks good like this. Let's wait for CI to agree

@simonbrandhorst simonbrandhorst merged commit ccab06e into oscar-system:master Jul 3, 2025
36 of 37 checks passed
@lgoettgens lgoettgens changed the title Move QuadFormAndIsom to source Graduate Quadratic forms and isometries from experimental to officially supported Aug 26, 2025
@lgoettgens lgoettgens changed the title Graduate Quadratic forms and isometries from experimental to officially supported Graduate "Quadratic forms and isometries" from experimental to officially supported Aug 26, 2025
@lgoettgens lgoettgens added the release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes label Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release notes: highlight release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes topic: number theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move QuadFormAndIsom from experimental to source

4 participants