How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Fast multipole expansions and error
1 · Prerequisites
None. This page is self-contained.
2 · Summary
For planar charges, Finite planar quadtree and separated interaction lists fixes half-open dyadic cells, a fixed logarithm branch per far pair, direct near pairs, and the separated-cell ratio . The finite traversal terminates and partitions every ordered off-diagonal source-target pair by Planar FMM lists partition all ordered off-diagonal particle pairs. The fixed-order procedure Fixed-order planar Laplace fast multipole procedure carries P2M and M2M moments upward, converts far multipoles to local polynomials by M2L, shifts local polynomials by L2L, evaluates by L2P, and adds near pairs exactly. Planar Laplace multipole and local translation identities derives each coefficient formula. Global planar FMM potential and derivative error sums the local potential and differentiated-series tails over the finite far list; force means the branch-independent complex derivative of the stated logarithmic potential.
The work claim keeps tree size, list construction visits, far-list size, and direct-near pair count explicit. Under the recorded linear-size level restriction and bounded-list hypotheses, Planar FMM operation count under explicit linear-size tree and list bounds bounds the arithmetic, prescribed logarithm evaluations, and list-processing work by after the tree and point-to-cell arrays are supplied. Deep clustered data must use its actual depth and counts.
For three-dimensional Laplace, Degree-indexed spherical harmonic spaces in three dimensions fixes the sphere inner product and regular solid harmonic convention. Three-dimensional Laplace spherical-harmonic addition theorem proves the normalized addition identity and Legendre bound. The separate single-cluster procedure Single-cluster three-dimensional Laplace multipole evaluator and Three-dimensional Laplace cluster expansion error and work give its spherical tail and basis-evaluation cost; they do not transfer the planar tree-translation count to 3D.
The schematic shows one admissible planar far pair. Each square has side , the source and target centers are and , and the dashed circles are their circumscribed disks of radius . Their center distance exceeds , so the local logarithm series converges throughout the source-target difference disk. The arrow labels the M2L coefficient conversion. The diagram records geometry only; every identity and error bound is proved algebraically in the items above.
\begin{tikzpicture}[scale=0.8, every node/.style={font=\small}]
\draw[fill=blue!10,draw=blue] (-0.5,-0.5) rectangle (0.5,0.5);
\draw[fill=red!10,draw=red] (3.5,-0.5) rectangle (4.5,0.5);
\draw[dashed,blue] (0,0) circle (0.70710678);
\draw[dashed,red] (4,0) circle (0.70710678);
\fill[blue] (0,0) circle (1.6pt);
\fill[red] (4,0) circle (1.6pt);
\draw[<->] (0,-1.05) -- node[below] {$R=4$} (4,-1.05);
\draw[->,thick] (0.85,0.35) -- node[above] {M2L} (3.15,0.35);
\node[blue] at (0,0.82) {$C$, radius $a$};
\node[red] at (4,0.82) {$D$, radius $b$};
\end{tikzpicture}
3 · Logical flowchart
4 · Definitions, theorems and proofs
Finite planar quadtree and separated interaction lists
Definition
Let , , source positions and charges for , and target positions equal to the same labelled positions. A root square is a closed square of side containing every source position. Its cells are the dyadic subsquares obtained by repeatedly bisecting each side. At each split use half-open child squares, with the outer top and right edges included in the last child, so every point belongs to exactly one child. A finite quadtree is a finite rooted tree of such cells in which each internal cell has its four geometric children and each leaf contains at most labels for a fixed integer . Empty children are retained as geometric cells but are skipped in source and target lists. For a cell , write for its center, for its side length, , and for the radius of its circumscribed disk.
A cell pair is source-separated from target-separated when ; is the source cell and the target cell. For every such pair fix an analytic logarithm on the open disk . This disk excludes zero and contains all differences with , . For each direct near particle pair fix one value of the logarithm of , when this difference is nonzero. Once the recursive rule below terminates, for a collision-free configuration define the exact target potential and its complex derivative using the resulting lists as follows: Here and denote the far and direct near lists produced by that rule. Thus each ordered source-target pair contributes its source charge times the fixed direct-near branch value or the fixed far-cell branch value prescribed by its list entry. The complex derivative is independent of the chosen logarithm values.
The recursive interaction decomposition of an ordered pair of nonempty cells is defined as follows. If is a leaf, record as direct near pairs all with . If is internal, replace by all ordered pairs of its nonempty children. If and , record the far cell pair . If both cells are leaves and the pair is not separated, record all direct near particle pairs with . In every other case, if exactly one cell is nonleaf, split that cell; if both are nonleaf, split the one of larger side length, breaking a tie by splitting the source cell. Replace the pair by the child pairs having nonempty source and target sets. For , start at the root pair; for , make no recursive calls and set both lists to empty. The resulting lists are the far interaction list and the direct near-pair list . Their termination and exact pair-partition property are mathematical assertions, proved separately.
For a far pair put and . Two leaves are adjacent when their closed squares meet. A tree is 2:1 level-restricted when any adjacent leaves have depths differing by at most one. It is linear-size level-restricted for this decomposition when it is 2:1 level-restricted and there are fixed constants such that its number of nonempty cells and the number of recursive cell-pair inspections satisfy and . A list is bounded when there are fixed constants with and . The work theorem uses these explicit counts; 2:1 balance alone is not asserted to supply them.
Degree-indexed spherical harmonic spaces in three dimensions
Definition
Let with its usual surface-area measure , normalized so . For an integer , let be the complex vector space of restrictions to of homogeneous degree- polynomials satisfying . Give the inner product , linear in the first argument. An orthonormal basis is not fixed by this definition; the addition-theorem item proves that and that such a finite basis exists.
If is later chosen from an orthonormal basis and , its associated homogeneous harmonic polynomial is . At use the polynomial value: and for . This is the regular-solid-harmonic convention used in the 3D evaluator.
Fixed-order planar Laplace fast multipole procedure
Definition
Use the data, quadtree and interaction decomposition of Finite planar quadtree and separated interaction lists. Fix an expansion order . If two different labels have the same position, return status collision before evaluating any singular interaction: the requested potential is undefined. Otherwise take as input a finite quadtree from the definition, together with its point-to-cell membership arrays and leaf threshold . For return empty outputs. For , construct and by the recursive decomposition in the definition. The tree and point-to-cell membership are preprocessing inputs; their construction is not part of the arithmetic passes below.
Using the supplied membership data, make a root-first list of nonempty cells: at each nonempty internal cell inspect its four children and recurse only into children with ; never descend into an empty subtree. Use the reverse list order for the bottom-up pass and the root-first order for the top-down pass. Use exact complex arithmetic throughout. For each nonempty leaf form the particle-to-multipole (P2M) moments For the upward multipole-to-multipole (M2M) pass, process nonempty internal cells bottom-up. For each such parent and each , form its moments from its nonempty children by An empty child has zero moments and is skipped. Thus the upward pass visits only parent-child edges whose two cells are nonempty.
Initialize the local coefficient vector of every nonempty cell to zero before processing any far pair. For each far pair set , , choose the fixed logarithm , and add to the target cell 's local coefficients the multipole-to-local (M2L) coefficients After all M2L additions, perform a top-down downward local-to-local (L2L) pass over parent-child edges whose two cells are nonempty. For each parent and each nonempty child , add For a target in leaf , return the far potential and far derivative . Add the exact direct near contributions and , respectively, for . Denote the resulting potential and derivative approximations by and , respectively. The derivative output differentiates the truncated local polynomial and adds the exact near derivatives; its value is independent of logarithm branches.
Planar FMM lists partition all ordered off-diagonal particle pairs
Statement
For a finite quadtree and a nonempty root pair as in Finite planar quadtree and separated interaction lists, the recursive interaction decomposition terminates. The Cartesian pair sets of its far cell pairs, together with its direct near particle pairs, are pairwise disjoint and partition .
Facts & Assumptions
Given: A finite quadtree with its source/target labels, the recursive pair rule, and distinct positions for distinct labels.
Finite planar quadtree and separated interaction lists: each internal cell's four child cells partition its labels; the recursive rule either records a separated cell pair, records the off-diagonal pairs in two leaves directly, or replaces a cell pair by its nonempty child-pair partition.
Proof
For a cell let be its remaining tree height, and for a pair use . Every nonterminal call split by [F1] selects a nonleaf cell (both coordinates when ); each child call strictly lowers the height of every split coordinate and leaves any unsplit coordinate fixed. The measure is a nonnegative integer, so every branch terminates. The recursion is finitely branching (at most sixteen child pairs at a simultaneous equal-cell split), hence its finite-depth recursion tree is finite.
If the source cell is split, its child label sets are disjoint and cover the source labels, so the child Cartesian products are a disjoint cover of . The same statement holds when the target cell is split. When is internal, splitting both ordered coordinates gives all ordered child products, also disjoint. Thus each recursive replacement preserves exactly the parent pair set.
A terminal far cell pair records its entire Cartesian product . A terminal near pair of leaves records exactly that product with the diagonal labels removed. By step 2.1, induction from the root pair shows these terminal records cover the off-diagonal part of the root product without overlap.
A far cell pair has disjoint circumscribed disks because ; hence its label sets cannot intersect and its product contains no diagonal pair. Removing the diagonal only at terminal leaf pairs therefore leaves exactly all ordered pairs with , each once.
Three-dimensional Laplace spherical-harmonic addition theorem
Statement
For every integer , the space of Degree-indexed spherical harmonic spaces in three dimensions has dimension . For any orthonormal basis , there is a basis-independent normalized zonal polynomial such that It obeys for and the generating identity
Facts & Assumptions
Given: The unit sphere, surface measure, inner product, and homogeneous harmonic polynomial spaces of Degree-indexed spherical harmonic spaces in three dimensions.
Degree-indexed spherical harmonic spaces in three dimensions: consists of restrictions of homogeneous degree- polynomials annihilated by the three-dimensional Laplacian, with inner product and total sphere area .
Proof
Let be the homogeneous degree- polynomials in three variables; it has monomials. For a homogeneous polynomial of degree , direct differentiation and Euler's identity give . If , put , , , , and for . For , the degree- polynomial satisfies : the coefficients of telescope by and , and . Hence is onto; for the target is zero.
Restriction of a homogeneous polynomial to is injective, because homogeneity recovers its value at every nonzero from its value at . Rank-nullity therefore gives for , and direct counting gives and for . Gram-Schmidt on any finite spanning list gives an orthonormal basis; no choice axiom is used.
For an orthonormal basis define . A unitary basis change leaves this sum unchanged, and rotations carry one orthonormal basis of to another, so is rotation-invariant. Thus is constant in ; integrating it over the sphere gives , so this constant is .
Fix . After rotating it to the third coordinate axis, use and . A rotation sends these to and , so an invariant monomial must have . The invariant homogeneous polynomials are therefore sums of , whose restrictions to the sphere are polynomials of degree at most , with . The polar-coordinate Laplacian is ; applying it to gives . For a zonal , the angular term is by , so . Writing yields . For , the equation at , using , gives ; descending through forces every coefficient of parity opposite to to vanish. For , the coefficient is positive, so each lower coefficient of parity is determined by the next one. Thus the zonal solution space has dimension at most one (for it is the constants). The function is a zonal harmonic, and , so a nonzero such solution exists. Define when . Rotation invariance makes this depend only on , and . The diagonal value in step 3.1 now gives the displayed addition theorem.
Cauchy-Schwarz applied to the finite basis sum gives . Dividing by the diagonal constant proves .
Fix and let for . The radial formula away from shows is harmonic in the unit ball. Its homogeneous Taylor term of degree is therefore harmonic, since the homogeneous terms in of each degree vanish separately; it is also invariant under rotations fixing . By step 4.1 it has the form . On the ray , , so coefficient comparison gives . Finally , whose Taylor series in has radius at least : its possible denominator zeros are , both of modulus one. This proves the generating identity for .
Planar Laplace multipole and local translation identities
Statement
For the P2M, M2M, M2L, L2L and L2P formulas of Fixed-order planar Laplace fast multipole procedure, P2M gives the source moments about a leaf center, M2M gives exactly the same moments about a parent center, and the finite M2L coefficients are the degree- through degree- Taylor coefficients of the order- source multipole polynomial about the target center. L2L is exact re-centering of the resulting degree- polynomial, and L2P evaluates it exactly. For every define ; the algorithm stores only . For a far pair and in the target cell, the fixed-branch source potential also has the absolutely convergent outer expansion .
Facts & Assumptions
Given: A far source/target cell pair, its fixed analytic logarithm, finite source moments, and the order- translation formulas.
Finite planar quadtree and separated interaction lists: for a far pair with centers , radii , and , one has and one analytic logarithm is fixed on a disk containing all pair differences.
Fixed-order planar Laplace fast multipole procedure: P2M stores ; M2M uses the binomial shift over nonempty children (empty children have zero moments); M2L uses the displayed finite local coefficients; L2L uses the binomial re-centering formula over nonempty-cell edges; L2P evaluates the local polynomial and its derivative.
Proof
For , the geometric series converges uniformly on each closed disk . Integrating it from to gives the analytic branch identity .
For a nonempty child cell of , write and apply the finite binomial theorem to its th power. Summing over the sources in each nonempty child and then over the nonempty children gives for every ; empty children contribute zero. This is exactly the M2M pass.
If a parent local polynomial is , put and expand each power. The coefficient of is ; hence L2L exactly re-centers the polynomial without adding truncation error.
For a far pair , put with and . Then . Substituting into the branch-normalized series from step 1.1 and summing the finite source set gives . The branch is because both and lie in its disk and the difference of their logarithms is the series that vanishes at . The convergence is absolute because .
For a far pair put , and . By [F1], . The branch-normalized logarithm therefore has expansion .
Expand by the binomial theorem and set . For , the coefficient of is , since . The terms with are for and for ; the terms with are . Summing over sources replaces it by , and retaining yields precisely the M2L formulas in [F2].
Substitution of a target point into the re-centered degree- polynomial is exactly L2P, and termwise differentiation gives its derivative formula. These are finite polynomial identities and require no additional convergence assumption.
Planar FMM operation count under explicit linear-size tree and list bounds
Statement
Let and . Suppose the finite quadtree and recursive interaction decomposition supplied to Fixed-order planar Laplace fast multipole procedure are linear-size level-restricted and have bounded lists in the exact sense of Finite planar quadtree and separated interaction lists: , , and for a constant independent of . Counting each complex addition, multiplication, division by a nonzero number, coefficient copy, cell-pair inspection, and evaluation of a fixed logarithm branch at one argument as one operation, the FMM passes and direct near evaluation use at most operations for an absolute implementation constant . Hence the total counted work is , and therefore for . The input quadtree construction and point-to-cell preprocessing are not included; a highly clustered input must report its actual tree depth, node count, and list/traversal counts before a linear-in- conclusion is made.
Facts & Assumptions
Given: A finite quadtree, its cell-membership arrays, the recursive pair decomposition, and a fixed order .
Finite planar quadtree and separated interaction lists: counts nonempty cells, counts recursive pair inspections, counts far cell pairs, and counts direct near particle pairs; the linear-size and bounded-list assumptions are explicit inequalities on these counts.
Fixed-order planar Laplace fast multipole procedure: P2M, M2M, M2L, L2L, L2P, and direct near evaluation are finite sums with the displayed index ranges; M2M and L2L process only parent-child edges whose two cells are nonempty.
Planar FMM lists partition all ordered off-diagonal particle pairs: each off-diagonal pair appears once in the far or direct list.
Proof
At each nonempty leaf, P2M accumulates moments per resident source, so the total is at most operations up to a constant. The nonempty cells form a rooted connected subtree, so enumerating them by inspecting four children per nonempty internal cell costs and yields exactly parent-child edges whose two cells are nonempty. On each such edge, M2M or L2L evaluates triangular sums with terms, hence at most operations. Empty-child moments are zero and their edges are skipped. Initializing the local vectors costs , and both this and the enumeration cost are absorbed in the displayed bound.
For each of the far pairs, M2L forms coefficients, each using at most terms, and evaluates the fixed logarithm once at the pair center; this costs because . L2P evaluates one degree- polynomial and its derivative at each of targets in operations.
The recursive list decomposition uses cell-pair inspections. Each of the direct near particle-pair evaluations uses a constant number of arithmetic operations and one fixed-logarithm evaluation. By [F3] no required pair is counted twice or omitted; the work to dispatch the finite lists is included in these counts.
Adding the counts from steps 1.1, 1.2, and 1.3 gives the displayed operation bound after increasing one absolute constant . The assumptions , , and then give ; since , , giving . No bound on the cost of constructing the input quadtree or assigning its points was used.
Single-cluster three-dimensional Laplace multipole evaluator
Definition
Fix an integer , a finite set of source labels with positions and charges , a center , and a radius with . For each , supply an orthonormal basis of from Degree-indexed spherical harmonic spaces in three dimensions; its existence and dimension are given by Three-dimensional Laplace spherical-harmonic addition theorem. Form moments For every target with , evaluate the truncated single-cluster multipole field The output is an approximation to . This is the source-cluster-to-target evaluator only; it makes no 3D tree-translation or global all-target complexity claim.
For the arithmetic count, store each basis polynomial by its monomial coefficient array. Basis setup is done once for the chosen . To evaluate the displayed formula directly, evaluate every basis polynomial by summing its monomials at each source and target point, then accumulate the moments and target sums. This convention makes the basis-evaluation work explicit rather than treating each special-function evaluation as free.
Global planar FMM potential and derivative error
Statement
Assume the collision-free exact-arithmetic branch of Fixed-order planar Laplace fast multipole procedure with order . For each target in leaf , let be its far cell interactions. For put , , and . If is the exact fixed-branch logarithmic potential and the algorithm output, then If and is the algorithm's complex derivative output, then Near interactions are exact. The second estimate is branch-independent; no floating-point rounding error is included.
Facts & Assumptions
Given: Collision-free finite sources, a finite quadtree, order , and the exact-arithmetic local expansions in Fixed-order planar Laplace fast multipole procedure.
Finite planar quadtree and separated interaction lists: each far pair has and one analytic logarithm on a disk containing every source-target difference in that pair.
Fixed-order planar Laplace fast multipole procedure: P2M/M2M moments are computed through order , M2L retains source moment indices and local degrees , L2L re-centers finite polynomials exactly, and direct near pairs are evaluated exactly.
Planar Laplace multipole and local translation identities: these finite formulas are the corresponding source and target truncations of the absolutely convergent logarithmic series.
Planar FMM lists partition all ordered off-diagonal particle pairs: the far cell products and exact near pairs partition all ordered off-diagonal source-target pairs.
Proof
Fix a far interaction contributing to target , and write , , , and . Then , , and by [F1]. The series in [F3] for each source is the double binomial expansion of . The algorithm retains all terms with source index and target degree ; every omitted term has total degree .
For total degree , the sum of absolute values of the potential terms for one source is at most . Summing sources and omitted degrees gives an interaction error at most , since for .
For each total degree , the sum of absolute differentiated monomials for one source, before multiplying by , is Here a zeroth power is , including at zero. Every subset of these monomials, in particular the omitted subset from the rectangular truncation , has absolute sum bounded by the same nonnegative full sum. The series and its differentiated monomials converge absolutely and uniformly on because , so termwise differentiation is valid. By step 1.1, omitted terms have ; multiplying by and summing sources and degrees bounds the interaction derivative error by . The derivative of any additive branch constant is zero.
By [F4], each off-diagonal particle pair is either one exact direct near interaction or belongs to exactly one far cell product. M2M and L2L introduce no additional truncation error by [F2]–[F3], and L2P evaluates the stored polynomial exactly. Therefore the total potential and derivative errors for target are bounded by the sums of the finite per-interaction bounds from steps 2.1 and 2.2; all near terms contribute zero error.
Three-dimensional Laplace cluster expansion error and work
Statement
For the single-cluster evaluator of Single-cluster three-dimensional Laplace multipole evaluator, let . If a target satisfies , then its potential error obeys If a target region is contained in a ball of radius centered at , with , then every target in the region has error at most Let and let be the number of targets. Under the monomial-coefficient evaluation convention of the algorithm, forming moments and evaluating the truncated field costs arithmetic operations after the basis coefficient arrays have been prepared. If all basis values at sources and targets are supplied, the coefficient accumulation and expansion evaluation alone cost . This is a single-cluster estimate; it is not a 3D multilevel FMM tree complexity theorem.
Facts & Assumptions
Given: A finite 3D source cluster in a ball , an orthonormal basis of each through degree , and targets strictly outside .
Degree-indexed spherical harmonic spaces in three dimensions: is the degree- homogeneous harmonic polynomial space restricted to the unit sphere, with the surface-area inner product; its regular solid harmonics are homogeneous degree- polynomials.
Three-dimensional Laplace spherical-harmonic addition theorem: the normalized spherical-harmonic addition identity and hold, and for .
Single-cluster three-dimensional Laplace multipole evaluator: moments are , and the output sums the corresponding basis expansion through degree .
Proof
For a source , put , , and when . For a target put and . Applying the generating identity and then the addition identity in [F2] with ratio gives . For , the same formula follows by the limit: the degree-zero term is and all positive-degree regular solid harmonics vanish at the center.
The dimension result in [F2] gives coefficients. At degree , each homogeneous polynomial has at most monomials and there are basis polynomials. Evaluating all basis values at one point by the prescribed monomial sums therefore uses at most a constant times operations.
Summing the finite source set with weights and grouping the finite sums over produces exactly the moments and the truncated evaluator in [F3]. The remainder magnitude is at most , using [F2] and the geometric-series formula.
If , the triangle inequality gives . The function , equal to , is nonincreasing for because its denominator is nondecreasing; substituting in step 2.1 gives the stated uniform target-region bound.
Repeating this basis evaluation at source points and target points costs . The remaining moment and target accumulations use coefficients per point, hence additional operations; if basis values are supplied, this latter count is the full coefficient-stage cost.
5 · Examples, counterexamples and false statements
None yet.
Sources
- Leslie Greengard and Vladimir Rokhlin, A Fast Algorithm for Particle Simulations, Journal of Computational Physics 73 (1987), 325–348
- James Demmel, Fast Hierarchical Methods for the N-body Problem, Part 2, CS267 Lecture 25 (1996)
- Michael O’Neil, Integral Equations and Fast Algorithms, complete course lecture notes (2017)