Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Structured proofs do not work inside sections

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Structured proofs do not work inside sections


chronological Thread 
  • From: Benedikt Ahrens <Benedikt.Ahrens AT unice.fr>
  • To: porton AT narod.ru
  • Cc: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Structured proofs do not work inside sections
  • Date: Fri, 11 Nov 2011 23:43:01 +0100

On 11/11/2011 11:04 PM, Victor Porton wrote:
> The following:
> 
> [[[[
> Section sect.
> 
>   Theorem C2: (2+2=4).
> (*Proof. tauto. Qed.*)
>   proof.
>     thus thesis.
>   end proof.
> 
> End sect.
> ]]]]
> 
> produces the error:
> 
> Error: Proof editing in progress.
> Proofs currently edited: C2.
> 
> Interestingly it does not work only with a structured proof (proof...end 
> proof) and produces no error with plain tactics proof (Proof. tauto. Qed.). 
> It also works if we remove Section.
> 
> Does this mean that structured proof don't work inside sections?

No, it simply means that "end proof." does not eliminate the need for
proofs to be saved using "Qed." or "Defined.".

Try, outside any section,

  Theorem C2: (2+2=4).
  proof.
    thus thesis.
  end proof.
Check C2.

and you'll notice that sections don't have anything to do with it. In
your case it was merely the first thing that triggered the symptom of
your proof not being saved.

benedikt



Archive powered by MhonArc 2.6.16.

Top of Page