Skip to content

Commit

Permalink
work on Jaakkola_alpha_beta_bounded_uniformly
Browse files Browse the repository at this point in the history
Signed-off-by: Avi Shinnar <[email protected]>
  • Loading branch information
shinnar committed Dec 3, 2024
1 parent 3f2ebf5 commit 5d99054
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions coq/QLearn/jaakkola_vector.v
Original file line number Diff line number Diff line change
Expand Up @@ -5327,9 +5327,8 @@ Section jaakola_vector2.
}
generalize
(bounded_nat_ex_choice_vector
(A := R) (n := S N)
(A := posreal) (n := S N)
(fun i pf eps =>
0 < eps /\
eventually
(fun n : nat =>
almostR2 prts Rbar_lt
Expand All @@ -5339,18 +5338,24 @@ Section jaakola_vector2.
(fun x : Ts => const eps x)))); intros.
cut_to H14.
+ destruct H14.
pose (eps := Rvector_max_abs x).
pose (eps := Rvector_max_abs (vector_map pos x)).
assert (0 < eps).
{
assert (forall i pf, 0 < vector_nth i pf x).
{
intros.
specialize (H14 i pf).
apply H14.
}
admit.
}
exists (mkposreal _ H15).
generalize (Rvector_max_abs_nth_le (vector_map pos x) 0 (Nat.lt_0_succ _)).
rewrite vector_nth_map.
unfold eps.
intros leq.
eapply Rlt_le_trans; try eapply leq.
destruct ((vector_nth 0 (Nat.lt_0_succ N) x)); simpl in *.
rewrite Rabs_right; lra.
}
exists (mkposreal _ H15).
apply eventually_bounded_forall in H14.
revert H14.
apply eventually_impl; apply all_eventually; intros ? HH ??.
specialize (HH i pf).
revert HH.
apply almost_impl; apply all_almost; intros ??.
admit.
Admitted.

Expand Down

0 comments on commit 5d99054

Please sign in to comment.