Minor fix & updates to probability materials #1214
Merged
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.
Hi,
Here are some small updates, additions and fixes related to the probability-related material in HOL4, that I'd like to incorporate in the new release. Below is the list of changes following the shown order of file changes:
examples/probability
, I modified theHolmakefile
to make sure the legacy material in thelegacy
subdirectory get built together.util_probTheory
and thenlebesgueTheory
, the previous definition ofdisjoint_family
(from HVG's work) can be simplified to an overload todisjoint_family_on
:lebesgueTheory
, the previous proof ofintegral_sum'
has caused two HOL warnings saying "Type.mk_vartype: non-standard syntax". I don't understand this warning and I found the existing proof hard to understand. So I reworked this proof in my usual style (using the same lemmas as the old one).martingaleTheory
, the following new lemma about "filtrations" of sigma-algebras is added (this is due to my other unfinished work):measureTheory
, there was a definitionsigma_finite_def0
, previously renamed due to name conflicts. Now I have renamed them:sigma_finite_def0
tosigma_finite
, andsigma_finite
(a theorem) tosigma_finite_thm
. The use ofsigma_finite_thm
is quite local, didn't cause too many modifications in other proofs.probabilityTheory
, I added[nocompute]
tag to the definition ofconverge_def
. I don't think thisconverge
definition needs to be put intocomputeLib
(but the compilation outputs said so).sigma_algebraTheory
, some new lemmas forsigma_functions
has been added (This completes the semantics ofsigma_functions
, and is also due to my other unfinished work.), e.g.:util_probTheory
, beside the previous mentioned changes ofdisjoint_family
, and some typesetting changes, I renamed one theorem tofinite_disjoint_decomposition'
, to better match its nature.iterateTheory
and alsoutil_probTheory
, I added two lemmas to connectCOUNT
(and its overloaded variantcount1
) withnumseg
:--Chun