# maix00/branchingprocess architecture

> Architecture diagram of the GitHub repository maix00/branchingprocess, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/maix00/branchingprocess
- Repository: https://github.com/maix00/branchingprocess

## Overview

BranchingProcess is a Lean 4/Mathlib research library, not a runtime service. Its principal use is to import narrow theorem modules to formalize branching or random-walk models and derive probabilistic and path-space results. The README describes the mathematical interfaces and major theorem families; the sampled source excerpts are project-checking scripts rather than runtime Lean modules, so internal call-level wiring cannot be verified. Documented capability links are shown without implying a complete proof pipeline.

Main entry points: [`Probability/Process/RandomWalk`](https://github.com/maix00/branchingprocess/tree/main/Probability/Process/RandomWalk) (Random walks), [`Probability/Process/Path`](https://github.com/maix00/branchingprocess/tree/main/Probability/Process/Path) (Path-space limits), [`Probability/Process/Stable`](https://github.com/maix00/branchingprocess/tree/main/Probability/Process/Stable) (Stable processes), [`Probability/BranchingRandomWalk`](https://github.com/maix00/branchingprocess/tree/main/Probability/BranchingRandomWalk) (Random fields)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_foundations["Combinatorial foundations"]
  node_trees["Ulam–Harris trees<br/>[Basic.lean]"]
  node_walkmodel["Branching walks<br/>[Definitions.lean]"]
  node_walksteps["Walk steps<br/>[Basic.lean]"]
end

subgraph group_branching["Branching probability"]
  node_fields["Random fields"]
  node_genealogy["Genealogy laws"]
  node_selection["Selection couplings"]
  node_pointprocess["Point processes"]
  node_spine["Spine laws"]
end

subgraph group_processes["Random processes"]
  node_kernels["Kernels and survival"]
  node_randomwalk["Random walks"]
  node_levy["Lévy processes"]
end

subgraph group_analysis["Analytic limits"]
  node_regularvariation["Regular variation"]
  node_characteristic["Characteristic functions"]
  node_stable["Stable processes"]
  node_mogulskii["Mogulskii deviations"]
end

subgraph group_pathlimits["Path limits"]
  node_pathspace["Path-space limits"]
  node_skorokhod["Skorokhod topology"]
  node_tightness["Tightness criteria"]
end

node_researcher(("Lean user"))

node_researcher -->|"imports modules"| node_trees
node_researcher -->|"imports modules"| node_randomwalk
node_researcher -->|"imports modules"| node_pointprocess
node_trees -->|"models walks"| node_walkmodel
node_walksteps -->|"defines steps"| node_walkmodel
node_fields -->|"supports laws"| node_genealogy
node_fields -->|"supports selections"| node_selection
node_pointprocess -->|"supports spine laws"| node_spine
node_spine -->|"yields formulas"| node_genealogy
node_kernels -->|"supports estimates"| node_randomwalk
node_randomwalk -->|"defines limits"| node_pathspace
node_levy -->|"specializes processes"| node_stable
node_characteristic -->|"supports analysis"| node_regularvariation
node_regularvariation -->|"supports scaling"| node_stable
node_randomwalk -->|"supports deviations"| node_mogulskii
node_stable -->|"provides stable scale"| node_mogulskii
node_pathspace -->|"uses topology"| node_skorokhod
node_pathspace -->|"uses criteria"| node_tightness

click node_trees "https://github.com/maix00/branchingprocess/blob/main/Combinatorics/UlamHarris/Basic.lean"
click node_walkmodel "https://github.com/maix00/branchingprocess/blob/main/Combinatorics/BranchingWalk/Basic/Definitions.lean"
click node_walksteps "https://github.com/maix00/branchingprocess/blob/main/Combinatorics/BranchingWalk/Step/Basic.lean"
click node_fields "https://github.com/maix00/branchingprocess/tree/main/Probability/BranchingRandomWalk"
click node_genealogy "https://github.com/maix00/branchingprocess/tree/main/Probability/BranchingRandomWalk/Genealogy"
click node_selection "https://github.com/maix00/branchingprocess/tree/main/Probability/BranchingRandomWalk/Selection"
click node_pointprocess "https://github.com/maix00/branchingprocess/tree/main/Probability/PointProcess"
click node_spine "https://github.com/maix00/branchingprocess/tree/main/Probability/BranchingRandomWalk/Spine"
click node_kernels "https://github.com/maix00/branchingprocess/tree/main/Probability/Kernel"
click node_randomwalk "https://github.com/maix00/branchingprocess/tree/main/Probability/Process/RandomWalk"
click node_levy "https://github.com/maix00/branchingprocess/tree/main/Probability/Process/Levy"
click node_regularvariation "https://github.com/maix00/branchingprocess/tree/main/Analysis/Asymptotics/RegularVariation"
click node_characteristic "https://github.com/maix00/branchingprocess/tree/main/MeasureTheory/Measure/CharacteristicFunction"
click node_stable "https://github.com/maix00/branchingprocess/tree/main/Probability/Process/Stable"
click node_mogulskii "https://github.com/maix00/branchingprocess/tree/main/Probability/Process/RandomWalk/SmallDeviation/Mogulskii"
click node_pathspace "https://github.com/maix00/branchingprocess/tree/main/Probability/Process/Path"
click node_skorokhod "https://github.com/maix00/branchingprocess/tree/main/Topology/Cadlag/Skorokhod"
click node_tightness "https://github.com/maix00/branchingprocess/tree/main/Probability/Process/Path/Tightness"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_trees,node_walkmodel,node_walksteps,node_researcher toneBlue
class node_fields,node_genealogy,node_selection,node_pointprocess,node_spine toneAmber
class node_kernels,node_randomwalk,node_levy toneMint
class node_regularvariation,node_characteristic,node_stable,node_mogulskii toneRose
class node_pathspace,node_skorokhod,node_tightness toneIndigo
```

## Components

### Combinatorial foundations

- [Ulam–Harris trees](https://github.com/maix00/branchingprocess/blob/main/Combinatorics/UlamHarris/Basic.lean): `Combinatorics/UlamHarris/Basic.lean`
- [Branching walks](https://github.com/maix00/branchingprocess/blob/main/Combinatorics/BranchingWalk/Basic/Definitions.lean): `Combinatorics/BranchingWalk/Basic/Definitions.lean`
- [Walk steps](https://github.com/maix00/branchingprocess/blob/main/Combinatorics/BranchingWalk/Step/Basic.lean): `Combinatorics/BranchingWalk/Step/Basic.lean`

### Branching probability

- [Random fields](https://github.com/maix00/branchingprocess/tree/main/Probability/BranchingRandomWalk): `Probability/BranchingRandomWalk`
- [Genealogy laws](https://github.com/maix00/branchingprocess/tree/main/Probability/BranchingRandomWalk/Genealogy): `Probability/BranchingRandomWalk/Genealogy`
- [Selection couplings](https://github.com/maix00/branchingprocess/tree/main/Probability/BranchingRandomWalk/Selection): `Probability/BranchingRandomWalk/Selection`
- [Point processes](https://github.com/maix00/branchingprocess/tree/main/Probability/PointProcess): `Probability/PointProcess`
- [Spine laws](https://github.com/maix00/branchingprocess/tree/main/Probability/BranchingRandomWalk/Spine): `Probability/BranchingRandomWalk/Spine`

### Random processes

- [Kernels and survival](https://github.com/maix00/branchingprocess/tree/main/Probability/Kernel): `Probability/Kernel`
- [Random walks](https://github.com/maix00/branchingprocess/tree/main/Probability/Process/RandomWalk): `Probability/Process/RandomWalk`
- [Lévy processes](https://github.com/maix00/branchingprocess/tree/main/Probability/Process/Levy): `Probability/Process/Levy`

### Analytic limits

- [Regular variation](https://github.com/maix00/branchingprocess/tree/main/Analysis/Asymptotics/RegularVariation): `Analysis/Asymptotics/RegularVariation`
- [Characteristic functions](https://github.com/maix00/branchingprocess/tree/main/MeasureTheory/Measure/CharacteristicFunction): `MeasureTheory/Measure/CharacteristicFunction`
- [Stable processes](https://github.com/maix00/branchingprocess/tree/main/Probability/Process/Stable): `Probability/Process/Stable`
- [Mogulskii deviations](https://github.com/maix00/branchingprocess/tree/main/Probability/Process/RandomWalk/SmallDeviation/Mogulskii): `Probability/Process/RandomWalk/SmallDeviation/Mogulskii`

### Path limits

- [Path-space limits](https://github.com/maix00/branchingprocess/tree/main/Probability/Process/Path): `Probability/Process/Path`
- [Skorokhod topology](https://github.com/maix00/branchingprocess/tree/main/Topology/Cadlag/Skorokhod): `Topology/Cadlag/Skorokhod`
- [Tightness criteria](https://github.com/maix00/branchingprocess/tree/main/Probability/Process/Path/Tightness): `Probability/Process/Path/Tightness`

### Other components

- **Lean user**

## Connections

- Lean user → Ulam–Harris trees: imports modules (evidence: `README.md`)
- Lean user → Random walks: imports modules (evidence: `README.md`)
- Lean user → Point processes: imports modules (evidence: `README.md`)
- Ulam–Harris trees → Branching walks: models walks (evidence: `README.md`)
- Walk steps → Branching walks: defines steps (evidence: `README.md`)
- Random fields → Genealogy laws: supports laws (evidence: `README.md`)
- Random fields → Selection couplings: supports selections (evidence: `README.md`)
- Point processes → Spine laws: supports spine laws (evidence: `README.md`)
- Spine laws → Genealogy laws: yields formulas (evidence: `README.md`)
- Kernels and survival → Random walks: supports estimates (evidence: `README.md`)
- Random walks → Path-space limits: defines limits (evidence: `README.md`)
- Lévy processes → Stable processes: specializes processes (evidence: `README.md`)
- Characteristic functions → Regular variation: supports analysis (evidence: `README.md`)
- Regular variation → Stable processes: supports scaling (evidence: `README.md`)
- Random walks → Mogulskii deviations: supports deviations (evidence: `README.md`)
- Stable processes → Mogulskii deviations: provides stable scale (evidence: `README.md`)
- Path-space limits → Skorokhod topology: uses topology (evidence: `README.md`)
- Path-space limits → Tightness criteria: uses criteria (evidence: `README.md`)
