-
Notifications
You must be signed in to change notification settings - Fork 86
Erdős Problem 422 #692
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
base: main
Are you sure you want to change the base?
Erdős Problem 422 #692
Changes from 9 commits
8591cd1
8951771
aa5caa7
4ed7626
e43a805
00c0c01
534e360
bc1438d
a59c08f
6166ffc
107f7fe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,73 @@ | ||||||||
| /- | ||||||||
| Copyright 2025 The Formal Conjectures Authors. | ||||||||
|
|
||||||||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||||||||
| you may not use this file except in compliance with the License. | ||||||||
| You may obtain a copy of the License at | ||||||||
|
|
||||||||
| https://www.apache.org/licenses/LICENSE-2.0 | ||||||||
|
|
||||||||
| Unless required by applicable law or agreed to in writing, software | ||||||||
| distributed under the License is distributed on an "AS IS" BASIS, | ||||||||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||||
| See the License for the specific language governing permissions and | ||||||||
| limitations under the License. | ||||||||
| -/ | ||||||||
|
|
||||||||
| import FormalConjectures.Util.ProblemImports | ||||||||
|
|
||||||||
| /-! | ||||||||
| # Erdős Problem 422 | ||||||||
|
|
||||||||
| *Reference:* [erdosproblems.com/422](https://www.erdosproblems.com/422) | ||||||||
| -/ | ||||||||
|
|
||||||||
| namespace Erdos422 | ||||||||
|
|
||||||||
| open Filter | ||||||||
| open scoped Topology | ||||||||
|
|
||||||||
| instance : Norm ℕ+ where | ||||||||
| norm n := n | ||||||||
|
|
||||||||
| /-- | ||||||||
| Let $f(1) = f(2) = 1$ and for $n > 2$ | ||||||||
| $$ | ||||||||
| f(n) = f(n - f(n - 1)) + f(n - f(n - 2)). | ||||||||
| $$ | ||||||||
| -/ | ||||||||
| partial def f : ℕ+ → ℕ+ | ||||||||
| | 1 => 1 | ||||||||
| | 2 => 1 | ||||||||
| | n => f (n - f (n - 1)) + f (n - f (n - 2)) | ||||||||
| -- Note: It is not known whether $f(n)$ is well-defined for all $n$. | ||||||||
rao107 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||
|
|
||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here I think it would be interesting to add two statements:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Those sound like good ideas. I'll also add in a question of the function's growth rate since that's open as well. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hey, I added your suggestions but I had a bit of trouble with the second. For it, I removed the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps by termination @Paul-Lez meant whether The other interpretation of termination here is whether one reaches a point at which There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Apologies for the delay! I've added another variant for |
||||||||
| /-- | ||||||||
| Does $f(n)$ miss infinitely many integers? | ||||||||
| -/ | ||||||||
| @[category research open, AMS 11] | ||||||||
| theorem erdos_422 : Set.Infinite {n | ∀ x, f x ≠ n} ↔ answer(sorry) := by | ||||||||
| sorry | ||||||||
|
|
||||||||
| /-- | ||||||||
| Is $f$ surjective? | ||||||||
| -/ | ||||||||
| @[category research open, AMS 11] | ||||||||
| theorem erdos_422.variants.surjective : f.Surjective ↔ answer(sorry) := by | ||||||||
| sorry | ||||||||
|
|
||||||||
| /-- | ||||||||
| How does $f$ grow? | ||||||||
| -/ | ||||||||
| @[category research open, AMS 11] | ||||||||
| theorem erdos_422.variants.growth_rate : f =O[atTop] (answer(sorry) : ℕ+ → ℕ+) := by | ||||||||
|
||||||||
| theorem erdos_422.variants.growth_rate : f =O[atTop] (answer(sorry) : ℕ+ → ℕ+) := by | |
| theorem erdos_422.variants.growth_rate : | |
| (fun n ↦ (f n : ℝ)) =O[atTop] (answer(sorry) : ℕ+ → ℝ) := by |
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'm not sure if you want to add this as a global instance. For example there seems to be no
Norminstance onℕin mathlib (that I can find). I believe the reason for this is that you don't want it as an instance as a priori there are multiple possible norms (such as the p-adic norms as well). I'm assuming you are adding this in order to talk about the growth rate below, but what you can do is just to viewfas a function valued in R for that statement. See my suggestion below.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.
Oh, I didn't realize I could do that! Thank you so much!