Formalizing Elementary Divisor Rings in Coq

Similar documents
Constructive Algebra in Type Theory

Constructive Algebra in Functional Programming and Type Theory AB C

x y B =. v u Note that the determinant of B is xu + yv = 1. Thus B is invertible, with inverse u y v x On the other hand, d BA = va + ub 2

The Zariski Spectrum of a ring

1. Factorization Divisibility in Z.

arxiv: v1 [cs.ms] 27 Jan 2016

Coherent and Strongly Discrete Rings in Type Theory

Honors Algebra 4, MATH 371 Winter 2010 Assignment 3 Due Friday, February 5 at 08:35

Constructive algebra. Thierry Coquand. May 2018

Fundamental theorem of modules over a PID and applications

(1) A frac = b : a, b A, b 0. We can define addition and multiplication of fractions as we normally would. a b + c d

MATH 326: RINGS AND MODULES STEFAN GILLE

(dim Z j dim Z j 1 ) 1 j i

Introduction to Arithmetic Geometry Fall 2013 Lecture #18 11/07/2013

DIAGONAL REDUCTION OF MATRICES OVER RINGS

Factorizations of ideals in noncommutative rings similar to factorizations of ideals in commutative Dedekind domains

Math 145. Codimension

Prüfer domain. Thierry Coquand. August 2008

Extended Index. 89f depth (of a prime ideal) 121f Artin-Rees Lemma. 107f descending chain condition 74f Artinian module

Math 121 Homework 5: Notes on Selected Problems

2. THE EUCLIDEAN ALGORITHM More ring essentials

TEST CODE: PMB SYLLABUS

11. Finitely-generated modules

Finitely Generated Modules over a PID, I

Solutions to odd-numbered exercises Peter J. Cameron, Introduction to Algebra, Chapter 2

MODEL ANSWERS TO THE FIRST HOMEWORK

Polynomials, Ideals, and Gröbner Bases

Chapter 5: The Integers

THE REGULAR ELEMENT PROPERTY

Commutative Algebra. Timothy J. Ford

Lecture 7.4: Divisibility and factorization

Formalized Linear Algebra over Elementary Divisor Rings in Coq

Math 547, Exam 1 Information.

PRÜFER CONDITIONS IN RINGS WITH ZERO- DIVISORS

Universal Localization of Piecewise Noetherian Rings

Preliminary Exam Topics Sarah Mayes

2. Intersection Multiplicities

H.6 Homological Characterization of Rings: The Commutative Case

Computations/Applications

Math 210B. Artin Rees and completions

(Rgs) Rings Math 683L (Summer 2003)

STRONG CONVERGENCE PROPERTIES OF SFT RINGS. John T. Condo 748 Jamie Way Atlanta, GA 30188

Decompositions Of Modules And Matrices

11. Dimension. 96 Andreas Gathmann

FILTERED RINGS AND MODULES. GRADINGS AND COMPLETIONS.

ABSTRACT NONSINGULAR CURVES

Math 547, Exam 2 Information.

COURSE SUMMARY FOR MATH 508, WINTER QUARTER 2017: ADVANCED COMMUTATIVE ALGEBRA

List of topics for the preliminary exam in algebra

Some Remarks on Elementary Divisor Rings II

ON STRONGLY PRIME IDEALS AND STRONGLY ZERO-DIMENSIONAL RINGS. Christian Gottlieb

Contribution of Problems

Lecture 7: Polynomial rings

Chapter 14: Divisibility and factorization

Ring Theory Problems. A σ

MATH 8253 ALGEBRAIC GEOMETRY WEEK 12

ALGEBRAIC GEOMETRY COURSE NOTES, LECTURE 2: HILBERT S NULLSTELLENSATZ.

1 Absolute values and discrete valuations

Algebraic Varieties. Notes by Mateusz Micha lek for the lecture on April 17, 2018, in the IMPRS Ringvorlesung Introduction to Nonlinear Algebra

Algebra Homework, Edition 2 9 September 2010

Math 120 HW 9 Solutions

Rings With Topologies Induced by Spaces of Functions

5: The Integers (An introduction to Number Theory)

Dedekind Domains. Mathematics 601

1. multiplication is commutative and associative;

Sample algebra qualifying exam

ALGEBRA HANDOUT 2.3: FACTORIZATION IN INTEGRAL DOMAINS. In this handout we wish to describe some aspects of the theory of factorization.

n P say, then (X A Y ) P

Computer Proof Assistants and Univalent Foundations of Mathematics

Math 581 Problem Set 3 Solutions

Introduction Non-uniqueness of factorization in A[x]... 66

Commutative Algebra and Algebraic Geometry. Robert Friedman

Lecture 2. (1) Every P L A (M) has a maximal element, (2) Every ascending chain of submodules stabilizes (ACC).

Universal localization at semiprime Goldie ideals

ALGEBRA II: RINGS AND MODULES OVER LITTLE RINGS.

Modules over Non-Noetherian Domains

J-Noetherian Bezout domain which is not a ring of stable range 1

Rings and modular arithmetic

ALGEBRAIC GEOMETRY: GLOSSARY AND EXAMPLES

NON-COMMUTATIVE KRULL MONOIDS: A DIVISOR THEORETIC APPROACH AND THEIR ARITHMETIC

Residue Class Rings of Real-Analytic and Entire Functions

1 Fields and vector spaces

MODEL ANSWERS TO THE FOURTH HOMEWORK

Homological Dimension

ALGEBRA EXERCISES, PhD EXAMINATION LEVEL

Infinite-dimensional combinatorial commutative algebra

SCHEMES. David Harari. Tsinghua, February-March 2005

Course 311: Michaelmas Term 2005 Part III: Topics in Commutative Algebra

Factorization in Polynomial Rings

Commutative algebra 19 May Jan Draisma TU Eindhoven and VU Amsterdam

INTRODUCTION TO COMMUTATIVE ALGEBRA MAT6608. References

Structure of rings. Chapter Algebras

Math 203A - Solution Set 1

ADVANCED COMMUTATIVE ALGEBRA: PROBLEM SETS

Characterizing integral domains by semigroups of ideals

Concentrated Schemes

Honors Algebra 4, MATH 371 Winter 2010 Assignment 4 Due Wednesday, February 17 at 08:35

A NEW PROOF OF SERRE S HOMOLOGICAL CHARACTERIZATION OF REGULAR LOCAL RINGS

COURSE SUMMARY FOR MATH 504, FALL QUARTER : MODERN ALGEBRA

SUMMARY ALGEBRA I LOUIS-PHILIPPE THIBAULT

Transcription:

Formalizing Elementary Divisor Rings in Coq Cyril Cohen Anders Mörtberg University of Gothenburg May 27, 2014

Introduction Goal: Generalize the theory of linear algebra over fields (vector spaces) to rings (R-modules) We want to formalize using type theory: algorithms, correctness proof, and theory.

Type theory Alternative foundations of mathematics to set theory Well suited for computer implementation and formalization Coq proof assistant: Functional programming language with dependent types

Formalizing linear algebra in type theory G. Gonthier: Point-free set-free concrete linear algebra (2011) Formalize the theory of finite dimensional vector spaces using matrices At the heart of the formalization is an implementation of Gaussian elimination Mathematical components library (SSReflect): Coq formalization of the four color theorem and Feit-Thompson theorem

Formalizing linear algebra in type theory We generalize this to rings where any matrix is equivalent to a matrix in Smith normal form: Gaussian elimination Smith normal form algorithms Finite dimensional vector spaces Finitely presented modules

Elementary divisor rings Elementary divisor rings are commutative rings where every matrix is equivalent to a matrix in Smith normal form: d 1 0 0.... 0 d k 0 0. 0 0....... 0 0 0 where d i d i+1 for 1 i < k

Linear algebra over elementary divisor rings Given M we get invertible P and Q such that PMQ = D where D is in Smith normal form. Using this we can compute a matrix L such that: XM = 0 Y.X = YL i.e. we can compute the kernel of M. In particular we get that elementary divisor rings are coherent

Finitely presented modules We restrict to finitely presented modules as these are used in applications (control theory, algebraic topology...) and in computer algebra systems like Singular and Homalg.

Finitely presented modules We restrict to finitely presented modules as these are used in applications (control theory, algebraic topology...) and in computer algebra systems like Singular and Homalg. An R-module M is finitely presented if it is finitely generated and there is a finite number of relations between these. R m 1 M R m 0 π M 0 M is a matrix representing the m 1 relations among the m 0 generators of the module M.

Finitely presented modules: example The Z-module Z Z/2Z is given by the presentation: ( ) 0 2 Z Z 2 Z Z/2Z 0 as if Z Z/2Z is generated by (e 1, e 2 ) there is one relation, namely 0e 1 + 2e 2 = 0.

Finitely presented modules: morphisms A morphism between finitely presented R-modules is given by the following commutative diagram: M R m 1 R m 0 M 0 ϕ R ϕ G ϕ N R n 1 R n 0 N 0 As elementary divisor rings are coherent we get algorithms for computing the kernel of morphisms

Deciding isomorphism of finitely presented modules It is in general not possible to decide if two presentation matrices represent isomorphic R-modules

Deciding isomorphism of finitely presented modules It is in general not possible to decide if two presentation matrices represent isomorphic R-modules If R is an elementary divisor ring this is possible: Compute the Smith normal form of the presentation matrices Compare the diagonals up to multiplication by units

Deciding isomorphism of finitely presented modules Given M we get invertible P and Q such that PMQ = D: M R m 1 R m 0 M 0 P 1 Q ϕ D R m 1 R m 0 D 0 Now ϕ is an isomorphism as P and Q are invertible.

Principal ideal domains Classical result: Principal ideal domains (i.e. integral domains where every ideal is principal) are elementary divisor rings

Principal ideal domains Classical result: Principal ideal domains (i.e. integral domains where every ideal is principal) are elementary divisor rings Principal ideal domain = Bézout domain + Noetherian

Principal ideal domains Classical result: Principal ideal domains (i.e. integral domains where every ideal is principal) are elementary divisor rings Principal ideal domain = Bézout domain + Noetherian Bézout domains are integral domains where for any two elements a and b there exists x and y such that ax + by = gcd(a, b).

Principal ideal domains Classical result: Principal ideal domains (i.e. integral domains where every ideal is principal) are elementary divisor rings Principal ideal domain = Bézout domain + Noetherian Bézout domains are integral domains where for any two elements a and b there exists x and y such that ax + by = gcd(a, b). A ring is Noetherian if every ideal is finitely generated, which is equivalent (using classical logic) to saying that any ascending chain of ideals stabilizes.

Constructive principal ideal domains We say that a divides b strictly if a b b a

Constructive principal ideal domains We say that a divides b strictly if a b b a Using this we can define constructive principal ideal domains as Bézout domains where strict divisibility is well-founded. This can be seen as a constructive version of the ascending chain condition for principal ideals.

Constructive principal ideal domains We say that a divides b strictly if a b b a Using this we can define constructive principal ideal domains as Bézout domains where strict divisibility is well-founded. This can be seen as a constructive version of the ascending chain condition for principal ideals. Can we drop the condition that strict divisibility is well-founded and generalize the result to arbitrary Bézout domains?

Bézout domains Problem: It is an open problem whether all Bézout domains are elementary divisor rings.

Bézout domains Problem: It is an open problem whether all Bézout domains are elementary divisor rings. Solution: Consider extensions to Bézout domains that makes it possible for us to prove that they are elementary divisor rings. The extensions we consider are: 1. Adequacy, 2. gdco operation and 3. Krull dimension 1.

Kaplansky s results I. Kaplansky: Elementary Divisors and Modules (1948) He shows that the computation of Smith normal form of matrices over Bézout domains can be reduced to the case of 2 2 matrices. The proof is concrete and constructive: We have implemented and proved correct the algorithm underlying the proof in Coq.

The Kaplansky condition A Bézout domain is an elementary divisor ring if and only if it satisfies the Kaplansky condition: for all a, b, c R with gcd(a, b, c) = 1 there exists p, q R with gcd(pa, pb + qc) = 1 Hence it suffices to prove that the extensions to Bézout domains imply the Kaplansky condition in order to get that they are elementary divisor rings.

Intuition behind the Kaplansky condition Consider a 2 2 matrix ( ) a b with coefficients in a Bézout domain R. c d

Intuition behind the Kaplansky condition Consider a 2 2 matrix ( ) a b c d with coefficients in a Bézout domain R. It is straightforward to show that it is equivalent to a matrix: ( a b ) 0 c for some a, b, c R.

Intuition behind the Kaplansky condition Consider a 2 2 matrix ( ) a b with coefficients in a Bézout domain R. It is straightforward to show that it is equivalent to a matrix: ( a b ) for some a, b, c R. c d 0 c Without loss of generality we can assume that gcd(a, b, c ) = 1. Furthermore, such a matrix can be put in Smith normal form if and only if there exists p, q R with gcd(pa, pb + qc ) = 1.

Helmer: Adequate rings O. Helmer: The Elementary Divisor Theorem for certain rings without chain conditions (1942) A Bézout domain 1 R is adequate if there for any a, b R exists r R such that 1. r a, 2. r is coprime with b, and 3. for all non unit d such that dr a we have that d is not coprime with b. In the paper Helmer proves that this class of rings are elementary divisor rings, however Kaplansky has a simpler proof using the Kaplansky condition in his 1948 paper. 1 Interestingly Helmer calls these Prüfer rings

gdco domains Adequacy resembles very much the notion of a gdco operation that takes a, b R and computes the greatest divisor of a coprime to b. We call Bézout domains with such an operation gdco domains and we have proved that these satisfy the Kaplansky condition. We have also proved that both adequacy and well-founded strict divisibility implies the existence of a gdco operation. Hence we get that both of these are elementary divisor rings.

Krull dimension 1 Classically Krull dimension is defined as the supremum of the length of all chains of prime ideals, this can be defined constructively using an inductive definition. Concretely an integral domain R is of Krull dimension 1 if for any a, u R there exists v R and m N such that a u m (1 uv) We have proved that Bézout domains of Krull dimension 1 are adequate.

Summary Kdim 1 PID Bézout GCD Bézout Adequacy gdco Kaplansky EDR PID

Conclusions We have formalized proofs that elementary divisor rings are a good setting for developing linear algebra in type theory. We have also formalized that Bézout domains extended with either adequacy, gdco operation, Krull dimension 1, or well-founded strict divisibility are elementary divisor rings and explored the connections between these extensions.

Thanks for your attention!