Skip to content

Commit

Permalink
Move legacy probability theories to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
binghe committed Jan 22, 2024
1 parent 4c327dc commit b28345a
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 6 deletions.
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

EXTRA_CLEANS = heap \
$(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 b28345a

Please sign in to comment.