{
  "artifactId": "artifact.library.mathlib.mobius-inversion.v001",
  "candidateOnly": false,
  "category": "Number theory",
  "claimBoundary": "This page indexes Mathlib's additive-commutative-group form of Möbius inversion. For functions f, g : ℕ → R and every positive n, it identifies the divisor-sum relation g(n) = ∑_{d ∣ n} f(d) with recovery of f(n) by the Möbius-weighted sum over ordered factor pairs in n.divisorsAntidiagonal. The integer-valued Möbius function acts on R by scalar multiplication. The declaration excludes n = 0 and is not every informal inversion formulation.",
  "collectionSlug": "landmark-theorems-in-mathlib",
  "exactFormalStatement": "theorem ArithmeticFunction.sum_eq_iff_sum_smul_moebius_eq {R : Type*} [AddCommGroup R] {f g : ℕ → R} : (∀ n > 0, ∑ i ∈ n.divisors, f i = g n) ↔ ∀ n > 0, ∑ x ∈ n.divisorsAntidiagonal, μ x.fst • g x.snd = f n",
  "family": "Arithmetic functions and inversion",
  "id": "library.mathlib.mobius-inversion.v001",
  "links": {
    "collection": "/collections/landmark-theorems-in-mathlib/",
    "collectionData": "/data/collections/mathlib-landmarks.json",
    "entry": "/library-theorems/mobius-inversion/",
    "entryData": "/data/library-theorems/mobius-inversion.json",
    "evidence": "/proofs/artifact.library.mathlib.mobius-inversion.v001.html",
    "evidenceData": "/data/proofs/artifact.library.mathlib.mobius-inversion.v001.evidence.json",
    "source": "/sources/upstream/mobius-inversion/"
  },
  "landmark": {
    "completeFormalType": "theorem ArithmeticFunction.sum_eq_iff_sum_smul_moebius_eq {R : Type*} [AddCommGroup R] {f g : ℕ → R} : (∀ n > 0, ∑ i ∈ n.divisors, f i = g n) ↔ ∀ n > 0, ∑ x ∈ n.divisorsAntidiagonal, μ x.fst • g x.snd = f n",
    "concepts": [
      "Möbius inversion",
      "arithmetic functions",
      "divisor sums",
      "Dirichlet convolution",
      "zeta inverse"
    ],
    "plainLanguage": "Suppose g records the sum of f over every positive divisor of n. Then f can be recovered by summing the values of g along the factor pairs of n, weighted by the integer-valued Möbius function—and this recovery relation is equivalent to the original divisor-sum relation.",
    "poster": {
      "alt": "An ivory and forest-green theorem poster displays the positive-index divisor-sum equivalence, a compact divisor lattice, and the checked route through the arithmetic zeta function and its Möbius inverse.",
      "byteSize": 2413672,
      "caption": "For additive-commutative-group-valued functions on positive naturals, Möbius weighting exactly recovers a function from its divisor sums.",
      "description": "The poster presents the selected equivalence without flattening its ordered-factor-pair recovery sum. A sparse central engraving moves from divisor aggregation to signed cancellation, while a short route names the zeta action, Möbius action, and two-sided inverse identity used in the Mathlib proof.",
      "derivatives": [
        {
          "byteSize": 99596,
          "height": 960,
          "mediaType": "image/webp",
          "publicPath": "/assets/library-theorems/mobius-inversion/theorem-poster-v1-640.webp",
          "sha256": "sha256:228fcb9f1ec317009fb543e238ddabf8006462fa9e7457e5c2c2b5aadb2507eb",
          "width": 640
        },
        {
          "byteSize": 199942,
          "height": 1536,
          "mediaType": "image/webp",
          "publicPath": "/assets/library-theorems/mobius-inversion/theorem-poster-v1-1024.webp",
          "sha256": "sha256:e60488efcd136e821c157a6746febd716eaabc42306c379f9625e976e5d14400",
          "width": 1024
        }
      ],
      "generatedAt": "2026-07-25T20:39:31Z",
      "height": 1536,
      "mediaType": "image/png",
      "modelRequested": "gpt-image-2",
      "publicPath": "/assets/library-theorems/mobius-inversion/theorem-poster-v1.png",
      "sha256": "sha256:faeef6644141b3f905678487fa27004e25cb503f0847197324dbb3c61399d4d1",
      "title": "Möbius Inversion — divisor sums reversed",
      "width": 1024,
      "kind": "theorem_poster",
      "transcript": "NUMBER THEORY · ARITHMETIC FUNCTIONS\nMÖBIUS INVERSION\nFor every n > 0\n\ng(n) = ∑ d ∈ n.divisors, f(d)\n⇔\nf(n) = ∑ (a,b) ∈ n.divisorsAntidiagonal, μ(a) • g(b)\n\nDIVISOR SUM · MÖBIUS RECOVERY\n\nTHE CHECKED ROUTE\nζ • f = g\nμ • g = f\nμ ∗ ζ = ζ ∗ μ = 1\n\nEXACT SCOPE\nAdditive commutative groups. Positive n only.\nμ is integer-valued and acts by scalar multiplication."
    },
    "visual": {
      "alt": "A text-free engraved divisor lattice first gathers values from all positive divisors into one total, then passes through a Möbius-weighted factor-pair fan whose cancellations isolate the original value.",
      "byteSize": 3115060,
      "caption": "The zeta divisor sum gathers arithmetic data; Möbius weighting reverses that accumulation on every positive index.",
      "description": "On a dark forest-green field, ivory divisor nodes flow into an antique-gold aggregate. A mirrored factor-pair fan carries distinct positive, negative, and vanishing Möbius tokens; paired cancellations leave one isolated source node, visualizing the arithmetic zeta function and Möbius function as inverse operators.",
      "derivatives": [
        {
          "byteSize": 50138,
          "height": 427,
          "mediaType": "image/webp",
          "publicPath": "/assets/library-theorems/mobius-inversion/theorem-schematic-v1-640.webp",
          "sha256": "sha256:f00398cdffce24961cd416a76d1e58b9e1aa96e27433364a6148a99279d152dd",
          "width": 640
        },
        {
          "byteSize": 167942,
          "height": 800,
          "mediaType": "image/webp",
          "publicPath": "/assets/library-theorems/mobius-inversion/theorem-schematic-v1-1200.webp",
          "sha256": "sha256:65b6199daf959456173b45f002c9a508d561a839b00bf16a353214b16a9b13d7",
          "width": 1200
        }
      ],
      "generatedAt": "2026-07-25T20:39:31Z",
      "height": 1024,
      "mediaType": "image/png",
      "modelRequested": "gpt-image-2",
      "publicPath": "/assets/library-theorems/mobius-inversion/theorem-schematic-v1.png",
      "sha256": "sha256:3b03033693fbb0262e4dfa06ff3bdff10eb2248e191ce597cb80ff3c47b6bc64",
      "title": "Divisor aggregation and Möbius recovery",
      "width": 1536
    },
    "walkthrough": null,
    "whyLandmark": "Möbius inversion is a basic change-of-coordinates principle for arithmetic data: cumulative information over divisors can be recovered exactly through the convolution inverse of the constant-one arithmetic function. It underlies multiplicative number theory, inclusion–exclusion on divisibility, and many transformations of arithmetic functions."
  },
  "nonClaims": [
    "The selected statement ranges only over positive natural n; it does not assert either relation at n = 0.",
    "The codomain is an additive commutative group, and the integer-valued Möbius function acts by scalar multiplication.",
    "The recovery sum uses n.divisorsAntidiagonal, whose entries are ordered factor pairs; it is not written as a plain sum over an unspecified index.",
    "This declaration is one precise additive form of Möbius inversion, not a claim for every informal inversion formula.",
    "ProofAtlas is indexing an existing Mathlib theorem, not claiming new mathematics."
  ],
  "publicExportEligible": true,
  "relationship": "upstream_direct",
  "schemaVersion": "library-theorem-entry-data.v1",
  "statementId": "statement.library.mathlib.mobius-inversion.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": "Divisor summation by the arithmetic zeta function is inverted by Möbius weighting on ordered factor pairs.",
  "targetId": "target.library.mathlib.mobius-inversion.v001",
  "title": "Möbius Inversion",
  "upstreamOrigin": {
    "declarationName": "ArithmeticFunction.sum_eq_iff_sum_smul_moebius_eq",
    "immutableSourceUrl": "https://github.com/leanprover-community/mathlib4/blob/5e932f97dd25535344f80f9dd8da3aab83df0fe6/Mathlib/NumberTheory/ArithmeticFunction/Moebius.lean#L207",
    "packageName": "mathlib",
    "repositoryUrl": "https://github.com/leanprover-community/mathlib4",
    "sourceArtifactHash": "sha256:89dede2a4de032a86ac7b29836cea26d37b537caa79a0bf147c486c209bd28af",
    "sourceByteLength": 15286,
    "sourceCommit": "5e932f97dd25535344f80f9dd8da3aab83df0fe6",
    "sourceFile": "Mathlib/NumberTheory/ArithmeticFunction/Moebius.lean",
    "sourceLine": 207,
    "verificationKind": "git_worktree"
  },
  "publicPresentationReview": {
    "status": "reviewed"
  }
}
