This file is indexed.

/usr/share/gap/lib/proto.gd is in gap-libs 4r7p9-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#############################################################################
##
#W  proto.gd                    GAP library                  Andrew Solomon
##
##
#Y  Copyright (C)  1997,  Lehrstuhl D für Mathematik,  RWTH Aachen,  Germany
#Y  (C) 1998 School Math and Comp. Sci., University of St Andrews, Scotland
#Y  Copyright (C) 2002 The GAP Group
##
##  Declarations of utilities for fast prototyping of new GAP objects.
##


##########################################################################
##
#F  ArithmeticElementCreator(<spec>)
##
##  <#GAPDoc Label="ArithmeticElementCreator">
##  <ManSection>
##  <Func Name="ArithmeticElementCreator" Arg="spec"/>
##
##  <Description>
##  offers a simple interface to create new arithmetic elements by providing
##  functions that perform addition, multiplication and so forth, conforming
##  to the specification <A>spec</A>. <C>ArithmeticElementCreator</C> 
##  creates a new category, representation and family for the new arithmetic 
##  elements being defined, and returns a function which takes the
##  <Q>defining data</Q> of an element and returns the corresponding new
##  arithmetic element.
##  <P/>
##  <A>spec</A> is a record with one or more of the following components:
##  <List>
##  <Mark><C>ElementName</C></Mark>
##  <Item>
##     string used to identify the new type of object. A global
##     identifier <C>Is<A>ElementName</A></C> will be defined to indicate
##     a category for these now objects. (Therefore it is not clever to have
##     blanks in the name). Also a collections category is defined.
##     (You will get an error message if the identifier
##     <C>Is<A>ElementName</A></C> is already defined.)
##  </Item>
##  <Mark><C>Equality</C>, <C>LessThan</C>, <C>One</C>, <C>Zero</C>,
##   <C>Multiplication</C>, <C>Inverse</C>, <C>Addition</C>,
##   <C>AdditiveInverse</C></Mark>
##  <Item>
##     functions defining the arithmetic
##     operations. The functions interface on the level of
##     <Q>defining data</Q>, the actual methods installed will perform the
##     unwrapping and wrapping as objects.
##     Components are optional, but of course if no multiplication is
##     defined elements cannot be multiplied and so forth.
##     <P/>
##     There are default methods for <C>Equality</C> and <C>LessThan</C>
##     which simply calculate on the defining data.
##     If one is defined, it must be ensured that the other is compatible
##     (so that <M>a &lt; b</M> implies not <M>(a = b)</M>)
##  </Item>
##  <Mark><C>Print</C></Mark>
##  <Item>
##     a function which prints the object.
##     By default, just the defining data is printed.
##  </Item>
##  <Mark><C>MathInfo</C></Mark>
##  <Item>
##     filters determining the mathematical properties of the elements
##     created. A typical value is for example
##     <C>IsMultiplicativeElementWithInverse</C> for group elements.
##  </Item>
##  <Mark><C>RepInfo</C></Mark>
##  <Item>
##     filters determining the representational properties of the elements
##     created. The objects created are always component objects,
##     so in most cases the only reasonable option is
##     <C>IsAttributeStoringRep</C> to permit the storing of attributes.
##  </Item>
##  </List>
##  <P/>
##  All components are optional and will be filled in with default values
##  (though of course an empty record will not result in useful objects).
##  <P/>
##  Note that the resulting objects are <E>not equal</E> to their defining
##  data (even though by default they print as only the defining data). The
##  operation <C>UnderlyingElement</C> can be used to obtain the defining
##  data of such an element.
##  </Description>
##  </ManSection>
##  <#/GAPDoc>
##
DeclareGlobalFunction("ArithmeticElementCreator");


#############################################################################
##
#E