{"id":{"repo_id":"goteborg","oai_identifier":"oai:gupea.ub.gu.se:2077/37325"},"canonical_url":"https://search.ndltd.org/etd/goteborg/oai:gupea.ub.gu.se:2077/37325","repository":{"repo_id":"goteborg","name":"Gothenburg University","base_url":"https://gupea.ub.gu.se/oai/request"},"display":{"title":"Formalizing Refinements and Constructive Algebra in Type Theory","abstract":"The extensive use of computers in mathematics and engineering has led to an increased demand for reliability in the implementation of algorithms in computer algebra systems. One way to increase the reliability is to formally verify that the implementations satisfy the mathematical theorems stating their specification. By implementing and specifying algorithms from computer algebra inside a proof assistant both the reliability of the implementation and the computational capabilities of the proof assistant can be increased. The extensive use of computers in mathematics and engineering has led to an increased demand for reliability in the implementation of algorithms in com- puter algebra systems. One way to increase the reliability is to formally verify that the implementations satisfy the mathematical theorems stating their spe- cification. By implementing and specifying algorithms from computer algebra inside a proof assistant both the reliability of the implementation and the com- putational capabilities of the proof assistant can be increased.The extensive use of computers in mathematics and engineering has led to an increased demand for reliability in the implementation of algorithms in com- puter algebra systems. One way to increase the reliability is to formally verify that the implementations satisfy the mathematical theorems stating their spe- cification. By implementing and specifying algorithms from computer algebra inside a proof assistant both the reliability of the implementation and the com- putational capabilities of the proof assistant can be increased. This first part of the thesis presents a framework, developed in the interact- ive theorem prover C OQ , for conveniently implementing and reasoning about program and data refinements. In this framework programs defined on rich dependent types suitable for proofs are linked to optimized implementations on simple types suitable for computation. The correctness of the optimized algorithms is established on the proof-oriented types and then automatically transported to the computation-oriented types. This method has been ap- plied to develop a library containing multiple algorithms from computational algebra, including: Karatsuba’s polynomial multiplication, Strassen’s matrix multiplication and the Sasaki-Murao algorithm for computing the character- istic polynomial of matrices over commutative rings. The second part of the thesis presents the formalization of notions from constructive algebra. Focus is on the theory of coherent and strongly discrete rings, which provides a general setting for developing linear algebra over rings instead of fields. Examples of such rings include Bézout domains, Prüfer do- mains and elementary divisor rings. Finitely presented modules over these rings are implemented using an abstraction layer on top of matrices. This enables us to constructively prove that the category of these modules form a suitable setting for developing homological algebra. We further show that any finitely presented module over an elementary divisor ring can be decomposed to a direct sum of a free module and cyclic modules in a unique way. This first part of the thesis presents a framework, developed in the interactive theorem prover Coq, for conveniently implementing and reasoning about program and data refinements. In this framework programs defined on rich dependent types suitable for proofs are linked to optimized implementations on simple types suitable for computation. The correctness of the optimized algorithms is established on the proof-oriented types and then automatically transported to the computation-oriented types. This method has been applied to develop a library containing multiple algorithms from computational algebra, including: Karatsuba’s polynomial multiplication, Strassen’s matrix multiplication and the Sasaki-Murao algorithm for computing the characteristic polynomial of matrices over commutative rings. The second part of the thesis presents the formalization of notions from constructive algebra. Focus is on the theory of coherent and strongly discrete rings, which provides a general setting for developing linear algebra over rings instead of fields. Examples of such rings include Bézout domains, Prüfer domains and elementary divisor rings. Finitely presented modules over these rings are implemented using an abstraction layer on top of matrices. This enables us to constructively prove that the category of these modules form a suitable setting for developing homological algebra. We further show that any finitely presented module over an elementary divisor ring can be decomposed to a direct sum of a free module and cyclic modules in a unique way. This decomposition gives a decision procedure for testing if two finitely presented modules are isomorphic.","abstract_html":"The extensive use of computers in mathematics and engineering has led to an increased demand for reliability in the implementation of algorithms in computer algebra systems. One way to increase the reliability is to formally verify that the implementations satisfy the mathematical theorems stating their specification. By implementing and specifying algorithms from computer algebra inside a proof assistant both the reliability of the implementation and the computational capabilities of the proof assistant can be increased. The extensive use of computers in mathematics and engineering has led to an increased demand for reliability in the implementation of algorithms in com- puter algebra systems. One way to increase the reliability is to formally verify that the implementations satisfy the mathematical theorems stating their spe- cification. By implementing and specifying algorithms from computer algebra inside a proof assistant both the reliability of the implementation and the com- putational capabilities of the proof assistant can be increased.The extensive use of computers in mathematics and engineering has led to an increased demand for reliability in the implementation of algorithms in com- puter algebra systems. One way to increase the reliability is to formally verify that the implementations satisfy the mathematical theorems stating their spe- cification. By implementing and specifying algorithms from computer algebra inside a proof assistant both the reliability of the implementation and the com- putational capabilities of the proof assistant can be increased. This first part of the thesis presents a framework, developed in the interact- ive theorem prover C OQ , for conveniently implementing and reasoning about program and data refinements. In this framework programs defined on rich dependent types suitable for proofs are linked to optimized implementations on simple types suitable for computation. The correctness of the optimized algorithms is established on the proof-oriented types and then automatically transported to the computation-oriented types. This method has been ap- plied to develop a library containing multiple algorithms from computational algebra, including: Karatsuba’s polynomial multiplication, Strassen’s matrix multiplication and the Sasaki-Murao algorithm for computing the character- istic polynomial of matrices over commutative rings. The second part of the thesis presents the formalization of notions from constructive algebra. Focus is on the theory of coherent and strongly discrete rings, which provides a general setting for developing linear algebra over rings instead of fields. Examples of such rings include Bézout domains, Prüfer do- mains and elementary divisor rings. Finitely presented modules over these rings are implemented using an abstraction layer on top of matrices. This enables us to constructively prove that the category of these modules form a suitable setting for developing homological algebra. We further show that any finitely presented module over an elementary divisor ring can be decomposed to a direct sum of a free module and cyclic modules in a unique way. This first part of the thesis presents a framework, developed in the interactive theorem prover Coq, for conveniently implementing and reasoning about program and data refinements. In this framework programs defined on rich dependent types suitable for proofs are linked to optimized implementations on simple types suitable for computation. The correctness of the optimized algorithms is established on the proof-oriented types and then automatically transported to the computation-oriented types. This method has been applied to develop a library containing multiple algorithms from computational algebra, including: Karatsuba’s polynomial multiplication, Strassen’s matrix multiplication and the Sasaki-Murao algorithm for computing the characteristic polynomial of matrices over commutative rings. The second part of the thesis presents the formalization of notions from constructive algebra. Focus is on the theory of coherent and strongly discrete rings, which provides a general setting for developing linear algebra over rings instead of fields. Examples of such rings include Bézout domains, Prüfer domains and elementary divisor rings. Finitely presented modules over these rings are implemented using an abstraction layer on top of matrices. This enables us to constructively prove that the category of these modules form a suitable setting for developing homological algebra. We further show that any finitely presented module over an elementary divisor ring can be decomposed to a direct sum of a free module and cyclic modules in a unique way. This decomposition gives a decision procedure for testing if two finitely presented modules are isomorphic.","abstract_has_math":false,"creators":["Mörtberg, Anders"],"institution":null,"degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":"Department of Computer Science and Engineering ; Institutionen för data- och informationsteknik","school":null,"contributors":[],"advisors":[],"committee_chairs":[],"committee_members":[],"year":2014,"date_issued":"2014-11-21","date_published":"2014-11-21","updated_at":"2026-11-26T03:07:21Z","subjects":["Formalization of mathematics","Refinements","Constructive algebra","Type theory","Coq","SSReflect"],"languages":["eng"],"rights":[],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.isbn","label":"ISBN","values":["978-91-982237-0-5"],"render_values":[{"text":"978-91-982237-0-5","href":null,"code":true}]},{"key":"dc:identifier.other","label":"Dc Identifier Other","values":["ITF"],"render_values":[{"text":"ITF","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/2077/37325","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/2077/37325","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Agoteborg%3Aoai%3Agupea.ub.gu.se%3A2077%2F37325","prefix":"oai_dc"},"source_record":{"url":"https://gupea.ub.gu.se/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Agupea.ub.gu.se%3A2077%2F37325","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.department","label":"Department","values":["Department of Computer Science and Engineering ; Institutionen för data- och informationsteknik"]},{"key":"dc:creator","label":"Author","values":["Mörtberg, Anders"]},{"key":"person:email","label":"Person Email","values":["anders.mortberg@cse.gu.se"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2014-11-21T09:48:05Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2014-11-21T09:48:05Z"]},{"key":"dc:date.defence","label":"Dc Date Defence","values":["2014-12-12"]},{"key":"dc:date.issued","label":"Date","values":["2014-11-21"]},{"key":"dc:relation.haspart","label":"Dc Relation Haspart","values":["A Refinement-Based Approach to Computational Algebra in Coq. Maxime Dénès, Anders Mörtberg and Vincent Siles. In Interactive Theorem Proving, volume 7406 of Lectures Notes in Computer Science, pages 83–98. Springer, 2012.","Refinements for free!. Cyril Cohen, Maxime Dénès and Anders Mörtberg. In Certified Programs and Proofs, volume 8307 of Lecture Notes in Computer Science, pages 147–162. Springer, 2013.","A Formal Proof of Sasaki-Murao Algorithm. Thierry Coquand, Anders Mörtberg and Vincent Siles. Journal of Formalized Reasoning, 5(1):27–36, 2012.","Coherent and Strongly Discrete Rings in Type Theory. Thierry Coquand, Anders Mörtberg and Vincent Siles. In Certified Programs and Proofs, volume 7679 of Lecture Notes in Computer Science, pages 273–288. Springer, 2012.","A Coq Formalization of Finitely Presented Modules. Cyril Cohen and Anders Mörtberg. In Interactive Theorem Proving, volume 8558 of Lecture Notes in Computer Science, pages 193–208. Springer, 2014.","Formalized Linear Algebra over Elementary Divisor Rings in Coq. Guillaume Cano, Cyril Cohen, Maxime Dénès, Anders Mörtberg and Vincent Siles. Preprint, 2014."]},{"key":"dc:relation.ispartofseries","label":"Dc Relation Ispartofseries","values":["115D96"]},{"key":"dc:type","label":"Dc Type","values":["Text"]},{"key":"dc:type.degree","label":"Dc Type Degree","values":["Doctor of Philosophy"]},{"key":"dc:type.svep","label":"Dc Type Svep","values":["Doctoral thesis"]},{"key":"thesis:defence_place","label":"Thesis Defence Place","values":["Fredagen den 12 december 2014, kl. 10:00, rum ED, EDIT byggnaden, Rännvägen 6B, Chalmers Tekniska Högskola"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Formalization of mathematics","Refinements","Constructive algebra","Type theory","Coq","SSReflect"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["eng"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.isbn","label":"ISBN","values":["978-91-982237-0-5"]},{"key":"dc:identifier.other","label":"Dc Identifier Other","values":["ITF"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["http://hdl.handle.net/2077/37325"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["The extensive use of computers in mathematics and engineering has led to an increased demand for reliability in the implementation of algorithms in computer algebra systems. One way to increase the reliability is to formally verify that the implementations satisfy the mathematical theorems stating their specification. By implementing and specifying algorithms from computer algebra inside a proof assistant both the reliability of the implementation and the computational capabilities of the proof assistant can be increased. The extensive use of computers in mathematics and engineering has led to an increased demand for reliability in the implementation of algorithms in com- puter algebra systems. One way to increase the reliability is to formally verify that the implementations satisfy the mathematical theorems stating their spe- cification. By implementing and specifying algorithms from computer algebra inside a proof assistant both the reliability of the implementation and the com- putational capabilities of the proof assistant can be increased.The extensive use of computers in mathematics and engineering has led to an increased demand for reliability in the implementation of algorithms in com- puter algebra systems. One way to increase the reliability is to formally verify that the implementations satisfy the mathematical theorems stating their spe- cification. By implementing and specifying algorithms from computer algebra inside a proof assistant both the reliability of the implementation and the com- putational capabilities of the proof assistant can be increased. This first part of the thesis presents a framework, developed in the interact- ive theorem prover C OQ , for conveniently implementing and reasoning about program and data refinements. In this framework programs defined on rich dependent types suitable for proofs are linked to optimized implementations on simple types suitable for computation. The correctness of the optimized algorithms is established on the proof-oriented types and then automatically transported to the computation-oriented types. This method has been ap- plied to develop a library containing multiple algorithms from computational algebra, including: Karatsuba’s polynomial multiplication, Strassen’s matrix multiplication and the Sasaki-Murao algorithm for computing the character- istic polynomial of matrices over commutative rings. The second part of the thesis presents the formalization of notions from constructive algebra. Focus is on the theory of coherent and strongly discrete rings, which provides a general setting for developing linear algebra over rings instead of fields. Examples of such rings include Bézout domains, Prüfer do- mains and elementary divisor rings. Finitely presented modules over these rings are implemented using an abstraction layer on top of matrices. This enables us to constructively prove that the category of these modules form a suitable setting for developing homological algebra. We further show that any finitely presented module over an elementary divisor ring can be decomposed to a direct sum of a free module and cyclic modules in a unique way. This first part of the thesis presents a framework, developed in the interactive theorem prover Coq, for conveniently implementing and reasoning about program and data refinements. In this framework programs defined on rich dependent types suitable for proofs are linked to optimized implementations on simple types suitable for computation. The correctness of the optimized algorithms is established on the proof-oriented types and then automatically transported to the computation-oriented types. This method has been applied to develop a library containing multiple algorithms from computational algebra, including: Karatsuba’s polynomial multiplication, Strassen’s matrix multiplication and the Sasaki-Murao algorithm for computing the characteristic polynomial of matrices over commutative rings. The second part of the thesis presents the formalization of notions from constructive algebra. Focus is on the theory of coherent and strongly discrete rings, which provides a general setting for developing linear algebra over rings instead of fields. Examples of such rings include Bézout domains, Prüfer domains and elementary divisor rings. Finitely presented modules over these rings are implemented using an abstraction layer on top of matrices. This enables us to constructively prove that the category of these modules form a suitable setting for developing homological algebra. We further show that any finitely presented module over an elementary divisor ring can be decomposed to a direct sum of a free module and cyclic modules in a unique way. This decomposition gives a decision procedure for testing if two finitely presented modules are isomorphic."]},{"key":"dc:title","label":"Title","values":["Formalizing Refinements and Constructive Algebra in Type Theory"]},{"key":"local:contributor.affiliation","label":"Local Contributor Affiliation","values":["Göteborgs universitet. IT-fakulteten"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.department":["Department of Computer Science and Engineering ; Institutionen för data- och informationsteknik"],"dc:creator":["Mörtberg, Anders"],"dc:date.accessioned":["2014-11-21T09:48:05Z"],"dc:date.available":["2014-11-21T09:48:05Z"],"dc:date.defence":["2014-12-12"],"dc:date.issued":["2014-11-21"],"dc:description.abstract":["The extensive use of computers in mathematics and engineering has led to an increased demand for reliability in the implementation of algorithms in computer algebra systems. One way to increase the reliability is to formally verify that the implementations satisfy the mathematical theorems stating their specification. By implementing and specifying algorithms from computer algebra inside a proof assistant both the reliability of the implementation and the computational capabilities of the proof assistant can be increased. The extensive use of computers in mathematics and engineering has led to an increased demand for reliability in the implementation of algorithms in com- puter algebra systems. One way to increase the reliability is to formally verify that the implementations satisfy the mathematical theorems stating their spe- cification. By implementing and specifying algorithms from computer algebra inside a proof assistant both the reliability of the implementation and the com- putational capabilities of the proof assistant can be increased.The extensive use of computers in mathematics and engineering has led to an increased demand for reliability in the implementation of algorithms in com- puter algebra systems. One way to increase the reliability is to formally verify that the implementations satisfy the mathematical theorems stating their spe- cification. By implementing and specifying algorithms from computer algebra inside a proof assistant both the reliability of the implementation and the com- putational capabilities of the proof assistant can be increased. This first part of the thesis presents a framework, developed in the interact- ive theorem prover C OQ , for conveniently implementing and reasoning about program and data refinements. In this framework programs defined on rich dependent types suitable for proofs are linked to optimized implementations on simple types suitable for computation. The correctness of the optimized algorithms is established on the proof-oriented types and then automatically transported to the computation-oriented types. This method has been ap- plied to develop a library containing multiple algorithms from computational algebra, including: Karatsuba’s polynomial multiplication, Strassen’s matrix multiplication and the Sasaki-Murao algorithm for computing the character- istic polynomial of matrices over commutative rings. The second part of the thesis presents the formalization of notions from constructive algebra. Focus is on the theory of coherent and strongly discrete rings, which provides a general setting for developing linear algebra over rings instead of fields. Examples of such rings include Bézout domains, Prüfer do- mains and elementary divisor rings. Finitely presented modules over these rings are implemented using an abstraction layer on top of matrices. This enables us to constructively prove that the category of these modules form a suitable setting for developing homological algebra. We further show that any finitely presented module over an elementary divisor ring can be decomposed to a direct sum of a free module and cyclic modules in a unique way. This first part of the thesis presents a framework, developed in the interactive theorem prover Coq, for conveniently implementing and reasoning about program and data refinements. In this framework programs defined on rich dependent types suitable for proofs are linked to optimized implementations on simple types suitable for computation. The correctness of the optimized algorithms is established on the proof-oriented types and then automatically transported to the computation-oriented types. This method has been applied to develop a library containing multiple algorithms from computational algebra, including: Karatsuba’s polynomial multiplication, Strassen’s matrix multiplication and the Sasaki-Murao algorithm for computing the characteristic polynomial of matrices over commutative rings. The second part of the thesis presents the formalization of notions from constructive algebra. Focus is on the theory of coherent and strongly discrete rings, which provides a general setting for developing linear algebra over rings instead of fields. Examples of such rings include Bézout domains, Prüfer domains and elementary divisor rings. Finitely presented modules over these rings are implemented using an abstraction layer on top of matrices. This enables us to constructively prove that the category of these modules form a suitable setting for developing homological algebra. We further show that any finitely presented module over an elementary divisor ring can be decomposed to a direct sum of a free module and cyclic modules in a unique way. This decomposition gives a decision procedure for testing if two finitely presented modules are isomorphic."],"dc:identifier.isbn":["978-91-982237-0-5"],"dc:identifier.other":["ITF"],"dc:identifier.uri":["http://hdl.handle.net/2077/37325"],"dc:language.iso":["eng"],"dc:relation.haspart":["A Refinement-Based Approach to Computational Algebra in Coq. Maxime Dénès, Anders Mörtberg and Vincent Siles. In Interactive Theorem Proving, volume 7406 of Lectures Notes in Computer Science, pages 83–98. Springer, 2012.","Refinements for free!. Cyril Cohen, Maxime Dénès and Anders Mörtberg. In Certified Programs and Proofs, volume 8307 of Lecture Notes in Computer Science, pages 147–162. Springer, 2013.","A Formal Proof of Sasaki-Murao Algorithm. Thierry Coquand, Anders Mörtberg and Vincent Siles. Journal of Formalized Reasoning, 5(1):27–36, 2012.","Coherent and Strongly Discrete Rings in Type Theory. Thierry Coquand, Anders Mörtberg and Vincent Siles. In Certified Programs and Proofs, volume 7679 of Lecture Notes in Computer Science, pages 273–288. Springer, 2012.","A Coq Formalization of Finitely Presented Modules. Cyril Cohen and Anders Mörtberg. In Interactive Theorem Proving, volume 8558 of Lecture Notes in Computer Science, pages 193–208. Springer, 2014.","Formalized Linear Algebra over Elementary Divisor Rings in Coq. Guillaume Cano, Cyril Cohen, Maxime Dénès, Anders Mörtberg and Vincent Siles. Preprint, 2014."],"dc:relation.ispartofseries":["115D96"],"dc:subject":["Formalization of mathematics","Refinements","Constructive algebra","Type theory","Coq","SSReflect"],"dc:title":["Formalizing Refinements and Constructive Algebra in Type Theory"],"dc:type":["Text"],"dc:type.degree":["Doctor of Philosophy"],"dc:type.svep":["Doctoral thesis"],"local:contributor.affiliation":["Göteborgs universitet. IT-fakulteten"],"others:access_status":["open.access"],"person:email":["anders.mortberg@cse.gu.se"],"thesis:defence_place":["Fredagen den 12 december 2014, kl. 10:00, rum ED, EDIT byggnaden, Rännvägen 6B, Chalmers Tekniska Högskola"]},"updated_at":"2026-11-26T03:07:21Z"}