Skip to content

Commit

Permalink
fix wochoice/ring
Browse files Browse the repository at this point in the history
  • Loading branch information
affeldt-aist committed Aug 8, 2024
1 parent 4347ebd commit 48c890c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions classical/wochoice.v
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ move=> Rxx Rtr Cch sCS.
pose CSch X := `[< [/\ chain R X, {subset C <= X} & {subset X <= S}] >].
pose Rch (X Y : {pred T}) := `[< {subset X <= Y} >].
have: {in CSch & &, transitive Rch}.
by apply: in3W => X Y Z /asboolP-sXY /asboolP-sYZ; apply/asboolP=> x /sXY/sYZ.
by move=> X Y Z ? ? ? /asboolP-sXY /asboolP-sYZ; apply/asboolP => x /sXY/sYZ.
have /Zorn's_lemma/[apply]: {in CSch, reflexive Rch} by move=> X _; apply/asboolP.
case=> [XX CSchXX XXwo | M /asboolP[Mch sCM sMS] maxM]; last first.
exists M; split=> // X Xch sMX sXS.
Expand Down Expand Up @@ -301,7 +301,7 @@ have initRtr: transitive initR.
move=> R2 R1 R3 /asboolP[D12 R12] /asboolP[D23 R23]; apply/asboolP.
split=> [x /D12/D23// | x y D1x D3y]; rewrite R23 ?(D12 x) //.
by case D2y: (y \in R2.1); [apply: R12 | rewrite (contraFF (D12 y))].
have: {in pwo & &, transitive initR} by apply: in3W.
have: {in pwo & &, transitive initR} by move=> X Y Z ? ? ?; exact: initRtr.
have/Zorn's_lemma/[apply]: {in pwo, reflexive initR} by [].
case=> [C pwoC Cch | [D R] /asboolP/=pwoR maxR].
have /(@wo_chainW ({pred T} * rel T)%type) {}Cch := Cch.
Expand Down
4 changes: 2 additions & 2 deletions theories/lang_syntax.v
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ From mathcomp Require Import functions cardinality fsbigop.
Require Import signed reals ereal topology normedtype sequences esum exp.
Require Import measure lebesgue_measure numfun lebesgue_integral itv kernel.
Require Import charge prob_lang lang_syntax_util.
From mathcomp Require Import ring lra.
From mathcomp Require Import lra.

(**md**************************************************************************)
(* # Syntax and Evaluation for a Probabilistic Programming Language *)
Expand Down Expand Up @@ -844,7 +844,7 @@ Definition mtyp t : measurableType (mtyp_disp t) :=
projT2 (measurable_of_typ t).

Definition measurable_of_seq (l : seq typ) : {d & measurableType d} :=
iter_mprod (map measurable_of_typ l).
iter_mprod (List.map measurable_of_typ l).

End syntax_of_types.
Arguments measurable_of_typ {R}.
Expand Down
6 changes: 4 additions & 2 deletions theories/lang_syntax_examples.v
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
Require Import String.
From HB Require Import structures.
From mathcomp Require Import all_ssreflect ssralg ssrnum ssrint interval.
From mathcomp.classical Require Import mathcomp_extra boolp classical_sets.
From mathcomp.classical Require Import mathcomp_extra boolp.
From mathcomp Require Import ring.
From mathcomp Require Import classical_sets.
From mathcomp.classical Require Import functions cardinality fsbigop.
Require Import signed reals ereal topology normedtype sequences esum measure.
Require Import lebesgue_measure numfun lebesgue_integral kernel prob_lang.
Require Import lang_syntax_util lang_syntax.
From mathcomp Require Import ring lra.
From mathcomp Require Import lra.

(**md**************************************************************************)
(* # Examples using the Probabilistic Programming Language of lang_syntax.v *)
Expand Down
2 changes: 1 addition & 1 deletion theories/prob_lang.v
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ From mathcomp Require Import mathcomp_extra boolp classical_sets.
From mathcomp Require Import functions cardinality fsbigop.
Require Import reals ereal signed topology normedtype sequences esum measure.
Require Import lebesgue_measure numfun lebesgue_integral exp kernel.
From mathcomp Require Import ring lra.
From mathcomp Require Import lra.

(**md**************************************************************************)
(* # Semantics of a probabilistic programming language using s-finite kernels *)
Expand Down

0 comments on commit 48c890c

Please sign in to comment.