Skip to content

Add weakest preconditions for measurable space monads - #33

Open
DavidLedvinka wants to merge 5 commits into
codex/measurable-monad-liftfrom
codex/wp-measurable-space-monad
Open

DavidLedvinka wants to merge 5 commits into
codex/measurable-monad-liftfrom
codex/wp-measurable-space-monad

Conversation

@DavidLedvinka

@DavidLedvinka DavidLedvinka commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Adds MeasureTheory.WPMeasurableSpaceMonad, its pure/bind/map triple and vcgen rules, and the generic verification-assertion gadget in RandomDo/WP/MeasurableSpaceMonad.lean. The same file provides the MId WP instance, reusing core's Id interpretation.

The class and its laws live in MeasureTheory. Triple lemmas extend Std.WP.Triple; specification rules and the assertion gadget live in MeasureTheory.WP.

Stacked on #26, which introduces MId. Retarget to main after #26 merges.

Validation: lake build --wfail RandomDo, lake build Test, lake lint, and lake exe mk_all --check.

@DavidLedvinka
DavidLedvinka changed the base branch from main to codex/measurable-monad-lift November 21, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant