Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Chapter LocalityConstraintNull

Definition
ChapterLocalityConstraintNull

by leonardopedro · Oct 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

definitionsformalizationtimepiece

Formal definitions for the timepiece Lean 4 formalization (source chapter BookProof/ChapterLocalityConstraintNull.lean): generated def bundle for ChapterLocalityConstraintNull. See BookProof/ChapterLocalityConstraintNull.lean for full context.

Definition code
import Mathlib


/-!
# The local velocity constraint has null measure

Source: `book.tex`, chapter *"Gauge symmetry and dissipative dynamics in probability
spaces"*, §*"Balancing discretization and locality"* (`book.tex` line ~2487), closing
paragraph:

> *"The main difficulty lies in defining a probability measure when the velocity is
> constrained by the position at each time, since the subset defined by the constraints
> has null measure when considering the Gaussian measure for the position and
> (unconstrained) velocity."*

This file proves that statement, in the generality in which it is used: the *constraint
set* is the graph

```
graphSet f = { (x, v) | v = f x }
```

of the map `f` expressing the constrained variable (the velocity) in terms of the free one
(the position), and the claim is that it is a null set for **every** product measure whose
second factor is atomless — in particular for a Gaussian law on the unconstrained velocity,
and for the two-dimensional Lebesgue measure.

The mechanism is Fubini: every vertical section of the graph is the single point `f x`, and
an atomless measure gives no mass to a point.  The consequence the chapter draws is also
recorded: the naive conditioning of the joint law on the constraint is not a probability
measure — the restricted measure is identically zero (`restrict_graphSet_eq_zero`), so a
coherent "uncertainty after the constraint" must be built differently (which is what the
wave-function parametrization of the other chapters does).

## Main results

* `graphSet_null` — the constraint set is null for `μ.prod ν` whenever `ν` is atomless.
* `graphSet_volume_null` — the two-dimensional Lebesgue special case.
* `graphSet_gaussian_null` — the Gaussian special case stated in the book.
* `restrict_graphSet_eq_zero`, `not_isProbabilityMeasure_restrict_graphSet` — conditioning
  the joint law on the constraint yields the zero measure, not a probability measure.
-/

namespace BookProof.LocalityConstraint

open MeasureTheory ProbabilityTheory
open scoped NNReal

variable {α : Type*} [MeasurableSpace α]

/-- The constraint set: the graph of the map `f` giving the constrained variable (the
velocity) as a function of the free variable (the position). -/
def graphSet (f : α → ℝ) : Set (α × ℝ) := {p : α × ℝ | p.2 = f p.1}















end BookProof.LocalityConstraint
Source
https://github.com/leonardopedro/timepiece/blob/61595bc/BookProof/ChapterLocalityConstraintNull.lean

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me