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

nia should be able to prove x * y = 1 -> x = 1 \/ x = -1 #17935

Open
JasonGross opened this issue Aug 5, 2023 · 0 comments
Open

nia should be able to prove x * y = 1 -> x = 1 \/ x = -1 #17935

JasonGross opened this issue Aug 5, 2023 · 0 comments
Labels
part: micromega The lia, nia, lra, nra and psatz tactics. Also the legacy omega tactic.

Comments

@JasonGross
Copy link
Member

From Coq Require Import Lia ZArith Zify PreOmega.
Open Scope Z_scope.

Ltac Zify.zify_post_hook ::= Z.to_euclidean_division_equations.
Lemma eq_mul_1 : forall n m : Z, n * m = 1 -> n = 1 \/ n = - (1).
Proof.
  intros.
  Fail nia.
  assert (n = 1 / m); nia.
Qed.
@JasonGross JasonGross added the part: micromega The lia, nia, lra, nra and psatz tactics. Also the legacy omega tactic. label Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
part: micromega The lia, nia, lra, nra and psatz tactics. Also the legacy omega tactic.
Projects
None yet
Development

No branches or pull requests

1 participant