-
Notifications
You must be signed in to change notification settings - Fork 47
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
Pi irrational #1351
base: master
Are you sure you want to change the base?
Pi irrational #1351
Conversation
2053c7f
to
fe8a6a5
Compare
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.
Overall a nice milestone that we can do this in ~600 lines now. Sadly at least 50% of that seems to be about measurable/differentiable/integrable stuff that ought to be automated. But it's a nice application nonetheless.
Moving some of the files around as you mentioned in your comments is probably good. Especially the polynomial stuff will be nice to have independently. And the filename thing should be an easy fix. Otherwise I don't see any blockers
End derive_horner. | ||
|
||
Local Open Scope classical_set_scope. | ||
|
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.
Is there a reason we don't have just continuous (horner p))
? Seems like that would imply all of this, but I am quite unfamiliar with mathcomps polynomials so I expect i am missing something.
Local Notation "f ^` ()" := (derive1 f) : classical_set_scope. | ||
|
||
(* connect MathComp's polynomials with analysis *) | ||
Section derive_horner. |
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.
All this stuff about polynomials and derivates is great. It should definitely live in a more accesible place. We'll want it for the full strength Taylor's theorem, for example
by rewrite -mulrDl hornerD. | ||
Qed. | ||
|
||
Definition intfsin n := \int[mu]_(x in `[0, pi]) (fsin n x). |
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 suppose most of these should be Local Definition
, and Local Lemma
if anything. No reason for these to leak outside the file if it can be helped.
Let abx x : 0 < x < pirat -> 0 < a na - b nb * x. | ||
Proof. | ||
move=> /andP[x0]; rewrite subr_gt0. | ||
rewrite /pirat /exercise6.pirat ltr_pdivlMr 1?mulrC//. |
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.
The explicit dependency on the filename is a little jarring. I would prefer at most one of the following to be true, ideally neither
- The file is called exercise6 without any context
- The text of the filename explicitly appears in the proof script.
Motivation for this change
@LaurenceRideau
Checklist
CHANGELOG_UNRELEASED.md
Reference: How to document
Reminder to reviewers