-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
45 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
grobner.v | ||
|
||
-I . | ||
-R . mathcomp.contrib.grobner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,32 @@ | ||
# grobner | ||
A fornalisation of Grobner basis in ssreflect | ||
A fornalisation of Grobner basis in ssreflect. | ||
It contains one file | ||
|
||
grobner.v | ||
|
||
It define | ||
|
||
Require Import Inverse_Image. | ||
From mathcomp Require Import all_ssreflect all_algebra. | ||
From SsrMultinomials Require Import ssrcomplements poset freeg mpoly. | ||
From matchcomp.contrib.grobner Require Import grobner. | ||
|
||
(* p belongs to the ideal generated by L *) | ||
|
||
Check ideal. | ||
|
||
ideal = | ||
fun (R : ringType) (n : nat) (L : seq {mpoly R[n]}) (p : {mpoly R[n]}) | ||
=> | ||
exists t, p = \sum_(i < size L) t`_i * L`_i | ||
|
||
|
||
(* it is decidable *) | ||
|
||
Check idealfP. | ||
|
||
idealfP | ||
: forall (R : fieldType) (n : nat) (p : {mpoly R[n]}) | ||
(l : seq {mpoly R[n]}), | ||
reflect (ideal l p) (idealf l p) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
|
||
coq_makefile -f Make -o Makefile | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters