-
Notifications
You must be signed in to change notification settings - Fork 196
Spelling and style changes #2249
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
Conversation
Not at all. Such improvements are always welcome.
Yes, this is something we can sort out in perhaps another PR since there are a few ways to go about this. One option is to write a description in the header and yet another is do collect a bibliography. As time goes on, we will formalise more and more papers and not just the HoTT book, so it might make sense to keep track of extra reading material.
Pointwise = between points so homwise is between homs. Feel free to suggest an improvement however.
I think in HoTT vernacular funext is pretty standard. The reason we might capitalize it is to literally mean the term.
I prefer hprop in vernacular. I don't know if we use
Abel is a funny one in mathematics since it is one of those names that is commonly not capitlised. I think maybe the same for "cartesian". I think for types we have a clear captilisation convention in STYLE.md, but in everyday mathematical vernacular, especially in comments, I would prefer being closer to source material. So if a paper writes Abelian or abelian, then its fine to keep convention with that.
I think "homomorphic image" is really "image of a homomorphism". Not sure about the other usage however. I will need to look up some literature on that usage, I think it is a bit old-fashioned.
I think the latter is the correct one to pick.
This file is essentially in a cemetery now. The results on flattening have all been moved to their appropriate files. I wouldn't spend time improving it. As for the meaning, I can't grok what it was meant to be. I would guess "non-dependently" fits better.
I think it would depend on the context. If you can point to some uses, maybe we can give some better comments.
I've seen it used in type theoretic literature. It's not super common. Something like "computes at the type level" or "computation at the type level" is perhaps clearer.
We always prefer American English spellings, but due to being British, some of my Britishisms (and others) may have slipped in. Feel free to fix as you see them. Unicity is an uncommon word, but I think it might be old-fashioned. I don't mind using "uniqueness" instead.
We need to tackle these on a case-by-case basis.
These are specific to the category theory library. I think its fine to keep them as it is to remind the reader why a certain choice was made. Having this consolidated elsewhere would be difficult to see or find.
This seems to be a different comment in both places.
I think this is fine, since it is paraphrasing a specific book. Again with the bibliography idea above, it might be worth including the book in a bibliography too. Not a top priority.
I prefer to keep this comment, as it is really a TODO for cleaning up these workarounds. At some point we need to remove these universe workarounds as they should have long been fixed.
I may be wrong, but I think at the moment, bot inline and coqdoc comments appear in the documentation. It may be better for TODOs to be inline, but then again sometimes its important for the reader of the docs too.
This needs to be handled on a case-by-case basis. Some code was ported from elsewhere and is dead, that can be removed. Some code is unfinished and is really a TODO with rich information. Others are just workaround due to some Coq bug that need to be addressed and readded. It really depends. |
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.
Wow! Thanks for taking this on. It really shows how easy it is to miss blatant spelling mistakes.
I think around 60% of them were mine, which isn't surprising.
I've left some comments, but there is a lot to go through. Once you've finished addressing them I'll try to do another pass.
@@ -18,7 +18,7 @@ Definition lift2 {A B} (f : forall x : A, B x) : forall x : Lift A, Lift (B (low | |||
Definition lower2 {A B} (f : forall x : Lift A, Lift (B (lower x))) : forall x : A, B x | |||
:= f. | |||
|
|||
(** We make [lift] and [lower] opaque so that typeclass resolution doesn't pick up [isequiv_lift] as an instance of [IsEquiv idmap] and wreck havok. *) | |||
(** We make [lift] and [lower] opaque so that typeclass resolution doesn't pick up [isequiv_lift] as an instance of [IsEquiv idmap] and wreak havoc. *) |
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 did not know this was a word and a common spelling mistake.
@@ -512,7 +512,7 @@ Definition issymmetricmonoidal_op' {A : Type} (tensor : A -> A -> A) (unit : A) | |||
:= issymmetricmonoidal_op (A:=A^op) tensor unit. | |||
|
|||
(** ** Further Coherence Conditions *) | |||
(** In MacLane's original axiomatisation of a monoidal category, 3 extra coherence conditions were given in addition to the pentagon and triangle identities. It was later shown by Kelly that these axioms are redundant and follow from the rest. We reproduce these arguments here. *) | |||
(** In Mac Lane's original axiomatisation of a monoidal category, 3 extra coherence conditions were given in addition to the pentagon and triangle identities. It was later shown by Kelly that these axioms are redundant and follow from the rest. We reproduce these arguments here. *) |
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.
As I mentioned before, I'm unsure about how the name should be. Just so we can keep track of that I'll mention it.
I like this idea (in another PR).
Both forms are commonly used, and I don't think it's necessary to enforce a standard form.
I agree that it's uncommon and old fashioned, and can be removed. "image" is fine. "Properties of homomorphisms". Etc. But not a big deal.
"Typal" was introduced to replace "propositional equality" with "typal equality", since the equality types aren't necessarily propositions. I don't think it really caught on, but that's probably the source of this work in the library. It's fine to replace it with something more clear.
To make it worse, Canadian spelling is a mix of the two... I don't think we need to go through and standardize. That's just work without little benefit. But I think we should standardize on American English for identifiers.
I've seen "unicity" used more and more lately, but I don't like it.
I agree with Ali that this would depend on the situation. I don't might duplicated comments now and then, as they can be very helpful to the reader.
Ali is right, all comments appear in the documentation. And I think that's fine. But it's probably best to use For things I didn't comment on, I agree completely with Ali. I haven't looked at the PR changes, but I think it's most important to fix actual errors, and not worry about being too pedantic about consistency. The library has had many authors, and will hopefully have many more. |
"but if we define it diindly ..." should be "but if we define it directly ..." Someone did a search and replace "rect" -> "ind" that went awry. |
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.
Thanks for this! I approve, once the minor suggestions are taken in to account.
Co-authored-by: Ali Caglayan <[email protected]> Co-authored-by: Dan Christensen <[email protected]>
All comments directly relating to the changes have been addressed. I have not taken any actions regarding the miscellaneous other items I brought up in the original post. |
This is a pretty boring and mundane PR which entirely deals with comments. We:
My apologies if reviewing a bunch of typos seems more work than it's worth.
There are a few issues which I didn't want to put in this PR because it's already very large and these issues are more subjective and require some discussion. However if they are requested I can do these things too.
Coq-HoTT/theories/WildCat/Core.v
Line 245 in 239bcf4
Coq-HoTT/theories/HIT/Flattening.v
Line 149 in 239bcf4
Some American / British spelling inconsistencies I saw in the code: should these be standardized?
Redundancy issues: Some comment blocks are copypasted several times across many files. I can understand why you would want the documentation to be right there when you're reading the file, but block copypasting the same comment across several files or lines in the same file doesn't seem good. Could we centralize some of this documentation in a README or other file and just point back to it? Just a couple quotes I noticed appearing more than once, if you search for these you'll see a few files that contain the same paragraph:
I think some comments are Coqdoc comments which should not be Coqdoc comments. I think TODO's or complaints like 'This is broken because of Coq bug so-and-so, so I had to do this weird hack to get around it.' are better off as inline comments than doc comments because they're not relevant to you unless you're actively working on the code and trying to understand it or maintain it.
Last, there is a good amount of dead, commented-out-code in the library which could be deleted if it is no longer being used as an illustrative example or planning to be uncommented soon.