Repository navigation
Generalize finenum sample space - #48
Merged
Merged
Conversation
marekpetrik
commented
Sep 4, 2026
Member
- Generalized to finite Omega spaces for probability distributions
- Various simplifications
- Changed the build process and included the latex file back to the repository
The sample space of Findist and FinRV is now an arbitrary finitely-enumerable type Ω with [FinEnum Ω] instead of Fin n. Random variables remain bare functions Ω → ρ sharing a single Ω, so a distribution and its random variables are tied to the same set at the type level. Expectation and probability route through the Fintype structure, so their values are independent of the enumeration order. - Findist Ω / FinRV Ω ρ generalized; nonempty now yields Nonempty Ω; singleton replaced by dirac. - nneg_dotProd_pos_ex_pos reproved over any Fintype (Finset.sum_nonpos), dropping the Fin-induction and dotProduct_head_tail. - RV_Unique_Values / expect_def_correct rebuilt on FinEnum.toList. - Discrete RV label spaces kept as Fin k. - Matrix.lean fixed (broken import), generalized to Ω, and added to MDPLib. - Replaced local false_of_le_gt / false_of_lt_ge with Mathlib not_lt_of_ge / not_le_of_gt at all call sites. Claude-Session: https://claude.ai/code/session_01UUYp3BStWn8DX1gXYZvLtn
…Pages Replace the stale leanblueprint workflow (which built a nonexistent Probability target against a missing blueprint/ directory) with a simple workflow that builds MDPLib, its doc-gen4 documentation, and latex/main.tex, then deploys the docs and paper to GitHub Pages via the standard actions. Link the published documentation from the README.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.