Skip to content

Commit 55116f9

Browse files
committed
doc(Probability): ensure only a single H1 header per file (#31659)
This PR ensures we only have a single H1 header per lean file in the `Probability` subdirectory. We do this for the following reasons: - Having more than one H1 header per file is likely to hamper both assistive technologies and SEO, since it introduces ambiguity about what the title of the resulting documentation webpage actually is. - The [documentation style guide](https://leanprover-community.github.io/contribute/doc.html) asks for the title of the file to be H1, any other header in the file-level docstring to be H2, and sectioning headers to be H3.
1 parent c63395e commit 55116f9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Mathlib/Probability/Distributions/Uniform.lean

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ import Mathlib.Probability.ProbabilityMassFunction.Constructions
1212
# Uniform distributions and probability mass functions
1313
This file defines two related notions of uniform distributions, which will be unified in the future.
1414
15-
# Uniform distributions
15+
## Uniform distributions
1616
1717
Defines the uniform distribution for any set with finite measure.
1818
19-
## Main definitions
19+
### Main definitions
2020
* `IsUniform X s ℙ μ` : A random variable `X` has uniform distribution on `s` under `ℙ` if the
2121
push-forward measure agrees with the rescaled restricted measure `μ`.
2222
23-
# Uniform probability mass functions
23+
## Uniform probability mass functions
2424
2525
This file defines a number of uniform `PMF` distributions from various inputs,
2626
uniformly drawing from the corresponding object.
2727
28-
## Main definitions
28+
### Main definitions
2929
`PMF.uniformOfFinset` gives each element in the set equal probability,
3030
with `0` probability for elements not in the set.
3131

0 commit comments

Comments
 (0)