-
Notifications
You must be signed in to change notification settings - Fork 87
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
How should we show square roots exist in iset.mm? #2101
Comments
I don't think you will find a better method than the babylonian one,
Thus |
Thanks! At first glance that would appear to be well suited to this purpose. As for showing it converges, I'll need to keep chewing on that proof before I fully understand it well enough to formalize but it would appear to be a good approach. I don't know if stackexchange ever deletes comments but in case they do here is the part of that post which was linked to: |
@jkingdon : I think @digama0's proof suffices and there is no need for the MSE answer. With the following corrections, it seems:
Probable typo: x_n^2 >= a.
Missing constant, something like (x_0^2 - a).
I think the power term can still be 4^n, and using x_n + x_m >= 2 \sqrt(a) (Item 1 with typo corrected), you obtain your majoration with constant (x_0^2 - a) / \sqrt(a) or something like that. Of course you cannot use \sqrt(a), so I think you can get away with finding nonzero naturals p, q such that p^2 < a q^2, so p/q < x_n. On the other hand, Mario uses the above bound x_n >= 1/2^n, which is easily obtained, so maybe this is faster. Finally, you set indeed x_0 = max(1,a), but it's probably more convenient to distinguish a<=1 and a>=1 from the start of the proof (maybe even two separate proofs with lemmas for the common parts) ? |
Thanks for taking a look. At least some of those corrections I had also noticed (part of what I meant by "keep chewing on"). If you want to start in on any of the square root stuff (either formalizing, or just carefully writing up the informal proof), just speak up. I have at least a few days before I'm ready to start formalizing anything in this issue, as there are some (non-square-root-specific) notational cleanups which I'm working on (described in #2103 ).
Wouldn't we need excluded middle if we wanted We haven't yet formalized max but if we want it, we should be able to have it (this is mentioned in Definition 11.2.7 of the HoTT book for example). |
Yes, that was a typo.
The constant was supposed to be 1, but the other typo confused me, and it is not 1. max(1, a^2) will do.
Indeed, I started by using the x_n^2 >= a bound here, but that proof breaks down when a = 0 and we can't do a disjunctive proof, so this version uses a lower bound that decreases along with x_n, hence the slower rate of convergence.
No disjunctive proof, remember? This is intuitionistic logic. Using max is okay because max is a continuous function. I don't know if @jkingdon has proved the existence of max yet, but it's a very useful function. You can take the pointwise max of the two cauchy sequences to get a cauchy sequence for the max. If max is too much work, you can also use |
@digama0 and @jkingdon : I had assumed that (a<=1 or a>=1) for |
So I have kind of a dumb technical question. How are we even going to define a recursive sequence like this one? http://us.metamath.org/ileuni/df-iseq.html seems awkward (if it can work at all) because I mean, I can define something along the lines of http://us.metamath.org/ileuni/df-frec.html but designed to give us a sequence of the form Theorems like http://us.metamath.org/ileuni/frec2uz0d.html seem to be on the right track - and I suppose the mapping there could be inverted based on http://us.metamath.org/ileuni/f1ocnvb.html and the like. Is there an example from set.mm of how to make this sort of recursively defined sequence, which we can adapt? Or is it more a matter of paving (somewhat) new ground? |
You can use |
I'm not sure I understand the comment of http://us.metamath.org/ileuni/df-iseq.html. In particular, the second paragraph seems to imply that there is an "input sequence" and an "output sequence" ?? Is it the case, using informal language, that:
If this is true, it might be helpful to put it in the comment, to help "informal mathematicians". Also, why use "+" in place of G ? This might be misleading, or maybe I am misled myself ? Finally, why not define more simply a function, say seq2 (to distinguish it from the above), such that:
|
Yes, seq2 would be just as good as seq. |
Actually you can generalize it a bit further: G : S \times T \to S, and F : ZZ_{\geq M} \to T. The function G doesn't have to be a binary operator on S. |
I don't think so, since you have u_M = F(M) \in S. This mismatch (the fact that F is used in different ways for the initial value and for the induction step) is not the case for seq2, which is more streamlined, even if not optimized for the "sequence of partial sums". |
Oh that's true. You will notice that a few applications of |
Going back to our square root existence sequence, here's my attempt to restate the proof from @digama0 .
This isn't exactly in the form needed to show Cauchy-ness in http://us.metamath.org/ileuni/caucvgre.html but seems pretty close, so a modified version of Tentative conclusions:
|
Why
The proof for this that I was imagining involves the AM-GM inequality (for n=2, which is easy, it boils down to squares are positive). More explicitly,
It comes up in the last (why?) step. This one is an easy proof by induction assuming
This is using that
You've written |
1 + a it is. I was worried about whether the first and second terms are within 1 / 1 of each other (in terms of rate of convergence), but I'm not sure the factor of two is even enough and the rate of convergence can be addressed a lot of ways.
Freudian slip perhaps? In any event, I've corrected it below. Here is the proof as it now stands with @digama0 's edits. My plan is to start proving the lemmas shown below which should flesh out any remaining confusions or questions (we are a formal math project, after all). I'll push my changes to the https://github.com/jkingdon/set.mm/tree/iset-resqrex branch as I go.
This isn't exactly in the form needed to show Cauchy-ness in http://us.metamath.org/ileuni/caucvgre.html but seems pretty close, so we'll need to prove a modified version of That proves that the limit exists. We'll also need to prove that the limit is the square root. The sequence definition will be (update: see resqrexlemex.seq on the branch for the current one. The one which had been here in github had errors) |
Status report: the branch now contains a proof that the sequence converges:
So what is left is to show:
The first one seems straightforward (the first hit I found was https://math.stackexchange.com/questions/1424273/let-a-n-be-a-convergent-sequence-of-positive-real-numbers-why-is-the-limit and it seems like some version of the proofs there would work in iset.mm). The second one is, I guess, a bit trickier given the recursive definition of the sequence. Again, without really knowing much about this but doing a small amount of internet searching I see things which do things like: since y is the limit, that it satisfies the recursion rule when put in for both x_n and x_(n+1):
which simplifies to |
|
Contradiction works fine given http://us.metamath.org/ileuni/lenlt.html . The https://github.com/jkingdon/set.mm/tree/iset-resqrex branch now contains a proof that y >= 0 (lemma resqrexlemgt0).
Hmm, there's a lot to chew on here and there might still be a significant gap between what iset.mm has to start with and what we need to formalize these arguments. But I'll see what I can do, I guess starting with the http://us.metamath.org/mpeuni/climuni.html equivalent (seems like something a bit like the proof of climuni might work given http://us.metamath.org/ileuni/apti.html ). |
@jkingdon - I think one problem is that the term "contradiction" has multiple meanings. One works in intuitionistic logic, while another doesn't. |
Terminology aside the two proofs under discussion were (1) show that As for the status report, #2142 completes the proof of the existence of square roots and there is more detail there. Thanks for all of the comments on this issue; I would have really struggled to get this one done alone. |
There's background at http://us.metamath.org/ileuni/df-rsqrt.html and the square root section (df-sqrt to sqrtm1) of http://us.metamath.org/ileuni/mmil.html but the short summary is that we need to find a way to prove http://us.metamath.org/mpeuni/resqrex.html and it will be in terms of the real number completeness axiom in #2100 one way or another.
What is a convenient sequence which converges to the square root of a nonnegative real? Trying to look for this on the internet finds sequences which are aimed at computing square roots but for our purposes we are much more interested in a sequence which is easy to work with (for example, easy to show that its limit is the square root, easy to prove the Cauchy condition - either as stated in axcaucvg in #2100 or some other modulus of convergence type condition which can be proved from that).
As for the larger motivation, square roots of nonnegative reals are used to define complex absolute value (some of this is already in iset.mm and is fully developed in set.mm), so this is presumably the next step in unlocking a lot of theorems related to sequences and/or series (and from there to trigonometry and other topics which rely on convergence in set.mm).
The text was updated successfully, but these errors were encountered: