Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Search vs SearchAbout

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Search vs SearchAbout


Chronological Thread 
  • From: Math Prover <mathprover AT yahoo.com>
  • To: "coq-club AT inria.fr" <coq-club AT inria.fr>
  • Subject: [Coq-Club] Search vs SearchAbout
  • Date: Fri, 17 May 2013 18:48:55 -0700 (PDT)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=5IMUdQ9UCJuSYj/wZtEbFtN0wkd1gESQWyq7D9DeL37YB7+GvZe37a+25BD+xYn8wH9PBft9RqW0G5MGKvZ8ZnrWgwVWuhlnVQjGgrS5RDPqiIjU3bbqnJJCECDh2uMxwE3FGWAnNKG2fpvYlpuWGPW3XB1cNqYStCKpvzY1uTk=;

Hi Coq-Club,

This is something that has confused me for quite a while.

Just now, I was searching for "Z.leb", since I wanted to play with integers
rather than natural numbers.

My first attempt was to use Search, and after that failed, I tried
SearchAbout.

Here is my question: How does Search and SearchAbout differ in practice?

The manual states:

It is often difficult to remember the names of all lemmas and definitions
available in the current context, especially if large libraries have been
loaded. A convenient SearchAbout command is available to lookup all known
facts concerning a given predicate. For instance, if you want to know all the
known lemmas about the less or equal relation, just ask:


and

Another command Search displays only lemmas where the searched predicate
appears at the head position in the conclusion.



However, it's not clear how either explains the problem I am facing. Thanks!

=== BEGIN ===

Require Import ZArith.

Search (Z -> Z -> bool).

(*
Zneq_bool: Z -> Z -> bool
Zeq_bool: Z -> Z -> bool
*)

SearchAbout (Z -> Z -> bool).

(*
Zeq_bool: Z -> Z -> bool
Zneq_bool: Z -> Z -> bool
Z.leb: Z -> Z -> bool
.. and many more ... *)


=== END ===



Archive powered by MHonArc 2.6.18.

Top of Page