Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

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

r""" 

Gcd domains 

""" 

#***************************************************************************** 

# Copyright (C) 2008 Teresa Gomez-Diaz (CNRS) <Teresa.Gomez-Diaz@univ-mlv.fr> 

# 

# Distributed under the terms of the GNU General Public License (GPL) 

# http://www.gnu.org/licenses/ 

#****************************************************************************** 

 

from sage.categories.category_singleton import Category_singleton 

from sage.categories.integral_domains import IntegralDomains 

 

class GcdDomains(Category_singleton): 

""" 

The category of gcd domains 

domains where gcd can be computed but where there is no guarantee of 

factorisation into irreducibles 

 

EXAMPLES:: 

 

sage: GcdDomains() 

Category of gcd domains 

sage: GcdDomains().super_categories() 

[Category of integral domains] 

 

TESTS:: 

 

sage: TestSuite(GcdDomains()).run() 

""" 

 

def super_categories(self): 

""" 

EXAMPLES:: 

 

sage: GcdDomains().super_categories() 

[Category of integral domains] 

""" 

return [IntegralDomains()] 

 

def additional_structure(self): 

""" 

Return ``None``. 

 

Indeed, the category of gcd domains defines no additional 

structure: a ring morphism between two gcd domains is a gcd 

domain morphism. 

 

.. SEEALSO:: :meth:`Category.additional_structure` 

 

EXAMPLES:: 

 

sage: GcdDomains().additional_structure() 

""" 

return None 

 

class ParentMethods: 

pass 

 

class ElementMethods: 

# gcd(x,y) 

# lcm(x,y) 

pass