Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file Interface.ml
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488(** {e Note}:
Any data structure implementing one of these interfaces must also satisfy the corresponding laws in
the corresponding {!Verify} module. *)moduletypeTYPE=sigtypetendmoduletypeMAGMA=sigtypetvalappend:t->t->tendmoduletypeMEDIAL_MAGMA=sigincludeMAGMAendmoduletypeMAGMA_ANY=sigtype'atvalappend:'at->'at->'atendmoduletypeSEMIGROUP=sigincludeMAGMAendmoduletypeSEMIGROUP_ANY=sigincludeMAGMA_ANYendmoduletypeMONOID=sig(** A {!MONOID} only needs to be commutative with the {!empty} element. *)includeSEMIGROUPvalempty:tendmoduletypeMONOID_ANY=sigincludeSEMIGROUP_ANYvalempty:'atendmoduletypeQUASIGROUP=sigincludeMAGMAendmoduletypeMEDIAL_QUASIGROUP=sig(** Every {!MEDIAL_QUASIGROUP} is isotopic to an {!ABELIAN_GROUP}. *)includeMEDIAL_MAGMAendmoduletypeQUASIGROUP_ANY=sigincludeMAGMA_ANYendmoduletypeLOOP=sig(** A {!LOOP} only needs to be commutative with the {!empty} element. *)includeQUASIGROUPvalempty:tendmoduletypeLOOP_ANY=sig(** A {!LOOP_ANY} only needs to be commutative with the {!empty} element. *)includeQUASIGROUP_ANYvalempty:'atendmoduletypeGROUP=sig(** Include {i only} either {!LOOP} or {!MONOID}. *)includeLOOPincludeMONOIDwithtypet:=tvalinverse:t->tendmoduletypeGROUP_ANY=sig(** Include {i only} either {!LOOP_ANY} or {!MONOID_ANY}. *)includeLOOP_ANYincludeMONOID_ANYwithtype'at:='atvalinverse:'at->'atend(** Every {!GROUP} is a {!LOOP}. *)moduletypeGROUP_LOOP=functor(G:GROUP)->LOOPmoduletypeGROUP_LOOP_ANY=functor(G:GROUP_ANY)->LOOP_ANYmoduletypeABELIAN_GROUP=sigincludeGROUPendmoduletypeABELIAN_GROUP_ANY=sigincludeGROUP_ANYendmoduletypeFUNCTOR=sigtype'atvalmap:('a->'b)->'at->'btendmoduletypeAPPLY=sigincludeFUNCTORvalapply:('a->'b)t->'at->'btendmoduletypeAPPLICATIVE=sigincludeAPPLYvalpure:'a->'atendmoduletypeMONAD=sigincludeAPPLICATIVEvalflat_map:'at->('a->'bt)->'btendmoduletypeALT=sigincludeFUNCTORvalalt:'at->'at->'atendmoduletypePLUS=sigincludeALTvalempty:'atendmoduletypeALTERNATIVE=sigincludeAPPLICATIVEincludePLUSwithtype'at:='atendmoduletypeFOLDABLE=sigtype'atvalfold_left:('a->'b->'a)->'a->'bt->'avalfold_right:('b->'a->'a)->'a->'bt->'amoduleFold_Map:functor(M:MONOID)->sigvalfold_map:('a->M.t)->'at->M.tendmoduleFold_Map_Any:functor(M:MONOID_ANY)->sigvalfold_map:('a->'bM.t)->'at->'bM.tendmoduleFold_Map_Plus:functor(P:PLUS)->sigvalfold_map:('a->'bP.t)->'at->'bP.tendendmoduletypeUNFOLDABLE=sigtype'atvalunfold:('a->('a*'a)option)->'a->'atendmoduletypeTRAVERSABLE=sigincludeFUNCTORincludeFOLDABLEwithtype'at:='attype'aapplicative_tvaltraverse:('a->'bapplicative_t)->'at->'btapplicative_tvalsequence:'aapplicative_tt->'atapplicative_tendmoduletypeTRAVERSABLE_F=functor(A:APPLICATIVE)->TRAVERSABLEwithtype'aapplicative_t='aA.tmoduletypeSEMIGROUPOID=sigtype('a,'b)tvalcompose:('b,'c)t->('a,'b)t->('a,'c)tendmoduletypeCATEGORY=sigincludeSEMIGROUPOIDvalid:('a,'a)tendmoduletypeEQ=sigtypetvaleq:t->t->boolendmoduletypeQUASIREFLEXIVE_EQ=sigincludeEQendmoduletypeEQ1=sigtype'atvaleq:'at->'at->boolendmoduletypeEQ2=sigtype('a,'b)tvaleq:('a,'b)t->('a,'b)t->boolendtypeordering=[`less_than|`equal_to|`greater_than]letinvertordering=matchorderingwith|`less_than->`greater_than|`greater_than->`less_than|`equal_to->`equal_toletint_to_orderingx=matchx<0with|true->`less_than|false->(matchx=0with|true->`equal_to|false->`greater_than)letunsafe_compareab=matcha<bwith|true->`less_than|false->(matcha=bwith|true->`equal_to|false->`greater_than)moduletypeORD=sigincludeEQvalcompare:t->t->orderingendmoduleOrdering(O:ORD)=structletless_than=(funab->O.compareab=`less_than:O.t->O.t->bool)andgreater_than=(funab->O.compareab=`greater_than:O.t->O.t->bool)andless_than_or_equal=(funab->O.compareab<>`greater_than:O.t->O.t->bool)andgreater_than_or_equal=(funab->O.compareab<>`less_than:O.t->O.t->bool)endmoduletypeBOUNDED=sigincludeORDvaltop:tvalbottom:tendmoduletypeJOIN_SEMILATTICE=sigtypetvaljoin:t->t->tendmoduletypeMEET_SEMILATTICE=sigtypetvalmeet:t->t->tendmoduletypeBOUNDED_JOIN_SEMILATTICE=sigincludeJOIN_SEMILATTICEvalbottom:tendmoduletypeBOUNDED_MEET_SEMILATTICE=sigincludeMEET_SEMILATTICEvaltop:tendmoduletypeLATTICE=sigincludeJOIN_SEMILATTICEincludeMEET_SEMILATTICEwithtypet:=tendmoduletypeBOUNDED_LATTICE=sigincludeBOUNDED_JOIN_SEMILATTICEincludeBOUNDED_MEET_SEMILATTICEwithtypet:=tendmoduletypeDISTRIBUTIVE_LATTICE=sigincludeLATTICEendmoduletypeBOUNDED_DISTRIBUTIVE_LATTICE=sigincludeBOUNDED_LATTICEendmoduletypeHEYTING_ALGEBRA=sigincludeORDincludeBOUNDED_DISTRIBUTIVE_LATTICEwithtypet:=tvalnot:t->tvalimplies:t->t->tendmoduletypeINVOLUTIVE_HEYTING_ALGEBRA=sigincludeHEYTING_ALGEBRAendmoduletypeBOOLEAN_ALGEBRA=sigincludeHEYTING_ALGEBRAendmoduletypeSHOW=sigtypetvalshow:t->stringendmoduletypeSEMIRING=sigtypetvaladd:t->t->tvalzero:tvalmultiply:t->t->tvalone:tendmoduletypeRING=sigincludeSEMIRINGvalsubtract:t->t->tendmoduletypeCOMMUTATIVE_RING=sigincludeRINGendmoduletypeDIVISION_RING=sigincludeRINGvalreciprocal:t->tendmoduletypeEUCLIDEAN_RING=sigincludeCOMMUTATIVE_RINGvaldegree:t->intvaldivide:t->t->tvalmodulo:t->t->tendmoduletypeFIELD=sigincludeEUCLIDEAN_RINGincludeDIVISION_RINGwithtypet:=tendmoduletypeINVARIANT=sigtype'atvalimap:('a->'b)->('b->'a)->'at->'btendmoduletypeCONTRAVARIANT=sigtype'atvalcmap:('b->'a)->'at->'btendmoduletypePROFUNCTOR=sigtype('a,'b)tvaldimap:('a->'b)->('c->'d)->('b,'c)t->('a,'d)tendmoduletypeMONAD_ZERO=sigincludeMONADincludeALTERNATIVEwithtype'at:='atendmoduletypeMONAD_PLUS=sigincludeMONAD_ZEROendmoduletypeEXTEND=sigincludeFUNCTORvalextend:('at->'b)->'at->'btendmoduletypeCOMONAD=sigincludeEXTENDvalextract:'at->'aendmoduletypeBIFUNCTOR=sigtype('a,'b)tvalbimap:('a->'b)->('c->'d)->('a,'c)t->('b,'d)tendmoduletypeBIAPPLY=sigincludeBIFUNCTORvalbiapply:('a->'b,'c->'d)t->('a,'c)t->('b,'d)tendmoduletypeBIAPPLICATIVE=sigincludeBIAPPLYvalbipure:'a->'b->('a,'b)tendmoduletypeBIFOLDABLE=sigtype('a,'b)tvalbifold_left:('c->'a->'c)->('c->'b->'c)->'c->('a,'b)t->'cvalbifold_right:('a->'c->'c)->('b->'c->'c)->'c->('a,'b)t->'cmoduleFold_Map:functor(M:MONOID)->sigvalfold_map:('a->M.t)->('b->M.t)->('a,'b)t->M.tendmoduleFold_Map_Any:functor(M:MONOID_ANY)->sigvalfold_map:('a->'aM.t)->('b->'aM.t)->('a,'b)t->'aM.tendmoduleFold_Map_Plus:functor(P:PLUS)->sigvalfold_map:('a->'aP.t)->('b->'aP.t)->('a,'b)t->'aP.tendendmoduletypeBITRAVERSABLE=sigincludeBIFUNCTORincludeBIFOLDABLEwithtype('a,'b)t:=('a,'b)ttype'aapplicative_tvalbitraverse:('a->'capplicative_t)->('b->'dapplicative_t)->('a,'b)t->('c,'d)tapplicative_tvalbisequence:('aapplicative_t,'bapplicative_t)t->('a,'b)tapplicative_tendmoduletypeBITRAVERSABLE_F=functor(A:APPLICATIVE)->BITRAVERSABLEwithtype'aapplicative_t='aA.tmoduletypeBICONTRAVARIANT=sigtype('a,'b)tvalbicmap:('b->'a)->('d->'c)->('a,'c)t->('b,'d)tend