File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9696 eapply FiniteType_fun_dep ; eauto.
9797 - apply fs.
9898 - apply fa.
99- Unshelve.
100- apply st_eqdec.
10199Qed .
102100
103101Global Instance act_finite (M : MDP) : FiniteType (sigT M.(act))
@@ -407,12 +405,19 @@ Proof.
407405 lra.
408406Qed .
409407
408+
409+ Definition Rfct_AbelianMonoid_mixin :=
410+ AbelianMonoid.Mixin (Rfct A) Rfct_plus Rfct_zero Rfct_plus_comm
411+ Rfct_plus_assoc Rfct_plus_zero_r.
412+
413+ Canonical Rfct_AbelianMonoid :=
414+ AbelianMonoid.Pack (Rfct A) (Rfct_AbelianMonoid_mixin) (Rfct A).
415+
410416Definition Rfct_AbelianGroup_mixin :=
411- AbelianGroup.Mixin (Rfct A) Rfct_plus Rfct_opp Rfct_zero Rfct_plus_comm
412- Rfct_plus_assoc Rfct_plus_zero_r Rfct_plus_opp_r.
417+ AbelianGroup.Mixin Rfct_AbelianMonoid Rfct_opp Rfct_plus_opp_r.
413418
414419Canonical Rfct_AbelianGroup :=
415- AbelianGroup.Pack (Rfct A) (Rfct_AbelianGroup_mixin) (Rfct A).
420+ AbelianGroup.Pack (Rfct A) (AbelianGroup. Class _ (Rfct_AbelianMonoid_mixin) Rfct_AbelianGroup_mixin) (Rfct A).
416421
417422End Rfct_AbelianGroup.
418423
Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ End optimal_path.
253253 Section to_string.
254254 Section utils.
255255
256- Definition newline := String (Ascii.ascii_of_N 10 ) EmptyString.
256+ Definition newline := String (Ascii.ascii_of_N (Npos 10%positive) ) EmptyString.
257257
258258 Definition string_bracket (sstart send:string) (smiddle:string)
259259 := String.append sstart (String.append smiddle send).
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ Section Pmf_PMF.
127127 rewrite Forall_forall; intros lmu.
128128 specialize (lmu _ inn).
129129 lia.
130- -- destruct (in_dec eq_nat_dec a l); trivial.
130+ -- destruct (in_dec Peano_dec. eq_nat_dec a l); trivial.
131131 specialize (nin _ n).
132132 unfold nequiv_decb, negb, equiv_decb in non0.
133133 destruct (equiv_dec (coll a) 0); congruence.
@@ -283,7 +283,7 @@ Section Pmf_PMF.
283283 (map (fun x : nonnegreal * A => nonneg (fst x))
284284 (filter (fun x : nonnegreal * A => if equiv_dec a (snd x) then true else false) outcomes))
285285 | None => 0
286- end) (nodup eq_nat_dec (map countable_index (map snd outcomes))))).
286+ end) (nodup Peano_dec. eq_nat_dec (map countable_index (map snd outcomes))))).
287287 - apply infinite_sum'_finite
288288 ; intros.
289289 + match_case; intros.
@@ -389,7 +389,7 @@ Section pmf_prob.
389389 (exist (fun _ : pre_event A => True)
390390 (fun omega : A => pre_event_singleton c (rv_X omega))
391391 (sa_preimage_singleton rv_X c)))
392- (nodup eq_nat_dec (map countable_index (map snd pmf.(outcomes)))))
392+ (nodup Peano_dec. eq_nat_dec (map countable_index (map snd pmf.(outcomes)))))
393393 ; intros HH.
394394 cut_to HH.
395395 - rewrite (infinite_sum'_unique i HH).
You can’t perform that action at this time.
0 commit comments