Skip to content

Conversation

@rao107
Copy link
Contributor

@rao107 rao107 commented Sep 28, 2025

Adds Erdős Problem 422.

The question on the function's behavior felt a bit vague, so I elected to not add it.

@Paul-Lez Paul-Lez self-requested a review September 29, 2025 13:52
| 1 => 1
| 2 => 1
| n => f (n - f (n - 1)) + f (n - f (n - 2))

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here I think it would be interesting to add two statements:

  1. The question of the surjectivity of f (seems to be open)
  2. The question of whether the sequence f must eventually terminate (presumably not? admittedly I haven't thought too much about whether or not this is hard to prove)

Copy link
Contributor Author

Choose a reason for hiding this comment

The 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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The 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 partial definition for f and defined the function with sorry. I don't think this is what you had in mind when you suggested it so I'd welcome any other ways to define that f must eventually terminate.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps by termination @Paul-Lez meant whether f becomes stationary at some point? I.e., does there exist m and N for which f n = m for all n larger than N. Termination can be quite surprising in this sense, see for example the Goodstein sequence which eventually decreases and terminates at 0.

The other interpretation of termination here is whether one reaches a point at which f n cannot be defined (e.g, if n - f (n - 1) < 0), but I think this sense is already captured in the definition.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the delay! I've added another variant for f eventually becoming stationary. 🙂

@Paul-Lez Paul-Lez self-requested a review October 13, 2025 10:24
Copy link
Collaborator

@callesonne callesonne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after these comments, thanks a lot!

How does $f$ grow?
-/
@[category research open, AMS 11]
theorem erdos_422.variants.growth_rate : f =O[atTop] (answer(sorry) : ℕ+ → ℕ+) := by
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

Comment on lines 29 to 31

instance : Norm ℕ+ where
norm n := n
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
instance : Norm ℕ+ where
norm n := n

I'm not sure if you want to add this as a global instance. For example there seems to be no Norm instance 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 view f as a function valued in R for that statement. See my suggestion below.

Copy link
Contributor Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants