Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Find all globals in a term?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Find all globals in a term?


Chronological Thread 
  • From: Gregory Malecha <gmalecha AT eecs.harvard.edu>
  • To: Coq Club <coq-club AT inria.fr>
  • Subject: [Coq-Club] Find all globals in a term?
  • Date: Thu, 23 Aug 2012 16:39:18 -0400

Hello --

Is there a way to find all the globals that occur in a term? I tried something like this:

repeat match goal with
         | [ |- context [ ?G ] ] =>
           let x := eval cbv delta [ G ] in G in
           idtac "found" G
       end.

But this does not find globals under binders.

Thanks.

--
gregory malecha
http://www.people.fas.harvard.edu/~gmalecha/



  • [Coq-Club] Find all globals in a term?, Gregory Malecha, 08/23/2012

Archive powered by MHonArc 2.6.18.

Top of Page