Exemplo n.º 1
0
 def __init__(self, n, stringFormat=None, latexFormat=None):
     if stringFormat is None: stringFormat = str(n)
     Literal.__init__(self,
                      stringFormat,
                      extraCoreInfo=[str(n)],
                      context=__file__)
     if not isinstance(n, int):
         raise ValueError("'n' of a Numeral must be an integer")
     self.n = n
Exemplo n.º 2
0
 def __init__(self, n, string_format=None, latex_format=None, *,
              styles=None):
     if string_format is None:
         string_format = str(n)
     Literal.__init__(
         self, string_format, extra_core_info=[str(n)],
         theory=__file__, styles=styles)
     if not isinstance(n, int):
         raise ValueError("'n' of a Numeral must be an integer")
     self.n = n
Exemplo n.º 3
0
 def __init__(self):
     Literal.__init__(self, 'i', r'\mathsf{i}', theory=__file__)
Exemplo n.º 4
0
 def __init__(self, *, styles=None):
     Literal.__init__(
         self, string_format='BOOLEAN', latex_format=r'\mathbb{B}',
         styles=styles)
Exemplo n.º 5
0
 def __init__(self, *, styles=None):
     Literal.__init__(self, string_format='FALSE', latex_format=r'\bot',
                      styles=styles)
Exemplo n.º 6
0
 def __init__(self, *, styles=None):
     Literal.__init__(self, string_format='TRUE', latex_format=r'\top',
                      styles=styles)
Exemplo n.º 7
0
 def __init__(self, *, styles=None):
     Literal.__init__(
         self, string_format='HilbertSpaces', 
         latex_format=r'\textrm{HilbertSpaces}',
         styles=styles)
Exemplo n.º 8
0
 def __init__(self):
     Literal.__init__(self, stringFormat='FALSE', latexFormat=r'\bot')
Exemplo n.º 9
0
 def __init__(self, string, latex, *, theory, styles, fence_when_forced=False):
     Literal.__init__(self, string, latex, theory=theory, styles=styles,
                      fence_when_forced=fence_when_forced)
Exemplo n.º 10
0
 def __init__(self, *, styles=None):
     Literal.__init__(self,
                      'i',
                      r'\mathsf{i}',
                      theory=__file__,
                      styles=styles)
Exemplo n.º 11
0
 def __init__(self):
     Literal.__init__(self,
                      string_format='BOOLEAN',
                      latex_format=r'\mathbb{B}')
Exemplo n.º 12
0
 def __init__(self):
     Literal.__init__(self,
                      stringFormat='emptyset',
                      latexFormat=r'\emptyset')
Exemplo n.º 13
0
 def __init__(self, string_format, latex_format=None, *, styles=None):
     Literal.__init__(self,
                      string_format,
                      latex_format,
                      theory=__file__,
                      styles=styles)
Exemplo n.º 14
0
 def __init__(self, stringFormat, latexFormat=None):
     Literal.__init__(self, stringFormat, latexFormat, context=__file__)
Exemplo n.º 15
0
 def __init__(self, string, latex, context):
     Literal.__init__(self, string, latex, context=context)
Exemplo n.º 16
0
 def __init__(self, *, styles=None):
     Literal.__init__(self,
                      string_format='SampleSpaces',
                      latex_format=r'\textrm{SampleSpaces}',
                      styles=styles)
Exemplo n.º 17
0
 def __init__(self, string, latex, theory):
     Literal.__init__(self, string, latex, theory=theory)
Exemplo n.º 18
0
 def __init__(self):
     Literal.__init__(self, stringFormat='TRUE', latexFormat=r'\top')
Exemplo n.º 19
0
 def __init__(self):
     Literal.__init__(self, 'i', context=__file__)
Exemplo n.º 20
0
 def __init__(self):
     Literal.__init__(self, stringFormat='BOOLEANS', latexFormat=r'\mathbb{B}')
Exemplo n.º 21
0
 def __init__(self, *, styles=None):
     Literal.__init__(self, 'Q*', r'\mathcal{Q^*}', styles=styles)