Skip to content

Challenge: six distances from the E2 diameter-heptagon pattern - #358

Open
lyfar wants to merge 10 commits into
Vilin97:mainfrom
lyfar:lyfar/e2-diameter-heptagon-challenge
Open

Challenge: six distances from the E2 diameter-heptagon pattern#358
lyfar wants to merge 10 commits into
Vilin97:mainfrom
lyfar:lyfar/e2-diameter-heptagon-challenge

Conversation

@lyfar

@lyfar lyfar commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Adds one challenge: diameter-heptagon-e2-six-distances (Challenge/WeiLiCongGao.lean, single open declaration Challenge.WeiLiCongGao.e2_pattern_six_distances).

Statement. Seven planar points of diameter 1 whose diameter graph is exactly the 7-cycle {i, i+3 mod 7}, with boundary-edge pattern (C, B, B, C, A, A, A) and B < A < C, realize at least six distinct pairwise distances.

Why this statement. It is the repaired step of Theorem 4 of Wei–Li–Cong–Gao, Taiwanese J. Math. 18(6) (2014), doi:10.11650/tjm.18.2014.4030 — the result the E₁₁(5) classification (Wei, Ars Combin. 102 (2011)) depends on at m = 7, and through it Marchetto's n = 11 and n = 12 results for Erdős #132. The 2014 proof handles this configuration by a "the proof is similar" appeal; a line audit found that on this pattern the intended strict comparison is an exact equality on a reachable configuration, so the published argument does not close the case. An exact replacement argument (three diagonal classes, forced labels, three five-distance assignments each excluded by a unit Gröbner ideal over ℚ) establishes the statement computationally; full audit and re-runnable certificates: https://github.com/lyfar/erdos132-wei-certificates.

The bound is sharp: the configuration family generically realizes seven distinct distances and drops to exactly six at three isolated configurations, never five. The hypotheses are non-vacuous — an exact witness configuration satisfies all of them with seven distances.

Estimated ~4000 lines: the diameter-graph structure theory for odd cycles of unit diameters is not in Mathlib, then a one-parameter reduction and three polynomial-identity certificates.

Checks run locally: Challenge builds with the single expected sorry notice, lake exe mk_all --check clean, challenge cards regenerated, lint-style clean.

🤖 Generated with Claude Code

Source DOI: 10.11650/tjm.18.2014.4030

Certificates: https://github.com/lyfar/erdos132-wei-certificates

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Aug 26, 2026

Copy link
Copy Markdown

Greptile Summary

The PR adds and registers an open Lean challenge formalizing the six-distance conclusion for the E2 diameter-heptagon pattern.

  • Introduces the single open declaration Challenge.WeiLiCongGao.e2_pattern_six_distances.
  • Encodes the unit-diameter cycle, strict bounds on all other distances, and the (C, B, B, C, A, A, A) boundary pattern.
  • Adds matching challenge metadata and exposes the module through Challenge.lean.

Important Files Changed

Filename Overview
Challenge/WeiLiCongGao.lean Adds the open theorem declaration; its hypotheses and conclusion faithfully match the accompanying informal statement.
Challenge/challenges.yml Registers the challenge with metadata and an informal statement consistent with the Lean module.
Challenge.lean Imports the new challenge module into the root challenge entrypoint.

Reviews (10): Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." | Re-trigger Greptile

@github-actions

Copy link
Copy Markdown
Contributor

Proof profile (new / modified Lean files)

lake build wall time (changed modules): 19.07 s (= 0.32 min) — user 5.93 s, sys 4.22 s.

This build covers the changed modules and their dependency cones on top of the restored cache. The serial per-file sums below are useful for ranking slow files, not as a build budget.

Total heartbeats: 2 maxHeartbeats units across 1 file (55 added LOC).

Sum of lean --profile: 1890.2 ms (= 1.89 s). Import-excluded time: 270.2 ms (= 0.27 s).

Count-heartbeats wall-clock total: 2.48 s. Repeated import cost inside lean --profile: 1620.0 ms (= 1.62 s).

Heartbeat values come from Mathlib's linter.countHeartbeats and are already in maxHeartbeats units. Per-file wall clocks are measured under parallel load and are noisier than heartbeats.

LOC counts added lines in the profiled Lean files from this PR diff.

File LOC Heartbeats (maxHB) Count wall (s) lean --profile (s) Without import (s) Import (s) Decls Errors
Challenge/WeiLiCongGao.lean 55 2 2.48 1.89 0.27 1.62 1 0
Total 55 2 2.48 1.89 0.27 1.62 1 0

Aggregate phase totals

Phase Time
import 1620.0 ms (= 1.62 s)
interpretation 203.0 ms (= 0.20 s)
initialization 30.5 ms (= 0.03 s)
elaboration 13.9 ms (= 0.01 s)
typeclass inference 8.9 ms (= 0.01 s)
tacticAnalysis 4.6 ms (= 0.00 s)
parsing 2.8 ms (= 0.00 s)
type checking 1.7 ms (= 0.00 s)
share common exprs 1.7 ms (= 0.00 s)
linting 1.5 ms (= 0.00 s)
overlappingInstancesLinter 1.1 ms (= 0.00 s)
process pre-definitions 0.3 ms (= 0.00 s)

Slowest changed modules (from lake build)

Changed module Lake time
Challenge.WeiLiCongGao 7.00 s
Per-file `lean --profile` output

Challenge/WeiLiCongGao.lean

import took 1.62s
Challenge/WeiLiCongGao.lean:42:8: warning: declaration uses `sorry`
cumulative profiling times:
	attribute application 0.0131ms
	elaboration 13.9ms
	fix level params 0.0515ms
	import 1.62s
	initialization 30.5ms
	instantiate metavars 0.042ms
	interpretation 203ms
	let-to-have transformation 0.0595ms
	linting 1.47ms
	module linting 0.00143ms
	overlappingInstancesLinter 1.14ms
	parsing 2.75ms
	process pre-definitions 0.304ms
	share common exprs 1.7ms
	tacticAnalysis 4.63ms
	type checking 1.73ms
	typeclass inference 8.89ms
real 2.56
user 1.44
sys 1.16

Advisory only — never blocks merge. Full log uploaded as the proof-profile artifact.

@github-actions

github-actions Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

🤖 LLM review — challenge (gpt-5.6-sol)

Reviewed head: 51ba63142a38ea685ebf5e07371933b7ab6f1117

Verdict: 🤔 needs_discussion

This challenge asks for a six-distance lower bound for a specific unit-diameter heptagon pattern. The Lean statement faithfully encodes the indexed diameter graph, strict non-diameter bounds, boundary-edge equalities and ordering, and the cardinality of the off-diagonal distance set; it is nontrivial and appears non-vacuous. It is a research-scale gap repair worth considering, but the claimed identification with the E2 case and the external computational repair cannot be verified from the diff.

Aspect Value
Significance high
Faithful to the prose faithful
Matches cited source 🟡 unverifiable
Vacuity risk none
Difficulty research
Estimated solution size ~4,000 lines — This estimate rests on the absence of reusable planar diameter-cycle structure in Mathlib, followed by a fixed-dimensional coordinate reduction, finite label analysis, and three polynomial contradiction certificates supported by ring and nonlinear arithmetic tactics.

Statement check: The Lean quantifies seven labeled points in ℝ², makes exactly the pairs with index difference ±3 unit distances, makes every other distinct-index distance strictly less than one, imposes the stated C, B, and A edge pattern with B < A < C, and counts distinct off-diagonal distances.

The statement is faithful, significant, and non-gameable, but the precise source alignment and certificate-backed correctness need independent verification before merge.

Findings (1)

  • source-unverifiableChallenge/WeiLiCongGao.lean:30
    The cited paper is expressly described as not completing this case, while the diff contains neither the paper's exact E2 case statement nor an explicit witness or certificate from the external repository. Before merge, verify that E2 has exactly the diameter edges and boundary pattern formalized here, and independently inspect the claimed satisfiable witness and Gröbner certificates.

Tokens: 11,242 in / 9,725 out · Tier: flex · Effort: xhigh · Cost: $0.1740
Automated review against .github/CHALLENGE_REVIEW_RULES.md. Disagree? Reply on the PR; rules can be updated in a PR of their own.

@lyfar

lyfar commented Aug 26, 2026

Copy link
Copy Markdown
Contributor Author

Disclosure: a full solution already exists — ~4600 lines, sorry-free, axioms exactly propext/Classical.choice/Quot.sound, comparator-verified against this statement locally. It follows as a Solution PR once this merges. So the ~4000-line estimate in the card is measured, not guessed, and the statement is confirmed provable as formalized.

@lyfar

lyfar commented Aug 26, 2026

Copy link
Copy Markdown
Contributor Author

On the reviewer's source-unverified finding — the correspondence, with exact loci so it can be checked in minutes:

Where E2 lives in the paper. Wei–Li–Cong–Gao 2014, proof of Theorem 4, Part III, Case 2 (pp. 1983–1984). The text there excludes d(6,7)=d3 for the one still-free boundary edge and handles the two remaining values by a "the proof is similar" appeal. E2 is the d(6,7)=d4 branch of that appeal. With d(6,7)=d4 the seven boundary edges read, in the paper's own vertex order, (d3, d5, d5, d3, d4, d4, d4) — after the 1-based→0-based index shift that is exactly the challenge's pattern (C, B, B, C, A, A, A) with C=d3, A=d4, B=d5, and B<A<C is the paper's standing d3>d4>d5.

The defect. On this branch the strict comparison the paper's swap argument needs, d(1,3) vs d(2,7) in the paper's labels, is an exact equality — certificates repo, theorem4-2014/SUBLINES.md, machine-checked by verify_sublines.py (receipt: HOLDS=7 FAILS=1, the failure being this leaf).

The repair is this statement. theorem4-2014/E2-EXCLUSION-codex.md: the seven undetermined diagonals collapse to three algebraic classes; the three possible five-distance label assignments each reduce to a polynomial system whose Gröbner basis over ℚ is [1] — verify_e2_exclusion_codex.py, receipt lines CANDIDATE_*: GROEBNER_BASIS=[1] PASS. Hence at least six distinct distances, which is the challenge's conclusion.

Non-vacuity. The same script's positive control is an exact configuration satisfying every hypothesis of the Lean statement and realizing seven distinct distances (POSITIVE_CONTROL_* receipt lines); three isolated configurations realize exactly six (E2-EXCLUSION-claude.md, corroborative), so the bound is sharp.

Both scripts re-run with the two commands in the repo README; and per the comment above, the statement is confirmed provable as formalized — the local solution is comparator-verified against this exact head.

@Vilin97

Vilin97 commented Sep 1, 2026

Copy link
Copy Markdown
Owner

Since you solved the Challenge immediately, don't add it as a challenge please. Add it as a project. Thanks

@Vilin97 Vilin97 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Reviewed exact head 70109abb15073d0c8101062bf3ac344343ed9536.

The Lean statement is faithful, non-vacuous, substantial, and locally builds with only the registered challenge sorry; exact-head CI is green. The blocker is the submission mode. The author has disclosed that a complete comparator-verified proof already exists, and the maintainer has explicitly asked that this not be added as an open challenge. The challenge board is for open contracts, so merging this entry as status: open would misrepresent its state.

Please submit the completed result as a pooled project with the final theorem exposed there, preserve the precise E2-only scope in the title/card/source discussion, and do not present it as a solution of the full Erdős problem 132. This intermediate theorem appears independently significant as a repaired published classification step, but it does not solve Erdős 132 in full.

@Vilin97

Vilin97 commented Sep 1, 2026

Copy link
Copy Markdown
Owner

Supplement to the current-head changes request: the DOI metadata and paper itself list the authors of 10.11650/tjm.18.2014.4030 as Xianglin Wei, Guogang Li, Yue Cong, and Feixing Gao. This PR records Zhengyu Li, Meiqin Cong, and Yan Gao after the first author. Please correct the source attribution in the registry/project card when converting this result to a pooled project. Authoritative DOI metadata: https://api.crossref.org/works/10.11650/tjm.18.2014.4030

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants