Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Using Program/Refine to allow "_" in a definition

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Using Program/Refine to allow "_" in a definition


Chronological Thread 
  • From: t x <txrev319 AT gmail.com>
  • To: coq-club <coq-club AT inria.fr>
  • Subject: [Coq-Club] Using Program/Refine to allow "_" in a definition
  • Date: Sun, 1 Sep 2013 05:14:41 +0000

Hi,

  Here is my min fail case.

Require Import ZArith Omega.
Local Open Scope Z_scope.

Record Foo :=
  { n : Z;
    H : n < 10 }.


Lemma lem__5_lt_10: 5 < 10.
Proof. omega. Qed.


(* this line works *)
Definition a := Build_Foo 5 lem__5_lt_10.


(* this line does not work *)
Definition a' := Build_Foo 5 _.

(*  Question: is there a way to use Program / refine
    so that I can write the above?

In particular, I want to:
  * fill in the proof after the "Build_Foo"

I do NOT want to:
  * define a lemma before hand to use.

 *)


  Is the above possible?

Thanks!



Archive powered by MHonArc 2.6.18.

Top of Page