feat(ErdosProblems): prove erdos_885 variants k_eq_2 and k_eq_3 - #5055
Open
Alexispap wants to merge 1 commit into
Open
feat(ErdosProblems): prove erdos_885 variants k_eq_2 and k_eq_3#5055Alexispap wants to merge 1 commit into
Alexispap wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #5050
Replaces the sorry in the 885 variants erdos_885.variants.k_eq_2 and k_eq_3 with explicit witness proofs and adds one shared API lemma (factorDifferenceSet_finite: for n ≥ 1, D(n) is finite since every element is at most n).
For k=2: Ns = {12, 42}. 1 = |3−4| = |6−7| and 11 = |1−12| = |3−14|.
And for k=3: Ns = {1936, 4900, 32400} (= 44², 70², 180²). Common differences {0, 105, 480}.
The main statement and the k=4 variant remain untouched.
The mathematical results are due to [ErRo97] and [Ji99]. This PR only contributes the first machine-checked proofs with witnesses found independently by my automated search system.
AI disclosure: the proofs are generated by MathPaperAI, which is my automated Lean proof-search pipeline (LLM-driven).
Everything is kernel-checked and replayed against this repository's pinned toolchain (
lake --wfail build 'FormalConjectures.ErdosProblems.«885»'passes). #print axioms for all three declarations: [propext, Classical.choice, Quot.sound].I read and verified the proofs myself. Please tell me, if you prefer a formal_proof link!