Skip to content

Commit f644a86

Browse files
oskgostrub
authored andcommitted
simplify some smt calls
1 parent 9cf0a28 commit f644a86

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

theories/algebra/DynMatrix.eca

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1663,18 +1663,17 @@ lemma catmr_subm m n: 0 <= n < cols m =>
16631663
(subm m 0 (rows m) 0 n || subm m 0 (rows m) n (cols m)) = m.
16641664
proof.
16651665
move => n_bound; rewrite eq_matrixP /=.
1666-
split => [| i j bound].
1667-
- smt(rows_catmr cols_catmr size_subm).
1666+
rewrite rows_catmr cols_catmr 2!cols_subm 2!rows_subm /= maxzz /=.
1667+
split => [/#| i j bound].
16681668
rewrite get_catmr // cols_subm /=.
16691669
case (j < n) => j_bound.
1670-
- rewrite get_subm /=; first 2 smt(size_catmr size_subm).
1671-
rewrite (getm0E (subm _ _ _ _ _)).
1670+
- rewrite get_subm /= 1,2:/# (getm0E (subm _ _ _ _ _)).
16721671
+ smt(size_catmr size_subm).
16731672
by rewrite addr0.
16741673
- rewrite getm0E; 1: smt(size_catmr size_subm).
16751674
rewrite add0r get_subm; [3:smt()].
1676-
+ smt(rows_catmr rows_subm).
1677-
+ smt(cols_catmr cols_subm).
1675+
+ by elim bound.
1676+
+ smt().
16781677
qed.
16791678

16801679
lemma subm_colmx (m: matrix) l :

0 commit comments

Comments
 (0)