Skip to content

Commit

Permalink
Move legacy probability theories to examples (#1185)
Browse files Browse the repository at this point in the history
* Move legacy probability theories to examples

* Minor cleanups

* FTBFS RBDTheory depending also on legacy probability...

* Fixed missing dependencies...
  • Loading branch information
binghe authored Jan 23, 2024
1 parent 3a40bff commit af77064
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/dependability/RBD/Holmakefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
INCDIRS = examples/miller/formalize src/probability src/real/analysis
INCDIRS = examples/miller/formalize src/probability examples/probability/legacy src/real/analysis
INCLUDES = $(patsubst %,$(dprot $(HOLDIR)/%),$(INCDIRS))
2 changes: 1 addition & 1 deletion examples/diningcryptos/Holmakefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
INCLUDES = ../miller/subtypes ../miller/formalize $(HOLDIR)/src/probability \
INCLUDES = ../miller/subtypes ../miller/formalize $(HOLDIR)/examples/probability/legacy \
$(HOLDIR)/src/real/analysis
2 changes: 1 addition & 1 deletion examples/miller/prob/Holmakefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
INCLUDES = ../formalize ../ho_prover ../subtypes ../../Crypto/RSA \
$(HOLDIR)/src/real $(HOLDIR)/src/probability
$(HOLDIR)/src/real $(HOLDIR)/examples/probability/legacy
8 changes: 8 additions & 0 deletions examples/probability/legacy/Holmakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
INCLUDES = $(HOLDIR)/src/real $(HOLDIR)/src/res_quan/src $(HOLDIR)/src/real/analysis \
$(HOLDIR)/src/probability

EXTRA_CLEANS = $(patsubst %Theory.uo,%Theory.html,$(DEFAULT_TARGETS))

all: $(DEFAULT_TARGETS)

.PHONY: all
7 changes: 7 additions & 0 deletions examples/probability/legacy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# HOL's Legacy Probability Theory based on Finite Measure Theory

The following theories in this directory was in `$(HOLDIR)/src/probability`:

real_measureScript.sml * Finite Measure Theory (based on reals)
real_lebesgueScript.sml * Lebesgue Integration based on Finite Measures
real_probabilityScript.sml * Probability Theory based on Finite Measures
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/parallel_builds/core/Holmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ EX2DIRS = AKS algebra algorithms/boyer_moore \
logic/ltl logic/temporal_deep \
logic/ltl-transformations \
l3-machine-code/decompilers \
miller \
probability/legacy miller \
probability vector \
separationLogic/src separationLogic/src/holfoot simple_complexity

Expand Down
6 changes: 3 additions & 3 deletions src/probability/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ This directory contains HOL4's Measure, Lebesgue Integration and Probability the

## Measure, Integration and Probability Theory defined on reals (obsoleted)

real_measureScript.sml * Measure Theory defined on reals
real_lebesgueScript.sml * Lebesgue integration based on reals
real_probabilityScript.sml * Probability Theory based on reals
NOTE: The legacy measure, integration and probability theories based on finite measures
are moved to `$(HOLDIR)/examples/probability/legacy`. They are needed when building the
two examples in `examples/miller` and `examples/diningcryptos`.

## Further extensions

Expand Down

0 comments on commit af77064

Please sign in to comment.