-
Notifications
You must be signed in to change notification settings - Fork 67
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
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. 🚀 New features to boost your workflow:
|
src/Rings.jl
Outdated
krull_dim(::Field) = 0 | ||
krull_dim(::Integers) = 1 | ||
vector_space_dim(::Field) = 1 |
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
).
vector_space_dim
for matrix spaces and add some aliasesvector_space_dim
for matrix spaces
45dbfd0
to
19f15bd
Compare
vector_space_dim
for matrix spaces and matrix rings over fields,vector_space_dim
slightly.This partially has the PR oscar-system/Oscar.jl#4967 and issue oscar-system/Oscar.jl#4606 in mind.
@fingolfin