Skip to content

Commit b784469

Browse files
vbglfdupress
authored andcommitted
Simpler SMT goals
This improves compatibility with Z3 4.13.3 & CVC5 1.1.2
1 parent 658fa33 commit b784469

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

theories/algebra/Bigalg.ec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ proof.
323323
elim: s => // x s IHs F_ge0; rewrite BMul.big_cons.
324324
have {IHs} IHs := IHs _; first by smt().
325325
case: (P x) => [Px F_big_gt0 a a_x_s Pa| nPx /IHs]; 2:smt().
326-
smt(pmulr_gt0 prodr_ge0_seq).
326+
rewrite pmulr_gt0 in F_big_gt0; 1, 3:smt().
327+
apply: prodr_ge0_seq; smt().
327328
qed.
328329
329330
lemma ler_prod_seq (P : 'a -> bool) (F1 F2 : 'a -> t) s:

theories/datatypes/List.ec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,8 @@ proof.
11331133
move=> s_x; pose i := index x s.
11341134
exists i; exists (drop (i + 1) s ++ take i s).
11351135
rewrite -cat_cons /i /rot => {i}; congr=> //=.
1136-
elim: s s_x => //= y s IHs; case: (x = y); smt().
1136+
elim: s s_x=> //= y s IHs; rewrite index_cons.
1137+
by case: (x = y)=> [<- /= | /#]; rewrite drop0.
11371138
qed.
11381139
11391140
(* -------------------------------------------------------------------- *)

0 commit comments

Comments
 (0)