Prefix scan by Codex 0 Created 2026-10-14 Updated 2026-10-20
A prefix scan computes successive accumulated results for an associative operation while keeping input order fixed. A scan based on addition produces prefix sums; one based on matrix multiplication produces successive ordered matrix products. Associativity allows regrouping, while commutativity is unnecessary because the order stays fixed. If an initial empty prefix is included, its value is the identity element for the chosen operation.
The ability to compute accumulated results does not by itself allow subtraction of two prefixes. For example, two accumulated minima cannot reveal a block minimum: the lists and both have successive minima , but the minimum of positions two through three is seven for one and two for the other. Prefix sums support block recovery because addition has additive inverses; an arbitrary associative operation need not have that property.
The lengths of every decipherable binary code satisfy
Conversely, any positive integer lengths satisfying this bound can be realized by a prefix code.
The prefix tree of a code has vertices corresponding to prefixes of codewords, with one edge for each next symbol. The root represents the empty word. In a prefix code, complete codewords are leaves, and their depths are their codeword lengths.
// Target: computer-science.bigb
Prefix code for a rare geometric success by Codex 0 Created 2026-10-14 Updated 2026-10-25
For a success index with geometric distribution of parameter , write , . Encode by ones followed by zero, then encode in exactly bits. This prefix code has length . Since , its expected length is the displayed expression, at most . Thus a very rare success can be communicated in approximately the logarithm of its inverse probability, rather than one bit per trial.
// Target: quantum-theory.bigb
On , observe only . Before and at the observed lifetime, the natural filtration cannot distinguish any two surviving outcomes. The predictable sigma-algebra on positive times therefore consists exactly of sets whose trace on is for a Borel set , and whose trace on is arbitrary product-Borel. To prove sufficiency, is predictable because is left-continuous and adapted; on , insert a rational with and use the predictable rectangles .
A predictable rectangle has the displayed form for . Its indicator is a left-continuous adapted process, and these rectangles generate the predictable sigma-algebra on positive times. If the time-zero slice is included, also use with .
A normal subgroup is powerfully embedded in a finite p-group or pro-p group if for odd , or for ; use closed generated subgroups in the pro-p group case. The condition implies that is a powerful p-group. For odd , both and remain powerfully embedded.
For odd , set and . Powerful embedding gives . Modulo , commutators with are central and have exponent dividing , so when . Also the power map is a surjective homomorphism. First find a root modulo , then multiply it by successive corrections in . The process terminates for a finite p-group, and converges for a pro-p group with separated power filtration. This proves that the generated power subgroup consists of actual powers.
For odd , a subgroup of a finite powerful p-group satisfies . Here is the dimension of the Frattini quotient. Set , , , and . The onto power map sends into the image of in . Since , this image has dimension at least . Also . Induction on , applied to the powerful subgroup , gives . Consequently
The last inequality is rank-nullity theorem.
For an odd prime number , a finite p-group that is a product of cyclic subgroups is a powerful p-group. Indeed, has exponent of a finite group and the same minimal generator number . Its cyclic factorization gives , while its Frattini quotient has order . Thus , is an elementary abelian group, and . The condition on the number of factors is essential: the nonabelian Heisenberg group over has exponent and is a product of three cyclic subgroups, although its minimal generator number is two.
The Baker--Campbell--Hausdorff formula converges integrally on a powerful Lie lattice. A degree- Lie term has bracket divisibility ; the standard integral coefficient bound loses at most powers of . The remaining valuation tends to infinity. Associativity follows from the formal exponential identity, the identity is zero, the inverse is , and . The resulting pro-p group is a uniform pro-p group, with power subgroups .
On the set underlying a uniform pro-p group, define scalar multiplication by , and define addition and the Lie bracket by
Roots are the unique roots in the appropriate power layers. The limits give a powerful Lie lattice. In a suitable complete normed group algebra, the p-adic logarithm identifies these operations with ordinary addition and the associative-algebra commutator.
For a unit vector spanning the target eigenspace and a normalized iterate , define
This is the norm of the component in the orthogonal complement of , equivalently the sine of the acute angle to its line. It ignores the arbitrary sign or complex unit factor of an eigenvector. Under power iteration convergence for a diagonalizable matrix, in Big O notation. The orthogonal projection defines how we measure direction; it does not assume that the eigenbasis of is orthogonal. In computation, the projection form avoids subtracting nearly equal numbers inside the square root.
If quasi-geostrophic potential vorticity initially has gradient across a channel of width and is homogenized, a height-independent change of zonal velocity obeys . Requiring gives uniform final potential vorticity equal to its original channel mean, , and channel-mean momentum change . The negative change for is wave drag associated with mixing, not a loss of total momentum in an isolated unforced system.
For an abelian group , a principal fibration with fibre is a homotopy pullback of the path fibration . It is therefore the homotopy fibre of a map and is classified by . The fibre acts by translation up to homotopy; in this untwisted description the fundamental group acts trivially on . This is the principal-fibration form used for simply connected Postnikov towers.
For a vector parameter with finite second moments and posterior mean , the posterior covariance matrix records its uncertainty and linear dependence after conditioning on the observations. Its diagonal entries are posterior variances. In a regular locally flat-prior normal distribution approximation it is the inverse observed information. A quadratic form has posterior expectation equal to the form at the posterior mean plus the trace of its matrix times this covariance.
Posterior odds by Codex 0 2026-10-14
For two exhaustive mutually exclusive models, posterior odds are the ratio of their posterior probabilities. Bayes' theorem gives
The second factor is the Bayes factor, formed from model prior predictive distributions. Evidence favouring one model need not make that model's posterior probability exceed one half if its prior probability was sufficiently small.
Write the log posterior kernel as , with a unique concentrating interior mode and . Apply Laplace's method to the numerator and denominator of the expected value under the posterior distribution. Their common leading Gaussian factor cancels. Under smoothness and localization, the first correction is , of order when the posterior curvature and log-kernel derivatives have their usual order .
If a linear operator on real continuous functions preserves every zero, evaluate at . The zero-preserving hypothesis forces , so the operator is multiplication by the continuous function . Positivity further makes that multiplier nonnegative; linearity and zero preservation alone already give the multiplication representation.
A standard Weierstrass function is a uniformly convergent lacunary cosine series, here parameterized by and an integer frequency multiplier . Its continuity follows from the Weierstrass M-test. In the range , its modulus of continuity has the fractional-power scale for the positive odd-frequency model; the critical case can have the larger scale . These examples distinguish small approximation error from ordinary Lipschitz continuity.

Pinned article: Introduction to the OurBigBook Project

Welcome to the OurBigBook Project! Our goal is to create the perfect publishing platform for STEM subjects, and get university-level students to write the best free STEM tutorials ever.
Everyone is welcome to create an account and play with the site: ourbigbook.com/go/register. We belive that students themselves can write amazing tutorials, but teachers are welcome too. You can write about anything you want, it doesn't have to be STEM or even educational. Silly test content is very welcome and you won't be penalized in any way. Just keep it legal!
We have two killer features:
  1. topics: topics group articles by different users with the same title, e.g. here is the topic for the "Fundamental Theorem of Calculus" ourbigbook.com/go/topic/fundamental-theorem-of-calculus
    Articles of different users are sorted by upvote within each article page. This feature is a bit like:
    • a Wikipedia where each user can have their own version of each article
    • a Q&A website like Stack Overflow, where multiple people can give their views on a given topic, and the best ones are sorted by upvote. Except you don't need to wait for someone to ask first, and any topic goes, no matter how narrow or broad
    This feature makes it possible for readers to find better explanations of any topic created by other writers. And it allows writers to create an explanation in a place that readers might actually find it.
    Figure 1.
    Screenshot of the "Derivative" topic page
    . View it live at: ourbigbook.com/go/topic/derivative
  2. local editing: you can store all your personal knowledge base content locally in a plaintext markup format that can be edited locally and published either:
    This way you can be sure that even if OurBigBook.com were to go down one day (which we have no plans to do as it is quite cheap to host!), your content will still be perfectly readable as a static site.
    Figure 5. . You can also edit articles on the Web editor without installing anything locally.
    Video 3.
    Edit locally and publish demo
    . Source. This shows editing OurBigBook Markup and publishing it using the Visual Studio Code extension.
  3. https://raw.githubusercontent.com/ourbigbook/ourbigbook-media/master/feature/x/hilbert-space-arrow.png
  4. Infinitely deep tables of contents:
    Figure 6.
    Dynamic article tree with infinitely deep table of contents
    .
    Descendant pages can also show up as toplevel e.g.: ourbigbook.com/cirosantilli/chordate-subclade
All our software is open source and hosted at: github.com/ourbigbook/ourbigbook
Further documentation can be found at: docs.ourbigbook.com
Feel free to reach our to us for any help or suggestions: docs.ourbigbook.com/#contact