Skip to content

Add measurable monad lifting - #26

Open
DavidLedvinka wants to merge 1 commit into
codex/export-measurable-monad-operationsfrom
codex/measurable-monad-lift
Open

DavidLedvinka wants to merge 1 commit into
codex/export-measurable-monad-operationsfrom
codex/measurable-monad-lift

Conversation

@DavidLedvinka

Copy link
Copy Markdown
Collaborator

Depends on #25.

Adds MeasurableSpaceMonadLift/MeasurableSpaceMonadLiftT, their lawful counterparts, and a low-priority bridge to core lifts, following Lean core's API. Moves the existing ordinary-monad adapter into Defs.lean so lifting does not depend on concrete monad instances.

Five focused tests cover the direct-lift fun_prop regression, inference of lawful compositions, native identity/composition precedence, and fallback to core. The tests were also checked against deliberately regressed implementations.

Validated with lake build --wfail RandomDo Test.MeasurableSpaceMonad.Lift, lake test, lake lint, and lake exe mk_all --check.

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