coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Dominique Larchey-Wendling <dominique.larchey-wendling AT loria.fr>
- To: coq-club AT inria.fr
- Subject: [Coq-Club] Bug w.r.t. Let Fixpoint & Section visibility
- Date: Thu, 15 Feb 2018 14:17:45 +0100
- Organization: LORIA
Hi all,
Maybe this is a feature but the following example shows a
Let Fixpoint construct leaking out of a Section. Is this the
desired behaviour (tested under 8.6 and 8.7.1) ?
(****************************)
Section visibility.
Let Fixpoint ev n := match n with 0 => true | S n => od n end
with od n := match n with 0 => false | S n => ev n end.
Let Fixpoint ev' (n : nat) : bool
with od' (n : nat) : bool.
Proof.
exact (match n with 0 => true | S n => od' n end).
exact (match n with 0 => false | S n => ev' n end).
Defined.
Let my_even := ev.
End visibility.
Check ev'. (* succeeds (unexpected) *)
Check my_even. (* succeeds as expected *)
Check ev. (* fail as expected *)
(****************************)
I do not see why ev & ev' are treated differently?
Thx in advance,
Dominique
- [Coq-Club] Bug w.r.t. Let Fixpoint & Section visibility, Dominique Larchey-Wendling, 02/15/2018
- Re: [Coq-Club] Bug w.r.t. Let Fixpoint & Section visibility, Maxime Dénès, 02/15/2018
- Re: [Coq-Club] Bug w.r.t. Let Fixpoint & Section visibility, Dominique Larchey-Wendling, 02/15/2018
- Re: [Coq-Club] Bug w.r.t. Let Fixpoint & Section visibility, Maxime Dénès, 02/15/2018
Archive powered by MHonArc 2.6.18.