coq-robot
coq-robot copied to clipboard
reintroduce a type for angle (wip)
I did not read the PR but one should ideally show that the type angle whatever its definition is a ring quotient of R by the ideal 2 * pi * R
I did not read the PR but one should ideally show that the type
anglewhatever its definition is a ring quotient ofRby the ideal2pi
Right but using which tooling from MathComp?
I did not read the PR but one should ideally show that the type
anglewhatever its definition is a ring quotient ofRby the ideal2piRight but using which tooling from MathComp?
ring_quotient
could it be the definition of angle?
Be careful, you do not need to build angle using a quotient (maybe the arguments of complex numbers was actually the right one), but you can provide a quotient interface and deduce the ring structure from it
It could also be the definition of angle... sure
This PR is the consequence of an effort to replace the coq-robot definition of trigonometric functions with what is now available in MathComp-Analysis but maybe we should first generalize expR to complex numbers to prove the relation with cos/sin to redefine the already-existing angle as a subtype of R that can finally be endowed afterwards with a ring structure using ring_quotient.
Reintroducing the type angle makes life a bit more complicated.
Before cos and sin were derived from angle, so we had formula for sin(a + b) directly on angle.....
Now, sin is defined on R, and when writting sin(a + b) wirh a and b are of type angle, the + is the addition on angle.
I don't know the way to go: lifting all the theorem from R to angle or disabling the Zmodule for angle.