agentleFS
r-irber-irbe/proof-skills/skills/lean-math-stochastic/SKILL.md

lean-math-stochastic

Skill3 starsChanged 24 days agoApache-2.0View on GitHub

USE FOR: probability theory, stochastic processes, Markov chains, time-series analysis, ergodic theory. DO NOT USE FOR: deterministic dynamical systems (@lean-math-dynamical). TRIGGERS: probability, stochastic, Markov chain, time series, ergodic.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    STOP if the proof needs a measurability instance not yet synthesised — handoff to @lean-math-foundations.

    line 45
  2. Very specific:

    STOP if the result you need is a deterministic dynamical-systems claim — re-route to @lean-math-dynamical.

    line 49

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Lean 4 Stochastic Mathematics

Guide to formalizing probability, stochastic processes, and time series in Lean 4.

Routing

  • USE FOR: probability theory, stochastic processes, Markov chains, time-series analysis, ergodic theory, row-stochastic matrices, mixing times, spectral gaps, stationary distributions, and any stochastic dynamics in Lean 4.
  • DO NOT USE FOR: deterministic dynamical systems (delegate to @lean-math-dynamical); abstract measure-theoretic typeclass plumbing (delegate to @lean-math-foundations); pure topology (delegate to @lean-math-analysis); writing one specific proof (delegate to @lean-proof).

Workflow

  1. Identify the stochastic class (Part 1) — discrete-time chain, continuous-time process, martingale, stationary process, time-series model.
  2. Pick the matching Mathlib API (Probability.*, MeasureTheory.*) and apply the pattern below.
  3. Handoff to @lean-proof; if a measurability-instance gap blocks the proof, handoff to @lean-math-foundations; if a convergence step needs an analytic lemma, handoff to @lean-math-analysis.

Recovery & STOP

  • STOP if the proof needs a measurability instance not yet synthesised — handoff to @lean-math-foundations. (Recall IsFiniteMeasure.toSigmaFinite is a priority-100 instance — [SigmaFinite μ] is usually free given [IsFiniteMeasure μ].)
  • STOP if the result you need is a deterministic dynamical-systems claim — re-route to @lean-math-dynamical.

Handoffs

  • Predecessors: agent:gateway, skill:lean-proof (mid-proof probabilistic goal), skill:lean-research (ergodic / martingale API survey).
  • Successors: skill:lean-proof (apply the stochastic pattern), skill:lean-proof-review (audit the proof), skill:lean-math-foundations (measurability / SigmaFinite plumbing), skill:lean-math-analysis (convergence step).

Detailed reference

Full encyclopedic reference, decision trees, and lookup tables live in references/lean-math-stochastic-handbook.md .

See also

  • ../../references/lean-math-stochastic-handbook.md -- Complete lean-math-stochastic Handbook
  • ../lean-gateway/SKILL.md -- Top-level skill router

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.