Пример #1
0
 def _fresh_const_name(self, extra=frozenset()):
     contents = ([self._to_formula()] + [
         c.formula for n, c in self.domain.concepts.iteritems()
         if isinstance(c, Concept)
     ])
     used = frozenset(c.name for c in (used_constants(*contents) | extra))
     return next(name for name in constant_name_generator()
                 if name not in used)
Пример #2
0
 def _fresh_const_name(self, extra=frozenset()):
     contents = ([self._to_formula()] +
                 [c.formula for n,c in self.domain.concepts.iteritems() if isinstance(c,Concept)])
     used = frozenset(c.name for c in (
         used_constants(*contents) | extra
     ))
     return next(name for name in constant_name_generator()
                 if name not in used)
Пример #3
0
 def _fresh_const_name(self, extra=frozenset()):
     used = frozenset(c.name for c in (
         used_constants(self._to_formula()) | extra
     ))
     return next(name for name in constant_name_generator()
                 if name not in used)