a consequence of the other distributive law#172
Merged
Conversation
Owner
|
Maybe we do not need to add unused/unusable structures to the hierarchy to formalize their reasoning: just a lemma saying "right-distributivity -> the theory collapses" is enough. |
Collaborator
Author
|
The new structure is essential for contrasting the ease of combining laws using HB and that of suddenly leading to an undesirable result. It will also facilitate stating and proving Keimel's results. (Actually, the previous attempt was following a similar way to your suggestion, and the code was a bit messy.) |
Owner
|
Keimel's results shall go in the same file? |
Collaborator
Author
|
that is my plan |
Collaborator
Author
|
rebased |
| From HB Require Import structures. | ||
| Require Import preamble hierarchy monad_lib proba_lib alt_lib. | ||
|
|
||
| (* This file contains consequences of combining MonadAltCI and MonadProb *) |
Owner
There was a problem hiding this comment.
Maybe format the doc like the other files (in the Rocqnavi fashion)
Collaborator
Author
There was a problem hiding this comment.
(not tested by running rocqnavi)
affeldt-aist
approved these changes
Oct 23, 2025
forrazh
pushed a commit
to forrazh/monae
that referenced
this pull request
Apr 8, 2026
* a consequence of the other distributive law
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.
Formalization of the last proof in Section 3 of:
Reasoning about probability and nondeterminism.
In POPL workshop on Probabilistic Programming Semantics.
https://www.cs.ox.ac.uk/jeremy.gibbons/publications/prob-nondet.pdf
(To be followed by #55 )