Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rewrite fails with abbrev #718

Open
cassiersg opened this issue Feb 14, 2025 · 1 comment
Open

rewrite fails with abbrev #718

cassiersg opened this issue Feb 14, 2025 · 1 comment

Comments

@cassiersg
Copy link
Contributor

The following behavior is not expected (tested on release 2025.02):

require import AllCore.

op a (i:int) : int.
abbrev b (i:int) : int = a i.
lemma bE i: b i = 0. admitted.
abbrev c = b.
abbrev d i = b i.

(* These work as expected. *)
lemma b_apply (i:int): b i = 0. proof. apply bE. qed.
lemma b_rewrite (i:int): b i = 0. proof. by rewrite bE. qed.

lemma c_apply (i:int): c i = 0. proof. apply bE. qed.

lemma d_apply (i:int): d i = 0. proof. apply bE. qed.
lemma d_rewrite (i:int): d i = 0. proof. by rewrite bE. qed.

(* Fails "nothing to rewrite". *)
lemma c_rewrite (i:int): c i = 0. proof. by rewrite bE. qed.
@strub
Copy link
Member

strub commented Feb 14, 2025

Here is the problem reduces:

require import AllCore.

op a : int -> int.

axiom A : forall x, a x = 0.

lemma L : (fun x => a x) 0 = 0.
proof. by rewrite A. qed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants