1 | /**************************************** |
---|
2 | * Computer Algebra System SINGULAR * |
---|
3 | ****************************************/ |
---|
4 | /* $Id: f5gb.h,v 1.19 2009-01-30 17:25:04 ederc Exp $ */ |
---|
5 | /* |
---|
6 | * ABSTRACT: f5gb interface |
---|
7 | */ |
---|
8 | #ifndef F5_HEADER |
---|
9 | #define F5_HEADER |
---|
10 | |
---|
11 | #ifdef HAVE_F5 |
---|
12 | #include "f5data.h" |
---|
13 | #include "f5lists.h" |
---|
14 | |
---|
15 | |
---|
16 | /* |
---|
17 | ====================================================== |
---|
18 | sort polynomials in ideal i by decreasing total degree |
---|
19 | ====================================================== |
---|
20 | */ |
---|
21 | void qsort_degree(poly* left, poly* right); |
---|
22 | |
---|
23 | /* |
---|
24 | ============================================== |
---|
25 | generating the list lp of ideal generators and |
---|
26 | test if 1 is in lp(return 1) or not(return 0) |
---|
27 | ============================================== |
---|
28 | */ |
---|
29 | void generate_input_list(LPoly* lp, ideal id, poly one); |
---|
30 | |
---|
31 | /* |
---|
32 | ================================================== |
---|
33 | computes incrementally gbs of subsets of the input |
---|
34 | gb{f_m} -> gb{f_m,f_(m-1)} -> gb{f_m,...,f_1} |
---|
35 | ================================================== |
---|
36 | */ |
---|
37 | LList* F5inc(int* i, poly* f_i, LList* gPrev, poly* ONE, RList* rules, LTagList* lTag); |
---|
38 | |
---|
39 | /* |
---|
40 | ================================================================ |
---|
41 | computes a list of critical pairs for the next reduction process |
---|
42 | first element in gPrev is always the newest element which must |
---|
43 | build critical pairs with all other elements in gPrev |
---|
44 | ================================================================ |
---|
45 | */ |
---|
46 | CList* criticalPair(LList* gPrev, CList* critPairs, RList* rules, LTagList* lTag); |
---|
47 | |
---|
48 | /* |
---|
49 | ======================================== |
---|
50 | Criterion 1, i.e. Faugere's F5 Criterion |
---|
51 | ======================================== |
---|
52 | */ |
---|
53 | bool criterion1(poly* t, LNode* l, LTagList* lTag); |
---|
54 | |
---|
55 | /* |
---|
56 | ===================================== |
---|
57 | Criterion 2, i.e. Rewritten Criterion |
---|
58 | ===================================== |
---|
59 | */ |
---|
60 | bool criterion2(poly* t, LNode* l, RList* rules); |
---|
61 | |
---|
62 | /* |
---|
63 | ====================================== |
---|
64 | main function of our f5 implementation |
---|
65 | ====================================== |
---|
66 | */ |
---|
67 | ideal F5main(ideal i, ring r); |
---|
68 | |
---|
69 | #endif |
---|
70 | #endif |
---|