Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Chapter IrreversibleDynamics

Definition
ChapterIrreversibleDynamics

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

definitionsformalizationtimepiece

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

Definition code
import Mathlib


/-!
# Chapter "Entropy and an irreversible deterministic time-evolution coexist",
§"Irreversible deterministic time-evolution" — irreversibility as an injective,
non-surjective, non-singular self-map.

Source: `book.tex`, chapter *"Entropy and an irreversible deterministic
time-evolution coexist"*, §*"Irreversible deterministic time-evolution"*
(line ~9524).

The book argues:

> *"A process with a dissipative time-evolution is irreversible: the
> deterministic time-evolution is not an invertible function (it is injective
> but not surjective). Then there is time asymmetry."*

and, just above, that the random discrete map *"almost surely maps sets of
non-null measure into sets of non-null measure (that is, it is non-singular)"*.

This module formalizes the self-contained mathematical core of these statements.

## The finite/discrete world admits no irreversible deterministic dynamics

On a **finite** state space (the `n²`-cell discrete world of the same section),
a deterministic self-map is injective iff surjective iff bijective. Hence there
is *no* injective-but-not-surjective self-map: a deterministic reversible/
irreversible dichotomy cannot appear. This is the discrete counterpart of the
book's remark that *"the rationals are not enough"* and *"a mixed standard
probability space ... is unavoidable"*.

* `finite_injective_iff_surjective`, `finite_injective_iff_bijective`.
* `finite_injective_imp_surjective` — an injective self-map of a finite type is
  automatically surjective (so it *is* invertible: reversible).
* `finite_no_irreversible` — there is no injective non-surjective self-map of a
  finite type.

## The continuum admits irreversible deterministic dynamics

On an **infinite** state space (the continuous limit) an injective,
non-surjective self-map exists — an irreversible deterministic time-evolution.

* `exists_injective_not_surjective` — a general Dedekind-infinite witness.
* `nat_succ_injective_not_surjective` — the concrete witness `n ↦ n+1` on `ℕ`.

## A concrete non-singular dissipative map on the unit interval

The book rescales to `[0,1]×[0,1]`. The map `dissipative x = x/2` is a concrete
*non-singular dissipative* deterministic time-evolution on `[0,1]`:

* `dissipative_injective` — it is injective.
* `dissipative_mapsTo_unitInterval` — it maps `[0,1]` into `[0,1]`.
* `dissipative_not_surjective_unitInterval` — but it is **not** onto `[0,1]`
  (`1` is not attained): irreversible.
* `dissipative_image_Icc` — its image of an interval `[a,b]` is `[a/2,b/2]`.
* `dissipative_volume_Icc` — the image has half the Lebesgue length: dissipative.
* `dissipative_nonsingular_Icc` — a positive-length interval is sent to a
  positive-measure set: it is **non-singular** (positive measure ↦ positive
  measure).
-/

namespace BookProof.IrreversibleDynamics

open MeasureTheory Function Set
open scoped ENNReal

/-! ### Finite discrete world: no irreversible deterministic dynamics -/









/-! ### Infinite (continuous-limit) world: irreversible dynamics exists -/





/-! ### A concrete non-singular dissipative map on the unit interval -/

/-- The dissipative time-evolution `x ↦ x/2` (rescaled to the book's unit
square). -/
noncomputable def dissipative : ℝ → ℝ := fun x => x / 2



















end BookProof.IrreversibleDynamics
Source
https://github.com/leonardopedro/timepiece/blob/61595bc/BookProof/ChapterIrreversibleDynamics.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