Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Suggested name of base classes?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Suggested name of base classes?


chronological Thread 
  • From: Victor Porton <porton AT narod.ru>
  • To: Coq <coq-club AT inria.fr>
  • Subject: [Coq-Club] Suggested name of base classes?
  • Date: Sun, 06 Nov 2011 02:18:53 +0400
  • Envelope-from: porton AT yandex.ru

<<<
Class Base := {
  set: Set
}.

Class Relation := {
  base :> Base;
  graph: set->set->Prop
}.

Class Reflexive := {
  relation :> Relation;
  is_reflexive: forall x:set, (graph x x)
}.

Class Symmetric := {
  relation :> Relation;
  is_symmetric: forall x y:set, ((graph x y)<->(graph y x))
}.
>>>

Compilation output:
File "/home/porton/t/test.v", line 15, characters 0-107:
Error: relation already exists.

This is because I used the id [relation] two times.

What is the suggested naming conventions for names of base classes in Coq?

I's like to see my theory rewritten in such a way to demonstrate the 
suggested naming conventions.

-- 
Victor Porton - http://portonvictor.org



Archive powered by MhonArc 2.6.16.

Top of Page