EasyCrypt / easycrypt

EasyCrypt: Computer-Aided Cryptographic Proofs
MIT License
306 stars 46 forks source link

Simple tactics in proof-terms. #581

Closed strub closed 12 hours ago

strub commented 1 month ago

Simple tactics (//, //#, /#) can now been used in proof-terms.

strub commented 1 month ago

Example:

require import AllCore.

op p : int -> int -> bool.

axiom A (x y : int) : x <= y => x-1 <= y => x-2 <= y => p x y.

lemma L x : p x x.
proof. by have := A x x //# // /#; [smt() | apply]. qed.