Skip to content

Commit

Permalink
Revert "WIP addcarray add"
Browse files Browse the repository at this point in the history
This reverts commit e4dea33.
  • Loading branch information
JasonGross committed Nov 12, 2022
1 parent 0d355b5 commit 0e5f2ac
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions src/Assembly/Symbolic.v
Original file line number Diff line number Diff line change
Expand Up @@ -3349,39 +3349,6 @@ Definition expr : expr -> expr :=
;xor_same
].

Compute option_map (fun v => (v, 2^64-1-v.(upper))) (bound_expr
(ExprApp
(addZ,
[ExprApp (shr 64%N, [ExprApp (mulZ, [ExprApp (old 64%N 3%N, []); ExprApp (old 64%N 5%N, [])]); ExprApp (const 64%Z, [])]);
ExprApp
(addcarry 64%N,
[ExprApp (mul 64%N, [ExprRef 3%N; ExprRef 5%N]);
ExprApp
(add 64%N,
[ExprApp (shr 64%N, [ExprRef 19%N; ExprApp (const 64%Z, [])]);
ExprApp (addcarry 64%N, [ExprRef 20%N; ExprRef 26%N])])])]))).

Goal True.
pose (expr (ExprApp (addcarry 64, [ExprRef 12; ExprApp (add 64, [ExprApp (shr 64, [ExprRef 15; ExprRef 10]); ExprApp (addcarry 64, [ExprApp (mul 64, [ExprRef 3; ExprRef 5]); ExprApp (add 64, [ExprApp (shr 64, [ExprRef 19; ExprRef 10]); ExprApp (addcarry 64, [ExprRef 20; ExprRef 26])])])])]))%N) as e.
cbv [expr] in e.
cbn [fold_left] in e.
Set Printing Depth 10000.
vm_compute constprop in e.
vm_compute slice0 in e.
vm_compute drop_identity in e.
set (e' := flatten_bounded_associative _) in (value of e).
clear e.
cbv [flatten_bounded_associative] in e'.
cbn [flat_map] in e'.
set (e'' := bounds_for_drop_inner_associative _ _) in (value of e').
vm_compute in e''.
subst e''.
cbv beta iota zeta in e'.
set (e'' := bound_expr _) in (value of e').
Compute 2^64-18446744073709551615.
vm_compute in e''.
cbv

Lemma eval_expr c d e v : eval c d e v -> eval c d (expr e) v.
Proof using Type.
intros H; cbv [expr fold_left].
Expand Down

0 comments on commit 0e5f2ac

Please sign in to comment.