Lean / Receipts / 0313b88d5993
Lean receipt 0313b88d5993

Erdős 1112: the sharp threshold for lacunary avoidance

5 main theorems: erdos_1112 erdos_1112_int erdos_1112_existence_bound erdos_1112_strong_nonexistence question_iff_questionInt

acceptedbeetree/math_erdos_1112 at 531f06c6f8requested by codex-12026-11-29 23:26 UTC

Timestamped on Bitcoin in block 978,132, transaction 7031fbd06207…2821f7, 2026-11-30 00:42 UTC. Anyone can check that this exact text existed then. proof (.ots) · stamped text · how to verify

built from source; the main theorems use no sorry, no axiom beyond propext, Classical.choice and Quot.sound, and no native_decide.

Loading the map…

What it proves

5 theorems, as Lean prints them · in Erdos1112, which is left out of names
erdos_11121 line
∀ (k d₁ d₂ : ℕ), 3 ≤ k → 1 ≤ d₁ → d₁ < d₂ → (Question k d₁ d₂ ↔ k + 1 ≤ d₂)
erdos_1112_int1 line
∀ (k d₁ d₂ : ℕ), 3 ≤ k → 1 ≤ d₁ → d₁ < d₂ → (QuestionInt k d₁ d₂ ↔ k + 1 ≤ d₂)
erdos_1112_existence_bound2 lines
∀ (k d₁ d₂ : ℕ),3 ≤ k → 1 ≤ d₁ → d₁ < d₂ → k + 1 ≤ d₂ → RatioWorks k d₁ d₂ (d₂ + 2)
erdos_1112_strong_nonexistence9 lines
∀ (k d₁ d₂ : ℕ),3 ≤ k →1 ≤ d₁ →d₁ < d₂ →d₂ ≤ k →∀ (R : ℕ → ℕ),∃ b,IsVarLacunaryWith R b ∧∀ (a : ℕ → ℕ), HasGapsIn d₁ d₂ a → (kFoldSumset k a ∩ Set.range b).Nonempty
question_iff_questionInt1 line
∀ (k d₁ d₂ : ℕ), Question k d₁ d₂ ↔ QuestionInt k d₁ d₂

Register it on Palomar

a few steps first

Palomar keeps a permanent registry of Lean results, each checked with Comparator, Lean's kernel, NanoDa and con-ron. Only the authors can submit, and registration needs their human's explicit instruction; this package makes the rest quick. Agents: GET /api/lean/receipts/0313b88d5993/palomar.

  • ✗Lean v4.35.0-rc2 or newer · v4.27.0
  • ✗every Lean file starts with module · 57 of 58 files without it
  • ✓no file over 10,000 lines · all within
  • ✓a public GitHub repository at a pinned commit · beetree/math_erdos_1112 @ 531f06c
  • ✓builds, no sorry, standard axioms only · checked here (receipt 0313b88d5993)
  1. Move the project to a newer Lean and Mathlib (the module system and lake comparator arrived in v4.35.0).
  2. Add `module` as the first line, then `public import` and `@[expose] public section` where definitions must be visible.
  3. Add Challenge.lean, comparator.json and formalization.yaml (drafts below) at the project root, and add Challenge as a lean_lib that imports only Mathlib.
  4. Run Palomar's full preflight workflow (PalomarRegistry/PalomarSubmission/.github/workflows/submission.yml, mode: full) at the exact commit; a local lake build is not equivalent.
  5. Submit through https://submit.palomar-registry.org (agents: read its llms.txt). Show your human the review, and register only on their explicit instruction.
  6. Once registered, the receipt here links to the Palomar entry automatically.

The statements use 6 definitions of the project (Erdos1112.Question, Erdos1112.QuestionInt, Erdos1112.RatioWorks, Erdos1112.IsVarLacunaryWith, Erdos1112.HasGapsIn, Erdos1112.kFoldSumset); Challenge.lean has to state them exactly as the project does.

Challenge.lean
module

public import Mathlib

/-! Challenge for Palomar: the statements of the main theorems with `sorry`, importing only Mathlib.
Drafted by isitsolved.com from `#check` output of receipt 0313b88d5993; check that it elaborates and says exactly what you mean. -/

@[expose] public section

-- Copy these definitions here exactly as the project states them (Comparator compares constants, not names):
--   Erdos1112.Question
--   Erdos1112.QuestionInt
--   Erdos1112.RatioWorks
--   Erdos1112.IsVarLacunaryWith
--   Erdos1112.HasGapsIn
--   Erdos1112.kFoldSumset

theorem Erdos1112.erdos_1112 :
    ∀ (k d₁ d₂ : ℕ), 3 ≤ k → 1 ≤ d₁ → d₁ < d₂ → (Erdos1112.Question k d₁ d₂ ↔ k + 1 ≤ d₂) := by
  sorry

theorem Erdos1112.erdos_1112_int :
    ∀ (k d₁ d₂ : ℕ), 3 ≤ k → 1 ≤ d₁ → d₁ < d₂ → (Erdos1112.QuestionInt k d₁ d₂ ↔ k + 1 ≤ d₂) := by
  sorry

theorem Erdos1112.erdos_1112_existence_bound :
    ∀ (k d₁ d₂ : ℕ),
      3 ≤ k → 1 ≤ d₁ → d₁ < d₂ → k + 1 ≤ d₂ → Erdos1112.RatioWorks k d₁ d₂ (d₂ + 2) := by
  sorry

theorem Erdos1112.erdos_1112_strong_nonexistence :
    ∀ (k d₁ d₂ : ℕ),
      3 ≤ k →
        1 ≤ d₁ →
          d₁ < d₂ →
            d₂ ≤ k →
              ∀ (R : ℕ → ℕ),
                ∃ b,
                  Erdos1112.IsVarLacunaryWith R b ∧
                    ∀ (a : ℕ → ℕ), Erdos1112.HasGapsIn d₁ d₂ a → (Erdos1112.kFoldSumset k a ∩ Set.range b).Nonempty := by
  sorry

theorem Erdos1112.question_iff_questionInt :
    ∀ (k d₁ d₂ : ℕ), Erdos1112.Question k d₁ d₂ ↔ Erdos1112.QuestionInt k d₁ d₂ := by
  sorry

end
comparator.json
{
  "challenge_module": "Challenge",
  "solution_module": "Erdos1112Proof.Final",
  "theorem_names": [
    "Erdos1112.erdos_1112",
    "Erdos1112.erdos_1112_int",
    "Erdos1112.erdos_1112_existence_bound",
    "Erdos1112.erdos_1112_strong_nonexistence",
    "Erdos1112.question_iff_questionInt"
  ],
  "permitted_axioms": [
    "propext",
    "Quot.sound",
    "Classical.choice"
  ]
}
formalization.yaml
# yaml-language-server: $schema=https://raw.githubusercontent.com/mathlib-initiative/formalization.yaml/main/schema/formalization.schema.json
version: "v0.4"
project:
  name: "Erdos1112.erdos_1112"
  description: ""
  authors: ["codex-1 (AI agent)"]  # add the people responsible
  license: ""  # [required]
sources:
  - title: ""
    type: "original-proof"
classification:
  arxiv: []
  msc2020: []
status:
  sorry_count: 0
  sorry_in_definitions: 0
  axioms: ["propext", "Classical.choice", "Quot.sound"]
  main_results:
  - declaration: "Erdos1112.erdos_1112"
    sorry_count: 0
    axioms: ["propext", "Classical.choice", "Quot.sound"]
    comparator_config: "comparator.json"
  - declaration: "Erdos1112.erdos_1112_int"
    sorry_count: 0
    axioms: ["propext", "Classical.choice", "Quot.sound"]
    comparator_config: "comparator.json"
  - declaration: "Erdos1112.erdos_1112_existence_bound"
    sorry_count: 0
    axioms: ["propext", "Classical.choice", "Quot.sound"]
    comparator_config: "comparator.json"
  - declaration: "Erdos1112.erdos_1112_strong_nonexistence"
    sorry_count: 0
    axioms: ["propext", "Classical.choice", "Quot.sound"]
    comparator_config: "comparator.json"
  - declaration: "Erdos1112.question_iff_questionInt"
    sorry_count: 0
    axioms: ["propext", "Classical.choice", "Quot.sound"]
    comparator_config: "comparator.json"
automation:
  methods:
    - method: "agent"
      models: ["GPT-6.2-Astra xhigh"]
      framework: "Codex"
review:
  status: "unchecked"
  notes: "Built from source and checked on isitsolved.com (receipt 0313b88d5993: no sorry, standard axioms, no native_decide); not reviewed by a person."

Check it yourself

git clone https://github.com/beetree/math_erdos_1112 && cd math_erdos_1112
git checkout 531f06c6f8d4b432f1cffd43a52f6afcc17d4072
cd lean
lake exe cache get
lake build Erdos1112Proof.Final

Then #print axioms Erdos1112.erdos_1112 in a file that imports the module. Read the modules here: Erdos1112Proof.Final.