Alphabeta Math
AlgorithmAlgorithm: Literature-sourcedProof: Not applicablePipeline-generatedjudge pass (gpt-6-luna)
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.

Multinomial and residual offspring resampling

Definition

Input a particle count N≥1, nonnegative finite weights a1,…,aN, and a scheme label, either multinomial or residual. Let A=∑j=1Naj. If A>0, set pj=aj/A; if A=0, set pj=1/N for every j. Thus p is always a probability vector.

  • Multinomial scheme. Draw an index vector (J1,…,JN)∈{1,…,N}N with conditional mass P(J1=j1,…,JN=jN∣a)=∏ℓ=1Npjℓ. Put Cj=#{ℓ:Jℓ=j}.
  • Residual scheme. Put qj=⌊Npj⌋, rj=Npj−qj, and R=∑j=1Nrj=N−∑j=1Nqj, an integer in {0,…,N−1}. If R=0, put Cj=qj. If R>0, draw (K1,…,KR) with conditional mass P(K1=k1,…,KR=kR∣a)=∏ℓ=1R(rkℓ/R) and put Cj=qj+#{ℓ:Kℓ=j}.

For multinomial resampling, return the sampled vector (J1,…,JN) in its sampled order, together with its count vector (C1,…,CN); do not sort the sampled indices. For residual resampling, return the ancestor list containing exactly Cj copies of index j, ordered by increasing index, together with its count vector. Each output is a length-N list and a count vector summing to N. When all input weights vanish, the uniform fallback defines the procedure; any downstream normalizer already multiplied by this zero average remains zero.

Remarks

The multinomial branch is the conditionally IID ancestor-index scheme. The residual branch is a distinct selection law: its deterministic floor counts generally make the child indices dependent, while its conditional expected counts agree with the same probability vector.

Used by

Dependency tree · 0 levels

Nothing. This result depends on no other item in the library.

Sources