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

aac tactics don't handle goal selectors properly #135

Closed
MSoegtropIMC opened this issue Mar 1, 2024 · 3 comments · Fixed by #136
Closed

aac tactics don't handle goal selectors properly #135

MSoegtropIMC opened this issue Mar 1, 2024 · 3 comments · Fixed by #136

Comments

@MSoegtropIMC
Copy link

AAC tactics apparently don't handle goal selectors properly.

This might be an effect of #36.

Here is an example:

From Coq Require PeanoNat ZArith List Permutation Lia.
From AAC_tactics Require Import AAC.
From AAC_tactics Require Instances.

(** ** Introductory example 

   Here is a first example with relative numbers ([Z]): one can
   rewrite an universally quantified hypothesis modulo the
   associativity and commutativity of [Z.add]. *)

Section introduction.
  Import ZArith.
  Import Instances.Z.

  Variables a b : Z.

  Goal a + b = b + a.
    aac_reflexivity.
  Qed.

  Goal forall c: bool, a + b = b + a.
    intros c.
    destruct c.
    1,2: aac_reflexivity.
  Fail Qed. (* The command has indeed failed with message: Some unresolved existential variables remain *)
  Abort.

  Goal forall c: bool, a + b = b + a.
    intros c.
    destruct c.
    - aac_reflexivity.
    - aac_reflexivity.
  Qed.
End introduction.
@palmskog
Copy link
Member

palmskog commented Mar 1, 2024

Maybe of interest is #113.

For the record, I'm pretty sure nobody is working on #36 right now.

@SkySkimmer
Copy link
Contributor

This isn't about retype, see 36aef56

@MSoegtropIMC
Copy link
Author

@SkySkimmer : thanks for the fast fix!

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

Successfully merging a pull request may close this issue.

3 participants