Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Eval compute problem

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Eval compute problem


chronological Thread 
  • From: Wojciech Moczydlowski <wm174746 AT zodiac.mimuw.edu.pl>
  • To: coq-club AT pauillac.inria.fr
  • Subject: [Coq-Club] Eval compute problem
  • Date: Sat, 27 Nov 2004 18:35:53 +0100 (CET)
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

  Hello,

here is the transcript of a short session with Coq. 
---------------------------------------------------------
Coq < Definition f : nat -> nat -> { x : nat & nat }.
1 subgoal

  ============================
   nat -> nat -> sigS (fun _ : nat => nat)

f < intros.
1 subgoal

  H : nat
  H0 : nat
  ============================
   sigS (fun _ : nat => nat)

f < exists H0.
1 subgoal

  H : nat
  H0 : nat
  ============================
   nat

f < exact O.
Proof completed.

f < Save.
intros.
exists H0.
exact 0.
f is defined

Coq < Eval compute in projS1 (f 20 20).
     = let (a, _) := f 20 20 in a
     : nat
-------------------------------------------
My question is - why does the last command give this answer, which 
doesn't seem to be reduced enough? I would expect it to evaluate to 20. 

Thanks,

Wojtek


     
     
   




Archive powered by MhonArc 2.6.16.

Top of Page