{
  "artifactId": "artifact.library.mathlib.roth-theorem.v001",
  "candidateOnly": false,
  "category": "Combinatorics",
  "claimBoundary": "This page indexes Mathlib’s qualitative asymptotic declaration for the natural-number Roth function. Here rothNumberNat N is the maximum cardinality of a ThreeAPFree subset of Finset.range N = {0,…,N−1}, and ThreeAPFree excludes nontrivial a,b,c in the set with a+c=b+b. The exact conclusion is an IsLittleO atTop relation after coercion to ℝ. It does not state an explicit decay rate, a finite threshold, a modern quantitative bound, or a theorem about longer progressions.",
  "collectionSlug": "landmark-theorems-in-mathlib",
  "exactFormalStatement": "theorem rothNumberNat_isLittleO_id : IsLittleO atTop (fun N ↦ (rothNumberNat N : ℝ)) (fun N ↦ (N : ℝ))",
  "family": "Additive combinatorics",
  "id": "library.mathlib.roth-theorem.v001",
  "links": {
    "collection": "/collections/landmark-theorems-in-mathlib/",
    "collectionData": "/data/collections/mathlib-landmarks.json",
    "entry": "/library-theorems/roth-theorem/",
    "entryData": "/data/library-theorems/roth-theorem.json",
    "evidence": "/proofs/artifact.library.mathlib.roth-theorem.v001.html",
    "evidenceData": "/data/proofs/artifact.library.mathlib.roth-theorem.v001.evidence.json",
    "source": "/sources/upstream/roth-theorem/"
  },
  "landmark": {
    "completeFormalType": "theorem rothNumberNat_isLittleO_id : IsLittleO atTop (fun N ↦ (rothNumberNat N : ℝ)) (fun N ↦ (N : ℝ))",
    "concepts": [
      "three-term arithmetic progressions",
      "asymptotic density",
      "Roth numbers",
      "corners theorem",
      "triangle removal"
    ],
    "plainLanguage": "Among the first N natural numbers, a set that avoids every nontrivial three-term arithmetic progression must occupy a proportion that tends to zero as N grows.",
    "poster": {
      "alt": "An ivory additive-combinatorics poster states rothNumberNat N equals little-o of N and traces dense sets through corners and triangle removal to an equally spaced triple.",
      "byteSize": 1955124,
      "caption": "The largest three-term-progression-free subset of {0,…,N−1} has density tending to zero, with no explicit rate claimed by the selected declaration.",
      "description": "The poster defines rothNumberNat, places the qualitative little-o conclusion at the top, and follows the retained source architecture from a dense subset through a grid corner and triangle-removal/regularity motif to three exactly equally spaced points. The exact-scope footer rules out an explicit rate.",
      "derivatives": [
        {
          "byteSize": 69958,
          "height": 960,
          "mediaType": "image/webp",
          "publicPath": "/assets/library-theorems/roth-theorem/theorem-poster-v1-640.webp",
          "sha256": "sha256:8a636aaa50e7a31a8e5c14395d8aa027b74d3bb0b3f2e443e1b418987838d005",
          "width": 640
        },
        {
          "byteSize": 125230,
          "height": 1536,
          "mediaType": "image/webp",
          "publicPath": "/assets/library-theorems/roth-theorem/theorem-poster-v1-1024.webp",
          "sha256": "sha256:2b879acd77134cd5a4b2342e9e48e3380be3efe4d15d16f0c6d0e304ab921364",
          "width": 1024
        }
      ],
      "generatedAt": "2026-07-25T20:42:04Z",
      "height": 1536,
      "mediaType": "image/png",
      "modelRequested": "gpt-image-2",
      "publicPath": "/assets/library-theorems/roth-theorem/theorem-poster-v1.png",
      "sha256": "sha256:2021e296679319145dcf79ab6299b3e9bd01a9572462a1ebe10e58cc6bf758ad",
      "title": "Roth’s Theorem at a glance",
      "width": 1024,
      "kind": "theorem_poster",
      "transcript": "ADDITIVE COMBINATORICS · THREE-TERM PROGRESSIONS\nROTH’S THEOREM\nrothNumberNat N = o(N)\nrothNumberNat N is the maximum size of a 3AP-free subset of {0,…,N−1}\nMAXIMUM 3AP-FREE DENSITY TENDS TO ZERO\nDENSE SET\nCORNERS CONSTRUCTION\nTRIANGLE REMOVAL + REGULARITY\nNONTRIVIAL 3-TERM PROGRESSION\nEXACT SCOPE\nQualitative asymptotic result. No explicit rate is claimed."
    },
    "visual": {
      "alt": "A long interval has many emerald selected positions and three larger gold selected positions with two visibly equal positive gaps.",
      "byteSize": 2348231,
      "caption": "For sufficiently large intervals, a subset of fixed positive density cannot avoid a nontrivial three-term arithmetic progression.",
      "description": "A discrete integer interval is rendered as evenly spaced ticks. A relatively dense selected subset rises above the interval, while exactly three central gold selections are joined by two equal-span bars to isolate the decisive nontrivial progression without asserting a quantitative threshold.",
      "derivatives": [
        {
          "byteSize": 10440,
          "height": 427,
          "mediaType": "image/webp",
          "publicPath": "/assets/library-theorems/roth-theorem/theorem-schematic-v1-640.webp",
          "sha256": "sha256:f0596fdba1a7c2e2de124c672ca13d501c45dc9bb39b01c1cc88566bc7367bac",
          "width": 640
        },
        {
          "byteSize": 37290,
          "height": 800,
          "mediaType": "image/webp",
          "publicPath": "/assets/library-theorems/roth-theorem/theorem-schematic-v1-1200.webp",
          "sha256": "sha256:1579743dd2f5d421dc07779efa747614890c1fbbdbb23545fa407dc3f655ac21",
          "width": 1200
        }
      ],
      "generatedAt": "2026-07-25T20:42:04Z",
      "height": 1024,
      "mediaType": "image/png",
      "modelRequested": "gpt-image-2",
      "publicPath": "/assets/library-theorems/roth-theorem/theorem-schematic-v1.png",
      "sha256": "sha256:a8d74b1c210e17f2e0cfd9f5639521d2c6f5d8879be1047d5619c68ce3a11a92",
      "title": "Equal spacing forced inside a dense integer interval",
      "width": 1536
    },
    "walkthrough": null,
    "whyLandmark": "Roth’s theorem is a foundational density result in additive combinatorics. Mathlib’s retained route connects one-dimensional three-term progressions to two-dimensional corners, triangle removal, and Szemerédi regularity."
  },
  "nonClaims": [
    "Proof Atlas did not originate Roth’s theorem or Mathlib’s declaration.",
    "The selected declaration gives no explicit rate or numerical threshold.",
    "The selected endpoint concerns three-term arithmetic progressions, not arbitrary progression lengths.",
    "The generated explanation and visuals are not proof evidence."
  ],
  "publicExportEligible": true,
  "relationship": "upstream_direct",
  "schemaVersion": "library-theorem-entry-data.v1",
  "statementId": "statement.library.mathlib.roth-theorem.v001",
  "statusAxes": {
    "acceptedAtlasResult": "Not recorded for the preferred artifact",
    "locallyReproduced": "Exact upstream declaration replayed",
    "reviewedPage": "Current public presentation reviewed",
    "upstreamIndexed": "Pinned source bytes verified locally"
  },
  "summary": "The maximum size of a three-term-arithmetic-progression-free subset of {0,…,N−1} is little-o of N.",
  "targetId": "target.library.mathlib.roth-theorem.v001",
  "title": "Roth’s Theorem",
  "upstreamOrigin": {
    "declarationName": "rothNumberNat_isLittleO_id",
    "immutableSourceUrl": "https://github.com/leanprover-community/mathlib4/blob/5e932f97dd25535344f80f9dd8da3aab83df0fe6/Mathlib/Combinatorics/Additive/Corner/Roth.lean#L197",
    "packageName": "mathlib",
    "repositoryUrl": "https://github.com/leanprover-community/mathlib4",
    "sourceArtifactHash": "sha256:e6a6e421256625cbef836f08aee949b000d299538a898b7c04888e9d6214abb6",
    "sourceByteLength": 9073,
    "sourceCommit": "5e932f97dd25535344f80f9dd8da3aab83df0fe6",
    "sourceFile": "Mathlib/Combinatorics/Additive/Corner/Roth.lean",
    "sourceLine": 197,
    "verificationKind": "git_worktree"
  },
  "publicPresentationReview": {
    "status": "reviewed"
  }
}
