feat(ErdosProblems/36): prove M_three (M 3 = 2)#4362
Open
Sanexxxx777 wants to merge 1 commit into
Open
Conversation
Proves M_three : M 3 = 2 for the Erdős minimum-overlap problem at n = 3 —
the first value M(n) > 1 (M_one and M_two are both 1).
Upper bound: the balanced partition A = {1,4,5}, B = {2,3,6} of {1,...,6}
has MaxOverlap = 2 (maxOverlap_145_236). Lower bound: every balanced
partition has MaxOverlap ≥ 2, checked over all C(6,3) partitions via
Finset.powersetCard + fin_cases, each discharged by exhibiting a difference
hit twice (decide).
Adds API lemmas overlap_le_card_mul, two_le_maxOverlap_of_overlap,
two_le_maxOverlap_of_exists.
Verified: lake --wfail build succeeds; #print axioms Erdos36.M_three =
[propext, Classical.choice, Quot.sound].
|
👋 This is an automated welcome message. 🤖 A few friendly reminders while the review gets started:
Thanks again for helping improve Formal Conjectures. |
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.
Summary
Proves
M_three : M 3 = 2for the Erdős minimum-overlap problem (Erdős 36) atn = 3. This is the first test value withM(n) > 1—M_one(#4151) andM_two(#4153) are both1, where the lower bound is trivial; atn = 3the lower bound requires actually ruling outMaxOverlap ≤ 1.Proof
M 3 ≤ 2): the balanced partitionA = {1, 4, 5},B = {2, 3, 6}of{1, …, 6}hasMaxOverlap = 2(maxOverlap_145_236). The≤ 2direction boundsOverlapat everykby splitting on whetherklies in the finite range of realizable differences[-5, 3](fin_cases … <;> decide) or outside it (Overlap = 0).M 3 ≥ 2): every balanced partition hasMaxOverlap ≥ 2. SinceA ∪ B = Icc 1 6,Disjoint A B,|A| = |B|forceA ∈ (Icc 1 6).powersetCard 3andB = Icc 1 6 \ A, I enumerate allC(6,3)partitions withfin_casesand discharge each by exhibiting a difference achieved twice (two_le_maxOverlap_of_exists (by decide)).Adds three small API lemmas:
overlap_le_card_mul,two_le_maxOverlap_of_overlap,two_le_maxOverlap_of_exists. (overlap_le_card_mulmirrors the one used behind theM_twoformal_prooflink, which is not present onmain.)The same machinery generalizes to
M_four = 2andM_five = 3(withpowersetCard 4/powersetCard 5enumerations); I kept this PR toM_threealone to match the incremental cadence of #4151 / #4153 and avoid a heavydecideover the larger partition sets. Happy to follow up withM_four/M_fiveif you'd like them.Verification
lake --wfail build FormalConjectures.ErdosProblems.«36»succeeds (no linter warnings).#print axioms Erdos36.M_three→[propext, Classical.choice, Quot.sound].