Conversation
> With a1=1 and a2=2 let a_{n+1} for n >= 2 be the least integer greater than a_n which can be expressed uniquely as a_i + a_j for i < j <= n. Do infinitely many pairs (a,a+2) occur in the sequence?
- First part of Erdos 342, google-deepmind#2120
* Testing
- Compiles successfully
```shell
$ lake build FormalConjectures/ErdosProblems/342.lean
Build completed successfully.
```
mo271
left a comment
There was a problem hiding this comment.
Thanks!
Looks good mathematically, just a few suggestions for improvement
Co-authored-by: Moritz Firsching <firsching@google.com>
|
I made the changes @mo271 and added TODOs for the other parts. Part (iii) is also equivalently in Ben Green's problems as Problem 7. There are also some more open ended parts (Ben Green asks "Can one |
|
Actually I was able to formalize the second part as well by looking at how periodic differences were formalized in https://github.com/google-deepmind/formal-conjectures/blob/main/FormalConjectures/ErdosProblems/341.lean |
|
Formalized the third part as well, also removed the comment about Ben Green's open problem 7 from part (iii) since it's not exactly equivalent (Ben Green Problem 7 asks if the sequence has positive asymptotic density, this is only the negation of having 0 asymptotic density if we assume the asymptotic density / limit exists) |
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
Thanks @eric-wieser! |
mo271
left a comment
There was a problem hiding this comment.
LGTM, just some comments.
A good follow up might be to do problem 7 from Greens open problem list?!
Co-authored-by: Moritz Firsching <firsching@google.com>
|
Thanks @mo271, not sure what's better between having the test for a3, having the test but sorrying it out, or not having it at all so for now just committed your changes with the test :) And yes, can easily do Ben Green problem 7 next! |
Co-authored-by: Moritz Firsching <firsching@google.com>
|
Thanks! These changes are definitely cleaner |
Description
IsUlamSequence u, I think this is cleaner than defining a specific Ulam SequenceTesting