Skip to content

Add vector_space_dim for matrix spaces #2109

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

emikelsons
Copy link
Contributor

@emikelsons emikelsons commented Jun 18, 2025

  • Added vector_space_dim for matrix spaces and matrix rings over fields,
  • Expanded the documentation for vector_space_dim slightly.

This partially has the PR oscar-system/Oscar.jl#4967 and issue oscar-system/Oscar.jl#4606 in mind.
@fingolfin

Copy link

codecov bot commented Jun 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.34%. Comparing base (3abc3d0) to head (19f15bd).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2109      +/-   ##
==========================================
- Coverage   88.36%   88.34%   -0.02%     
==========================================
  Files         126      126              
  Lines       31668    31676       +8     
==========================================
+ Hits        27982    27984       +2     
- Misses       3686     3692       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

src/Rings.jl Outdated
krull_dim(::Field) = 0
krull_dim(::Integers) = 1
vector_space_dim(::Field) = 1
Copy link
Member

Choose a reason for hiding this comment

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

That doesn't fit together with the docstring which claim that this is the dimension over base_ring(F) where F is the field given as input.

But this will almost always be wrong here, as base_ring(F) != F basically always holds.

So either we don't define this here; or we have to reconsider how a user can ascertain the "base field" for a "vector space" -- say by introducing a dedicated function for this.

@thofma @fieker you have implemented algebras in Hecke; what is the convention for getting the field over which the algebra is defined? Same for e.g. field extensions I guess...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I could also rewrite the documentation, i.e., I could say that it will be over base_ring(F), when base_ring(F) applies.

Copy link
Member

Choose a reason for hiding this comment

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

So either we don't define this here; or we have to reconsider how a user can ascertain the "base field" for a "vector space" -- say by introducing a dedicated function for this.

I think we should not define it.

@thofma @fieker you have implemented algebras in Hecke; what is the convention for getting the field over which the algebra is defined? Same for e.g. field extensions I guess...

The infamous base_ring. (But I was thinking about changing it to base_field).

@emikelsons emikelsons changed the title Add vector_space_dim for matrix spaces and add some aliases Add vector_space_dim for matrix spaces Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants