-
Notifications
You must be signed in to change notification settings - Fork 85
Feat: formalise Erdős Problem 359 #620
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?
Conversation
| Then $A$ is strictly increasing. -/ | ||
| @[category test, AMS 11] | ||
| theorem erdos_359.variants.strictMono_of_isGoodFor (A : ℕ → ℕ) (n : ℕ) (hA : IsGoodFor A n) : | ||
| StrictMono A := 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 don't think this is true given the definition of IsGoodFor for n > 1. For example, if n = 2, then A 0 = 2 and A 1 = 1. This assumption might need to go in the definition of IsGoodFor itself
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 point - fixed!
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.
This is basically by definition now, so I'm not sure it warrants inclusion as a test. Proof:
intro a b hab
induction hab with
| refl => exact (hA.2 a).1.1
| step _ a_ih => exact a_ih.trans (hA.2 _).1.1| /-- The predicate that `A 0 = n` and for all `j`, `A (j + 1)` is the smallest natural number that | ||
| cannot be written as a sum of consecutive terms of `A 0, ..., A j` -/ |
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.
This no longer matches the formal statement, we should include that A (j + 1) is greater than A j (or equivalently that A is strict mono
#511