-
Notifications
You must be signed in to change notification settings - Fork 14
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
Improve and unify names #253
Improve and unify names #253
Conversation
6859f98
to
948c0a9
Compare
@FriedrichRober The tests fail because we rename e.g. |
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.
In general I approve, while also supporting Max's suggestion.
This is perhaps an ignorant question (I've not really thought about recog for quite a while) - is naming this in terms of 'image' definitely more appropriate than naming it in terms of 'factor'? I only ask because (I presume) the old name RIFac
was referring to a 'factor'; although the actual documentation talked about the 'image'.
@wilfwilson The way I understood the name is that if a node in our tree computes a reduction homomorphism, then the image of said homomorphism is the factor of its source by its kernel. I find using image a lot more natural here. |
Ah wait, I just understood why previously factor was used. In magma, the package to recognize matrix groups constructively is called |
Cool 🙂 I'm happy for it to be called |
948c0a9
to
6b7c8cc
Compare
Rebased onto master, fixed the tests and the documentation. Please in particular have a look at the file |
6b7c8cc
to
2424296
Compare
Codecov Report
@@ Coverage Diff @@
## master #253 +/- ##
=======================================
Coverage 77.86% 77.86%
=======================================
Files 43 43
Lines 18389 18389
=======================================
Hits 14319 14319
Misses 4070 4070
|
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 think the names are now very descriptive and the renamings are well documented.
Regarding factor vs. image: of course both make sense. However, we do talk about the "factor group" in many comments and the manual. There also still the attributes Taking a step back, I guess both names make sense: a factor group is the image of a group homomorphism... However, my mind has a slight tendency to think of this as a "proper factor", i.e. the homomorphism has a non-trivial kernel, while in our case, there are also sometimes isomorphisms... While "image" does not have such connotation to me. So maybe that means "image" would be better indeed, at least if other people suffer from the same prejudice regarding "factor" as I do :-) |
Hm, interesting. When you think of an inner node in the recog tree as a homomorphism it is IMO more direct to talk of kernels and images. When you think of an inner node as a group, it is IMO more direct to talk of normal subgroups and factors. Of course inner nodes have both a group and a homomorphism associated (leaf nodes also have an isomorphism into a standard copy, but that's another topic). At the moment though we're mixing both by talking about kernels and factors. And yes, when I hear or read "factor" I also don't think of a factor by the trivial subgroup. :D |
Two follow up PRs would be:
In both cases we should also search the manual for left over occurences of |
I've enjoyed this discussion 🙂 |
c43ad3a
to
def623d
Compare
I've rebased this onto master and squashed the "fixup" commits. No other changes were introduced. |
I'll try to get #176 into a state where it can be merged into master, i.e. such that the tests pass etc. Then I'd merge in this PR (#253) and then @FriedrichRober and I can continue work on #176 in a different branch and PR. |
def623d
to
ec6c876
Compare
Rebased onto master. Now I need to change |
I've replaced most occurences of |
@fingolfin Could you have another look? |
This comment has been minimized.
This comment has been minimized.
5847cb2
to
dc8c8f9
Compare
Ok, I got rid of almost all appearances of In a future PR I think we could rename |
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.
LGTM.
|
RecognitionInfoFamily -> RecogNodeFamily IsRecognitionInfo -> IsRecogNode RIFac -> ImageRecogNode RIKer -> KernelRecogNode
1f84e4e
to
fd91087
Compare
RecognitionInfoFamily -> RecogNodeFamily
IsRecognitionInfo -> IsRecogNode
RIFac -> ImageRecogNode
RIKer -> KernelRecogNode
PR 1 for #177