Open thery opened 8 years ago
Thanks for reporting the issue!
The have should fail, because you are allowed only a single intro pattern (with clear & views before and simpl switches after) in a have, as additional identifiers are interpreted as introduced variables (you can get around this limitation by using a /wrap view). The error message is nevertheless obviously wrong.
Thanks, Georges
From: Laurent Théry [mailto:notifications@github.com] Sent: 17 May 2016 15:18 To: math-comp/math-comp math-comp@noreply.github.com Subject: [math-comp/math-comp] Error when factorising code on subgoals (#45)
On 8.5 ssreflect 1.5 this works:
From mathcomp Require Import all_ssreflect. Goal forall n : nat, [|| n == 1, n == 2 | n ==3] -> n < 4. by move=> n /or3P[] /eqP ->.
but this fails
Goal forall n : nat, [|| n == 1, n == 2 | n ==3] -> n < 4. move=> n H. have /or3P[] /eqP-> := H.
with
Anomaly: The global environment cannot be accessed during parsing. Please report.
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHubhttps://github.com/math-comp/math-comp/issues/45
Find the right error message to display and move to Coq @gares
On 8.5 ssreflect 1.5 this works:
From mathcomp Require Import all_ssreflect. Goal forall n : nat, [|| n == 1, n == 2 | n ==3] -> n < 4. by move=> n /or3P[] /eqP ->.
but this fails
Goal forall n : nat, [|| n == 1, n == 2 | n ==3] -> n < 4. move=> n H. have /or3P[] /eqP-> := H.
with
Anomaly: The global environment cannot be accessed during parsing. Please report.