The measurable space of subtrees #
The measurable structure on subtrees of π©(N): the one generated by the vertex
events {T | v β T}. A subtree is determined by which words it contains, so these are
the events a random tree has to answer, and the Ο-algebra they generate is the smallest
making every such question measurable.
Equations
- One or more equations did not get rendered due to their size.
The criterion for a random tree. A map into subtrees is measurable exactly when every vertex event pulls back to a measurable event.
The sample is a random tree: the tree cut out by an offspring field is a
measurable function of the field, by measurableSet_mem_sample.
The law of the Galton-Watson tree of an offspring law: the pushforward of the law of the offspring field along the sample.
Equations
Instances For
The reduced law as an offspring law #
The surviving-children weights vanish above the support bound: a root with at most
J children cannot have more than J of them survive.
The surviving-children weights are a probability distribution. Summing the
binomial count over the number of survivors is the binomial theorem at (1-q) + q = 1,
and what is left is the offspring law itself.
The reduced weights are nonnegative once the tree survives with positive probability.
The reduced weights vanish above the support bound, which is therefore inherited.
The reduced weights sum to one. The surviving-children weights sum to one, the
weight at zero is the extinction probability, and the renormalisation by 1-q is exactly
what removes it.
The reduced law as an offspring law in its own right: the
Harris-Sevastyanov transform of ΞΈ, of the same support bound J. This is the law the
skeleton of a surviving sample branches with.
Equations
- ΞΈ.reduced hq = { mass := ΞΈ.skeletonWeight, nonneg := β―, vanishing := β―, total := β― }
Instances For
The mass the reduced law puts on a skeleton arity above m: the probability that a
skeleton vertex has more than m children.
Equations
- ΞΈ.skeletonTail m = β k β Finset.range (J + 1), if m < k then ΞΈ.skeletonWeight k else 0
Instances For
The tail weights are nonnegative.
The surviving subtrees of the root, re-addressed #
The offspring field of the m-th surviving child subtree of a root whose surviving
children are named by S, the children being ordered by the alphabet; the zero field
when there are at most m of them. The junk value is never read: every statement below
guards it by m < skeletonDegree c.
Equations
- BranchingProcess.bushOf S m c = if h : m < S.card then fun (w : BranchingProcess.Word N) => c ((S.orderEmbOfFin β―) β¨m, hβ© :: w) else fun (x : BranchingProcess.Word N) => 0
Instances For
The m-th surviving subtree of the root: the offspring field of the subtree
founded by the m-th child of the root that survives.
Equations
Instances For
The skeleton degree is the number of surviving children, unfolded.
A surviving subtree survives.
The m-th surviving subtree of a prescribed pattern of survivors is a measurable
function of the field: it is a shift, or a constant.
The surviving subtrees are measurable. The pattern of survivors takes finitely many values, and on each of the corresponding events the subtree is a shift.
The skeleton as an offspring field #
The subtree of the skeleton at an address. A word u is read as an address in
the skeleton: its letters name successive surviving children, the letter m selecting
the m-th of them, and skelSub c u is the offspring field of the subtree the address
leads to.
Equations
- BranchingProcess.skelSub xβ [] = xβ
- BranchingProcess.skelSub xβ (j :: u) = BranchingProcess.skelSub (BranchingProcess.bushAt xβ βj) u
Instances For
The offspring field of the skeleton: the number of surviving children of the
skeleton vertex an address leads to. The re-addressing is what makes the skeleton a
sample again: the m-th surviving child is reached by the letter m.
Equations
Instances For
The skeleton, re-addressed: the tree cut out by the offspring field of the
skeleton, an isomorphic copy of the skeleton of sample c inside π©(N).
Instances For
Measurability of the skeleton #
Following a fixed address is measurable.
The offspring field of the skeleton is measurable.
The skeleton is a random tree.
The law of the skeleton: the law of the re-addressed skeleton of a sample conditioned to survive.
Equations
Instances For
Singling out one surviving subtree #
The product over the children of a root with j children of a factor that is
X at one distinguished surviving child, A at the other surviving ones, B at a
dying one and 1 at a letter naming no child.
The product event singling out one surviving subtree: the root has j children,
those named by S found infinite subtrees, the remaining children die, and the subtree
under the distinguished letter iβ additionally lies in A.
Equations
- One or more equations did not get rendered due to their size.
- BranchingProcess.bushBox j S iβ A none = {u : BranchingProcess.Branch N none β β | u BranchingProcess.rootIdx = j}
Instances For
The product event singles out a surviving subtree. The root has j children
with S the set of those founding an infinite subtree, and the subtree under the
distinguished letter lies in A.
The law of one surviving subtree #
The mass of the survival event splits off the conditioned law.
The mass of a survival pattern with one subtree constrained. The root has j
children of which exactly those named by S survive, and the m-th of the survivors
lies in A: the splitting makes the subtrees independent, so the constrained one
contributes the conditioned mass of A and the pattern the mass of
sampleMeasure_root_survivors.
The one-root count with one subtree constrained. The root has j children of
which k survive and the m-th survivor lies in A: the patterns with k survivors
are the k-element subsets of the j letters, and each carries the mass of
sampleMeasure_root_survivors_bush.
The count with one subtree constrained. Summing the one-root count over the
offspring count at the root: the root has k surviving children and the m-th of them
lies in A with probability ΞΈΜ_k times the conditioned mass of A.
The reduced law at the root with one subtree constrained. Conditioned on
survival, the root has k skeleton children and the m-th of them lies in A with
probability ΞΈΜ_k times the conditioned mass of A: the skeleton arity has the reduced
law and the subtree is an independent copy of the conditioned sample.
The branching property of the skeleton, the skeleton half of the Harris
decomposition beyond the root. Conditioned on survival, the root has more than m
skeleton children
with probability β_{k>m} ΞΈΜ_k, and on that event the m-th surviving subtree is an
independent copy of the sample conditioned on survival. Iterating this is what makes the
skeleton a Galton-Watson tree with the reduced law.
The reduced law along an address #
The mass the reduced law puts on an address: the product over the letters of u of
the tail weights they impose, which is the probability that u names a skeleton
vertex.
Equations
- ΞΈ.skeletonPath u = (List.map (fun (j : Fin N) => ΞΈ.skeletonTail βj) u).prod
Instances For
The branching property along an address. Conditioned on survival, the address
u names a skeleton vertex with probability ΞΈΜ-weight of the path, and on that event
the skeleton subtree there is an independent copy of the conditioned sample. This is
survivalMeasure_bushAt iterated down the address.
The probability that an address names a skeleton vertex is the product of the tail weights of its letters.
The reduced law at an arbitrary skeleton vertex, the skeleton half of the
Harris decomposition in full: conditioned on survival, an address names a
skeleton vertex and the arity there is k with probability the path weight times ΞΈΜ_k.
The arity at a skeleton vertex is therefore reduced-law distributed, independently of the
address being present.
The vertex events of the two laws #
The tail weights of the reduced law are the tail weights of the skeleton.
The mass an offspring law puts on a word: the product over its letters of the tail weights they impose, which is the probability that the word lies in the sample.
Instances For
The path weights of the reduced law are the path weights of the skeleton.
The root factor of the splitting for a tail event: the offspring count at the root
exceeds m with probability the tail weight.
The product event for a word: the root has more than j children and the subtree
under the letter j lies in E.
Equations
- BranchingProcess.pathBox j E none = {u : BranchingProcess.Branch N none β β | βj < u BranchingProcess.rootIdx}
- BranchingProcess.pathBox j E (some i) = if i = j then E else Set.univ
Instances For
The probability that a word lies in the sample is the product of the tail weights of its letters: each letter demands that the vertex it leaves have enough children, and the splitting makes those demands independent.
The skeleton is a Galton-Watson tree with the reduced law, on the vertex events. Conditioned on survival, the re-addressed skeleton contains a given word with exactly the probability that the Galton-Watson tree of the reduced law does. These events generate the measurable structure on subtrees.
The rank of a surviving child #
The rank of a letter among a set of letters: the number of elements of S strictly
below i. Along the surviving children this is the address the child receives in the
re-addressed skeleton.
Equations
- BranchingProcess.rankOf S i = {x β S | x < i}.card
Instances For
Reindexing a product over a set of letters by the rank. The ranks of the
elements of S run through 0,β¦,|S|-1.
The rank-indexed constraints on the surviving subtrees, read letter by letter.
Constraining the m-th surviving subtree for every m below the number of survivors is
constraining the subtree under each surviving letter by the set of its rank.
Constraining every surviving subtree #
The product over the children of a root with j children of a factor that is
X of the rank at a surviving child, B at a dying one and 1 at a letter naming no
child. The ranks run through 0,β¦,|S|-1.
The product event constraining every surviving subtree: the root has j children,
those named by S found infinite subtrees, the remaining children die, and the subtree
under a surviving letter lies in the set indexed by its rank.
Equations
- One or more equations did not get rendered due to their size.
- BranchingProcess.bushesBox j S A none = {u : BranchingProcess.Branch N none β β | u BranchingProcess.rootIdx = j}
Instances For
The extra factors constraining the surviving subtrees, as a product event.
Equations
- BranchingProcess.bushesOnly S A none = Set.univ
- BranchingProcess.bushesOnly S A (some i) = if i β S then A (BranchingProcess.rankOf S i) else Set.univ
Instances For
The tails of the reduced law are the skeleton tails, so the two forms of the branching property agree.
The law of all the surviving subtrees #
Constraining every surviving subtree of a prescribed pattern is a measurable event.
The mass of a survival pattern with every surviving subtree constrained. The
splitting makes the subtrees independent, so each contributes the conditioned mass of the
set of its rank and the pattern contributes the mass of
sampleMeasure_root_survivors.
The one-root count with every surviving subtree constrained.
The count with every surviving subtree constrained, summed over the offspring count at the root.
The reduced law at the root with every surviving subtree constrained.
Conditioned on survival, the root has k skeleton children with probability ΞΈΜ_k, and
the k subtrees are independent copies of the conditioned sample.
The branching property of the skeleton with every subtree constrained.
Conditioned on survival, the root has at least n skeleton children with probability
β_{kβ₯n} ΞΈΜ_k, and the subtrees are independent copies of the conditioned sample: the
sets above n impose nothing, so only the first n factors survive.
Finite prefix-closed sets of words #
A set of words is prefix-closed when it contains every prefix of each of its
elements. These are the sets a subtree can contain, and the events {T | F β T} they
name are the Ο-system the two laws are compared on.
Equations
- BranchingProcess.PrefixClosed F = β β¦v : BranchingProcess.Word Nβ¦, v β F β β β¦u : List (Fin N)β¦, u <+: v β u β F
Instances For
The residual set at the letter of index m: the words u with the m-th letter
prepended lying in F. Empty once m names no letter.
Equations
Instances For
Residual sets inherit prefix closure.
The one-step criterion for containment in the skeleton.
The two recursions #
The product event for containment: the root has enough children and each subtree contains the corresponding residual set.
Equations
- BranchingProcess.subsetBox F none = {u : BranchingProcess.Branch N none β β | BranchingProcess.rootDeg F β€ u BranchingProcess.rootIdx}
- BranchingProcess.subsetBox F (some i) = {d : BranchingProcess.Word N β β | BranchingProcess.wordSub F βi β β(BranchingProcess.sample d)}
Instances For
The recursion for a sample. The root must carry the demand of F, and the
subtrees must carry the residual sets, independently.
The recursion for the skeleton. Conditioned on survival, the root must have
enough skeleton children to carry the demand of F, and the surviving subtrees must carry
the residual sets, independently.
The pushforward #
The skeleton is a Galton-Watson tree with the reduced law, on every finite
prefix-closed set of words. Both sides satisfy the same recursion, the skeleton one by
survivalMeasure_subset_skelTree_step and the sample one by
sampleMeasure_subset_sample_step, so the induction on the height of F closes.
The containment events form a Ο-system: the union of two finite prefix-closed sets of words is finite and prefix-closed.
The containment events generate the measurable structure on subtrees.
The Harris recursion, the skeleton half of the decomposition in full. Conditioned on survival, the re-addressed skeleton of the sample is a Galton-Watson tree with the reduced law of the Harris-Sevastyanov transform. The containment events of the finite prefix-closed sets of words form a Ο-system generating the measurable structure on subtrees, and the two laws agree on it.
The conjugate law of the bushes #
The conjugate law of the bush half of the Harris decomposition: the offspring law
tilted by the extinction probability, ΞΈ_j q^j / q. This is the law a subtree
conditioned to die branches with.
Equations
- ΞΈ.conjugateWeight j = ΞΈ.mass j * ΞΈ.extinction ^ j / ΞΈ.extinction
Instances For
The conjugate weights sum to one: the generating function is at its fixed point, so the tilt is exactly normalised.
The conjugate law as an offspring law in its own right, of the same support
bound J. This is the law a bush branches with.
Equations
- ΞΈ.conjugate hq0 = { mass := ΞΈ.conjugateWeight, nonneg := β―, vanishing := β―, total := β― }
Instances For
The law of a bush #
The bush law is a probability measure once the tree dies with positive probability.
The mass of the extinction event splits off the bush law.
The law of the bush of a sample conditioned to die.
Equations
Instances For
Constraining every dying subtree #
The rank of a letter among all letters is the letter itself.
The product over the children of a root with j children when the letters
naming no child contribute nothing.
Reindexing a product over the letters naming a child by the number they name.
The product event constraining every dying subtree: the root has j children, all
of them die, and the subtree under a letter lies in the set indexed by that letter.
Equations
- BranchingProcess.dyingBox j A none = {u : BranchingProcess.Branch N none β β | u BranchingProcess.rootIdx = j}
- BranchingProcess.dyingBox j A (some i) = (if βi < j then {c : BranchingProcess.Word N β β | Β¬BranchingProcess.Survives c} else Set.univ) β© A βi
Instances For
The mass of a dying root with every subtree constrained. The root has j
children, all of the subtrees die, and each lies in the set indexed by its letter: the
splitting makes them independent bushes.
The branching property of the bushes, the bush half of the Harris decomposition.
Conditioned on extinction, the root has at least n children with probability
β_{jβ₯n} ΞΈΜ_j, and the subtrees are independent bushes: the sets above n impose
nothing, so only the first n factors survive.
The recursion for a bush. Conditioned on extinction, the root must carry the
demand of F, and the dying subtrees must carry the residual sets, independently.
The bushes are Galton-Watson trees with the conjugate law, on every finite prefix-closed set of words.
The bushes are Galton-Watson trees with the conjugate law, the bush half of the
decomposition in full: conditioned on extinction, the sample
is a Galton-Watson tree with the conjugate law ΞΈ_j q^j / q. Together with
skeletonTreeLaw_eq_treeLaw this is the Harris decomposition: the skeleton branches with
the reduced law, and what hangs off it branches with the conjugate law.