-
Notifications
You must be signed in to change notification settings - Fork 136
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
Add Field to Cubical.Algebra #301
Comments
I agree. Note that there are some subtleties in how to define fields in constructive algebra |
In constructive algebra, it is most common to call a commutative ring, where all non-zero elements have an inverse, a field. So I vote for using this definition. It also 'agrees' with the classical notion for rings with decidable equality. |
I'm mostly done with this one. It is on top of my current PR on quotient rings, but I could move it, if that's good for anything.
|
But in constructive algebra "non-zero" should mean "apart from zero" rather than "different from zero" in the definition of field. So fields should include an apartness relation as part of its axiomatics. Then I wonder if the isomorphisms should be "extensional", that is, reflect the apartness relation, for the SIP to apply. |
Or is any isomorphism automatically extensional in this sense? |
I would call a commutative ring where 'a apart from b' implies that a-b is a unit, a Heyting Field, but I'm really not an expert on (current) names in constructive algebra. We could have that as a second notion of field which comes with an apartness relation. |
I think it makes sense to follow to the Mines-Richman-Ruitenburg as much as possible for terminology. It would also be good to check what Lombardi-Quitté use in https://www.springer.com/gp/book/9789401799430 I like the name "apartness field" for fields where the axiom is expressed using apartness. |
There was a discussion over at UniMath about this some years ago: UniMath/UniMath#254 |
Thanks for the pointer, I'll read that. I also like the name "apartness field". |
I forget to exclude the zero ring in #325 ... |
Did you just find the field with one element? 😄 |
Yes, there was a one element field a commit ago ;) |
Ohno. I just learned I was wrong about fixing that. In the book of Mines et al. and Lombardi/Quitté, the zero ring is a field. I guess we should just go with that, even if its wierd from a classical commutative algebra background. |
There is a PR on this #325, which is now closed, because the contents were too far away from the current library code. The discussions might still be useful when defining Fields. |
I have merged #797 which contains a basic definition of field, which can be extended if there is demand. |
In the style of
Ring
, etc. from #284. I think it would be good to have this so we could showℚ
is a field.The text was updated successfully, but these errors were encountered: