-
Notifications
You must be signed in to change notification settings - Fork 49
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
Arzela main lemmas #545
Arzela main lemmas #545
Conversation
d99369a
to
f54d0ed
Compare
theories/topology.v
Outdated
Context {T : choiceType} {Y : filteredType T}. | ||
Context (F : set (set Y)) (PF : ProperFilter F). | ||
|
||
Definition sets_of : set (set (set Y)) := filter_from |
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.
sets_of
sounds too generic a name, do you have another suggestion?
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.
That's true. I've updated with powerset_filter_from
which is marginally better. Maybe small_set_filter_from
is more descriptive?
This is really nice. I'd love to see the reproduction of the problems with near that you mentioned. And yes, the no-unfolding stuff is annoying, since we piggyback on Coq evar we should introduce the unfolding in the tactic, but it needs to be smart and thus be reprogrammed in another metalanguage (e.g. ltac2 or coq-elpi), which I meant to do at some point anyways. |
ecd94ad
to
eec58b3
Compare
Thank you, I'm pretty happy with how it worked out. I still have some questions about I will post a branch with the broken Also, I remember @affeldt-aist mentioned something about uniform series convergence proofs (in R or C). Once this is merged, you can use |
d990322
to
62d439b
Compare
Well, it was a nice thought. I have a proof of the converse of near_compact_covering. I'll post it separately once I clean it up. |
62d439b
to
87364d7
Compare
cleanish implementation for first lemma proofs now use near correctly minor lint fixing build for 8.14 always more linting to do use notations in `sets_of` - minor linting rephrasing definitions with index and map fixing bad merge updating changelog fixing bad merge again forgot to add docs for sets_of Update theories/topology.v Co-authored-by: Cyril Cohen <CohenCyril@users.noreply.github.com> Update theories/topology.v Co-authored-by: Cyril Cohen <CohenCyril@users.noreply.github.com> Update theories/topology.v Co-authored-by: Cyril Cohen <CohenCyril@users.noreply.github.com> Update theories/topology.v Co-authored-by: Cyril Cohen <CohenCyril@users.noreply.github.com> Update theories/topology.v Co-authored-by: Cyril Cohen <CohenCyril@users.noreply.github.com> renaming sets_of fixing changelog
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.
Good to go
87364d7
to
09996d9
Compare
Adding main lemmas for arzela ascoli, some lemmas for dealing with compactness, and a technique for getting "sufficiently small" sets from a filter.
This has the hard parts of Arzela-Ascoli. The forward direction is done, but the backwards direction still needs a little work to get it done fully. But this is an appropriate place to stop, considering the size of the change already.
We introduce a
sets_of
filter that, given a filter overT
, gives a filter overset T
which has the "small" sets. That is, it's the filter of downward closed members ofF
. The purpose of this is to let us writenear (sets_of entourage)
to get an "epsilon" without having a metric space and using posnum. This is super practical for both of the main lemmas.I have a
near_compact_cover
lemma which dramatically factors out the two main lemmas. It let's us factor a quantifier out of a\near
, turning a "global" property into two local ones. The analogy to open coverings is that if you can index an open cover by a filter (E.G. some epsilon), you can construct a filter which converges to counter-examples.The theorems themselves
compact_equicontinuous
andptws_compact_cvg
(names could be improved). Thanks to the two tools above, they are fairly short. But the topology is indeed tricky.I still need to update the changelog. I'm also sure there's a bunch of linting I missed.
I ran into some rather frustrating trouble with the
\near
notation where thenear
lemma did not like theg \near (nbhs f)
that was in scope. Sometimes it was conflicting stuff in the evar's context (I had to try to define everything possible before entering thenear
to avoid this. Why can't it unfold context elements it doesn't recognize to see if they're defined in terms it does know?). Other times I'm not really sure what was wrong. I can provide repros if you all want.The only remaining steps for Arzela Ascoli are:
compact_equicontinuous
and weakens the condition to only requireprecompact
instead ofcompact