{
  "artifactId": "artifact.library.mathlib.heine-cantor-theorem.v001",
  "candidateOnly": false,
  "category": "Topology",
  "claimBoundary": "This page indexes Mathlib's whole-space CompactSpace form of the Heine–Cantor theorem: for uniform spaces α and β, a CompactSpace instance on α, and a map f : α → β, continuity of f implies uniform continuity. It is not the nearby compact-subset theorem for ContinuousOn and UniformContinuousOn, it does not assert a converse, and it does not specialize the abstract uniform-space statement to metric spaces or intervals.",
  "collectionSlug": "landmark-theorems-in-mathlib",
  "exactFormalStatement": "theorem CompactSpace.uniformContinuous_of_continuous {α β : Type*} [UniformSpace α] [UniformSpace β] [CompactSpace α] {f : α → β} (h : Continuous f) : UniformContinuous f",
  "family": "Compactness and uniform spaces",
  "id": "library.mathlib.heine-cantor-theorem.v001",
  "links": {
    "collection": "/collections/landmark-theorems-in-mathlib/",
    "collectionData": "/data/collections/mathlib-landmarks.json",
    "entry": "/library-theorems/heine-cantor-theorem/",
    "entryData": "/data/library-theorems/heine-cantor-theorem.json",
    "evidence": "/proofs/artifact.library.mathlib.heine-cantor-theorem.v001.html",
    "evidenceData": "/data/proofs/artifact.library.mathlib.heine-cantor-theorem.v001.evidence.json",
    "source": "/sources/upstream/heine-cantor-theorem/"
  },
  "landmark": {
    "completeFormalType": "theorem CompactSpace.uniformContinuous_of_continuous {α β : Type*} [UniformSpace α] [UniformSpace β] [CompactSpace α] {f : α → β} (h : Continuous f) : UniformContinuous f",
    "concepts": [
      "compact spaces",
      "uniform spaces",
      "continuous maps",
      "uniform continuity",
      "uniformity filters",
      "diagonal neighborhoods"
    ],
    "plainLanguage": "A continuous map from a compact uniform space into any uniform space is automatically uniformly continuous.",
    "poster": {
      "alt": "An ivory Heine–Cantor poster places a compact paired domain field and its diagonal neighborhoods on the left, sends both coordinates through f, and lands in diagonal neighborhoods of a target uniform space on the right beneath the continuity-to-uniform-continuity statement.",
      "byteSize": 3281192,
      "caption": "On a compact uniform-space domain, ordinary continuity already controls all sufficiently close pairs by one uniform rule.",
      "description": "The poster states the whole-space CompactSpace theorem and follows its checked source route. Nested neighborhoods around the diagonal in α × α represent the domain uniformity; a paired map sends both coordinates through f; continuity carries those pair-neighborhoods toward the diagonal in β × β; and the final comparison reaches the target uniformity. The scope footer rules out a converse and the nearby compact-subset variant.",
      "derivatives": [
        {
          "byteSize": 157648,
          "height": 960,
          "mediaType": "image/webp",
          "publicPath": "/assets/library-theorems/heine-cantor-theorem/theorem-poster-v1-640.webp",
          "sha256": "sha256:ba004cd06b2d72f7afd3cd270944a373a9099a2ef0b9784c72925ad154730eb1",
          "width": 640
        },
        {
          "byteSize": 399010,
          "height": 1536,
          "mediaType": "image/webp",
          "publicPath": "/assets/library-theorems/heine-cantor-theorem/theorem-poster-v1-1024.webp",
          "sha256": "sha256:af8ab1cf37a7ecdc604d815cc04832afed91bdbc80955cf4281a190de4d772f3",
          "width": 1024
        }
      ],
      "generatedAt": "2026-07-27T10:29:42-04:00",
      "height": 1536,
      "mediaType": "image/png",
      "modelRequested": "gpt-image-2",
      "publicPath": "/assets/library-theorems/heine-cantor-theorem/theorem-poster-v1.png",
      "sha256": "sha256:0d0c50ee6e862a91f49d5369a3caad1e09e109b5093703895c744f7580f7fbed",
      "title": "Heine–Cantor theorem at a glance",
      "width": 1024,
      "kind": "theorem_poster",
      "transcript": "TOPOLOGY · UNIFORM SPACES\nHEINE–CANTOR THEOREM\nCONTINUITY BECOMES UNIFORM ON A COMPACT DOMAIN\nα and β are uniform spaces · α is compact\nf : α → β is continuous\nTHEN f IS UNIFORMLY CONTINUOUS\nTHE CHECKED ROUTE\n1 · Read the domain uniformity as neighborhoods of its diagonal\n2 · Map pairs through f × f\n3 · Continuity carries diagonal-near pairs into the target\n4 · Compare with the target uniformity\nEXACT SCOPE\nWhole-space theorem. No converse. Not the compact-subset variant."
    },
    "visual": {
      "alt": "A dark engraved paired-space landscape gathers close pairs around a gold diagonal seam across a complete compact domain, passes both coordinates through one central mapping lens, and releases them inside a target diagonal neighborhood.",
      "byteSize": 3153697,
      "caption": "Compactness identifies the domain uniformity with diagonal neighborhoods, and continuity of the paired map carries those neighborhoods toward the target uniformity.",
      "description": "A complete cobalt domain pair-field is clasped by a compactness motif and organized around a bright diagonal seam. Multiple paired points approach one central double-aperture lens, which preserves their two-strand identities while applying the same map to both. On the emerald target side the pair strands remain within nested halos around a second diagonal seam, visually expressing the uniform comparison without assuming a metric or depicting a subset theorem.",
      "derivatives": [
        {
          "byteSize": 70744,
          "height": 427,
          "mediaType": "image/webp",
          "publicPath": "/assets/library-theorems/heine-cantor-theorem/theorem-schematic-v1-640.webp",
          "sha256": "sha256:ae3e40107b677a62273da79ceb237a0ee288c0f711134176207383ae8b8585ad",
          "width": 640
        },
        {
          "byteSize": 241602,
          "height": 800,
          "mediaType": "image/webp",
          "publicPath": "/assets/library-theorems/heine-cantor-theorem/theorem-schematic-v1-1200.webp",
          "sha256": "sha256:31119abc33df95bed50e2002bfa593c779e444c35db0da47e75cab6bf1452b7a",
          "width": 1200
        }
      ],
      "generatedAt": "2026-07-27T10:29:42-04:00",
      "height": 1024,
      "mediaType": "image/png",
      "modelRequested": "gpt-image-2",
      "publicPath": "/assets/library-theorems/heine-cantor-theorem/theorem-schematic-v1.png",
      "sha256": "sha256:7985174125ee8b7a6b064dd23a8d6c9eef2da4dda67c96b63de34c4dec26b7f1",
      "title": "Diagonal neighborhoods carried through a compact domain",
      "width": 1536
    },
    "walkthrough": null,
    "whyLandmark": "Heine–Cantor is a central compactness principle in analysis and topology: a pointwise local continuity condition becomes one uniform condition across the entire domain. Mathlib's compact abstract proof makes the bridge especially clear by expressing uniformity through neighborhoods of the diagonal."
  },
  "nonClaims": [
    "The selected declaration concerns the whole compact domain through a CompactSpace instance; it is not the nearby compact-subset theorem using ContinuousOn and UniformContinuousOn.",
    "The theorem proves that continuity implies uniform continuity under compactness; it does not assert the converse.",
    "The declaration is abstract over uniform spaces and adds no metric, Hausdorff, separatedness, interval, epsilon-delta modulus, or quantitative Lipschitz hypothesis.",
    "ProofAtlas is indexing an existing Mathlib theorem, and generated explanations and visuals are not proof evidence."
  ],
  "publicExportEligible": true,
  "relationship": "upstream_direct",
  "schemaVersion": "library-theorem-entry-data.v1",
  "statementId": "statement.library.mathlib.heine-cantor-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": "Compactness upgrades continuity of a map between uniform spaces to uniform continuity.",
  "targetId": "target.library.mathlib.heine-cantor-theorem.v001",
  "title": "Heine–Cantor Theorem",
  "upstreamOrigin": {
    "declarationName": "CompactSpace.uniformContinuous_of_continuous",
    "immutableSourceUrl": "https://github.com/leanprover-community/mathlib4/blob/5e932f97dd25535344f80f9dd8da3aab83df0fe6/Mathlib/Topology/UniformSpace/HeineCantor.lean#L38",
    "packageName": "mathlib",
    "repositoryUrl": "https://github.com/leanprover-community/mathlib4",
    "sourceArtifactHash": "sha256:7dd6876f932981f81fcf298ec6270267ed4761543b46b92ed36ef2147b166d83",
    "sourceByteLength": 7531,
    "sourceCommit": "5e932f97dd25535344f80f9dd8da3aab83df0fe6",
    "sourceFile": "Mathlib/Topology/UniformSpace/HeineCantor.lean",
    "sourceLine": 38,
    "verificationKind": "git_worktree"
  },
  "publicPresentationReview": {
    "status": "reviewed"
  }
}
