Skip to content

Commit db5a214

Browse files
Merge pull request #45 from tabareau/sortpoly-equality
add overlay (backward compat)
2 parents 1b42619 + 3e1d131 commit db5a214

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

Kami/Ex/Divider32.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,15 +182,15 @@ Section Divider32.
182182
cbv [evalZeroExtendTrunc evalSignExtendTrunc].
183183
destruct (lt_dec _ _); [|lia].
184184
apply existT_wminus.
185-
- unfold zext, eq_rec.
185+
- unfold zext. eq_rect_simpl.
186186
change (fun n2 => word n2) with word.
187187
rewrite existT_eq_rect.
188188
match goal with
189189
| [ |- existT _ (n + ?mn) _ = _ ] =>
190190
replace mn with 1 by (clear; induction n; auto)
191191
end.
192192
reflexivity.
193-
- unfold zext, eq_rec.
193+
- unfold zext. eq_rect_simpl.
194194
change (fun n2 => word n2) with word.
195195
rewrite existT_eq_rect.
196196
match goal with

Kami/Ex/Divider64.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,15 +182,15 @@ Section Divider64.
182182
cbv [evalZeroExtendTrunc].
183183
destruct (lt_dec _ _); [|lia].
184184
apply existT_wminus.
185-
- unfold zext, eq_rec.
185+
- unfold zext. eq_rect_simpl.
186186
change (fun n2 => word n2) with word.
187187
rewrite existT_eq_rect.
188188
match goal with
189189
| [ |- existT _ (n + ?mn) _ = _ ] =>
190190
replace mn with 1 by (clear; induction n; auto)
191191
end.
192192
reflexivity.
193-
- unfold zext, eq_rec.
193+
- unfold zext. eq_rect_simpl.
194194
change (fun n2 => word n2) with word.
195195
rewrite existT_eq_rect.
196196
match goal with

Kami/Ex/Multiplier32.v

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,9 +1198,9 @@ Section Multiplier32.
11981198
kinv_custom boothMultiplierInv_old.
11991199
boothMultiplierInv_new.
12001200

1201-
* cbn; unfold eq_rec; eq_rect_simpl.
1201+
* cbn. eq_rect_simpl.
12021202
reflexivity.
1203-
* cbn; unfold eq_rec; eq_rect_simpl.
1203+
* cbn; eq_rect_simpl.
12041204
reflexivity.
12051205
* clear -H4 H12.
12061206
Opaque split2.
@@ -1214,7 +1214,7 @@ Section Multiplier32.
12141214
find_if_inside; [discriminate|].
12151215
elim n; assumption.
12161216

1217-
* simpl; unfold eq_rec; eq_rect_simpl.
1217+
* simpl; eq_rect_simpl.
12181218

12191219
assert (Hx1: x Fin.F1 <> wpow2 MultNumBits).
12201220
{ intro Hx.
@@ -1247,7 +1247,7 @@ Section Multiplier32.
12471247
repeat split.
12481248
{ subst ww.
12491249
cbv [evalSignExtendTrunc].
1250-
simpl; unfold eq_rec; eq_rect_simpl.
1250+
simpl; eq_rect_simpl.
12511251
rewrite <-H13.
12521252
reflexivity.
12531253
}
@@ -1386,7 +1386,7 @@ Section Multiplier32.
13861386
unfold wmultZ, wordBinZ.
13871387
pose proof (sext_wordToZ 33 bsiM).
13881388
cbv [evalSignExtendTrunc]; cbn.
1389-
unfold eq_rec; eq_rect_simpl.
1389+
eq_rect_simpl.
13901390
cbn in H1; rewrite H1.
13911391
pose proof (sext_wordToZ 33 bsiR).
13921392
cbn; cbn in H2; rewrite H2.
@@ -1408,7 +1408,7 @@ Section Multiplier32.
14081408
unfold wmultZ, wordBinZ.
14091409
pose proof (sext_wordToZ 33 bsiM).
14101410
cbv [evalSignExtendTrunc]; cbn.
1411-
unfold eq_rec; eq_rect_simpl.
1411+
eq_rect_simpl.
14121412
cbn in H1; rewrite H1.
14131413
pose proof (sext_wordToZ 33 bsiR).
14141414
cbn; cbn in H2; rewrite H2.

Kami/Ex/Multiplier64.v

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,9 +1198,9 @@ Section Multiplier64.
11981198
kinv_custom boothMultiplierInv_old.
11991199
boothMultiplierInv_new.
12001200

1201-
* cbn; unfold eq_rec; eq_rect_simpl.
1201+
* cbn; eq_rect_simpl.
12021202
reflexivity.
1203-
* cbn; unfold eq_rec; eq_rect_simpl.
1203+
* cbn; eq_rect_simpl.
12041204
reflexivity.
12051205
* clear -H4 H12.
12061206
Opaque split2.
@@ -1247,7 +1247,7 @@ Section Multiplier64.
12471247
repeat split.
12481248
{ subst ww.
12491249
cbv [evalSignExtendTrunc].
1250-
simpl; unfold eq_rec; eq_rect_simpl.
1250+
simpl; eq_rect_simpl.
12511251
rewrite <-H13.
12521252
reflexivity.
12531253
}
@@ -1386,7 +1386,7 @@ Section Multiplier64.
13861386
unfold wmultZ, wordBinZ.
13871387
pose proof (sext_wordToZ 65 bsiM).
13881388
cbv [evalSignExtendTrunc]; cbn.
1389-
unfold eq_rec; eq_rect_simpl.
1389+
eq_rect_simpl.
13901390
cbn in H1; rewrite H1.
13911391
pose proof (sext_wordToZ 65 bsiR).
13921392
cbn; cbn in H2; rewrite H2.
@@ -1408,7 +1408,7 @@ Section Multiplier64.
14081408
unfold wmultZ, wordBinZ.
14091409
pose proof (sext_wordToZ 65 bsiM).
14101410
cbv [evalSignExtendTrunc]; cbn.
1411-
unfold eq_rec; eq_rect_simpl.
1411+
eq_rect_simpl.
14121412
cbn in H1; rewrite H1.
14131413
pose proof (sext_wordToZ 65 bsiR).
14141414
cbn; cbn in H2; rewrite H2.

0 commit comments

Comments
 (0)