Formalization of Mathematics: why Algebraic Topology?

Similar documents
Homological Processing of Biomedical digital images: automation and certification 1

Certifying homological algorithms to study biomedical images

Neuronal structure detection using Persistent Homology

Computing the homology of groups: the geometric way

Deduction and Computation in Algebraic Topology

Constructive Algebra in Type Theory

Univalent Foundations and Set Theory

Discrete Vector Fields and Fundamental Algebraic Topology.

Formal methods in mathematics

Computer Proof Assistants and Univalent Foundations of Mathematics

Toward a new formalization of real numbers

TESIS DOCTORAL. Homología efectiva y sucesiones espectrales. Ana Romero Ibáñez

Rank Nullity Theorem of Linear Algebra

Automated theorem proving in algebra

Interactive Theorem Provers

Agent-Based HOL Reasoning 1

Interactive Theorem Proving in Industry

Formalisation and execution of Linear Algebra: theorems and algorithms

Introduction to type theory and homotopy theory

1 / A bird s-eye view of type theory. 2 A bird s-eye view of homotopy theory. 3 Path spaces and identity types. 4 Homotopy type theory

Formalizing Elementary Divisor Rings in Coq

Computing Spectral Sequences

Rational Hopf G-spaces with two nontrivial homotopy group systems

Math 6802 Algebraic Topology II

OPEN QUESTIONS RELATED TO A -STRUCTURES IN A COMPUTATIONAL FRAMEWORK

110:615 algebraic topology I

Mirror Reflections on Braids and the Higher Homotopy Groups of the 2-sphere

Constructive Homological Algebra and Applications

Functional programs that prove theorems about spaces

NON FORMAL COMPACT MANIFOLDS WITH SMALL BETTI NUMBERS

Grothendieck duality for affine M 0 -schemes.

Higher toposes Internal logic Modalities Sub- -toposes Formalization. Modalities in HoTT. Egbert Rijke, Mike Shulman, Bas Spitters 1706.

REGULAR-MT: A Formal Proof of the Computation of Hermite Normal Form In a General Setting

ON THE HOMOTOPY TYPE OF INFINITE STUNTED PROJECTIVE SPACES FREDERICK R. COHEN* AND RAN LEVI

CELLULAR HOMOLOGY AND THE CELLULAR BOUNDARY FORMULA. Contents 1. Introduction 1

7.3 Singular Homology Groups

HOMOLOGY THEORIES INGRID STARKEY

Formal verification for numerical methods

DISCRETIZED CONFIGURATIONS AND PARTIAL PARTITIONS

Homotopy Type Theory: Unified Foundations of Mathematics and Computation (MURI Proposal)

Topological Data Analysis - Spring 2018

BERTRAND GUILLOU. s G q+r

Formalizing Mathematics

0, otherwise Furthermore, H i (X) is free for all i, so Ext(H i 1 (X), G) = 0. Thus we conclude. n i x i. i i

Towards a Mechanised Denotational Semantics for Modelica

An Introduction to Proof Assistants

The equivalence axiom and univalent models of type theory.

Part II. Algebraic Topology. Year

EXPLICIT l 1 -EFFICIENT CYCLES AND AMENABLE NORMAL SUBGROUPS

Rewriting Systems and Discrete Morse Theory

MATH 215B HOMEWORK 4 SOLUTIONS

Automated Proving in Geometry using Gröbner Bases in Isabelle/HOL

CSE 20 DISCRETE MATH SPRING

Simplicial Homology. Simplicial Homology. Sara Kališnik. January 10, Sara Kališnik January 10, / 34

The Hurewicz Theorem

On divisibility in definable groups

Dependent type theory

CHEVALLEY-EILENBERG HOMOLOGY OF CROSSED MODULES OF LIE ALGEBRAS IN LOWER DIMENSIONS

A Z q -Fan theorem. 1 Introduction. Frédéric Meunier December 11, 2006

Madhya Pradesh Bhoj (Open) University, Bhopal

Loop Groups and Lie 2-Algebras

Programming with Higher Inductive Types

Math 757 Homology theory

Exercise: Consider the poset of subsets of {0, 1, 2} ordered under inclusion: Date: July 15, 2015.

Elliott s program and descriptive set theory I

Recent progress in Homotopy type theory

Math Homotopy Theory Hurewicz theorem

Applications of geometry to modular representation theory. Julia Pevtsova University of Washington, Seattle

ON AXIOMATIC HOMOLOGY THEORY

Introduction (Lecture 1)

Classification of (n 1)-connected 2n-dimensional manifolds and the discovery of exotic spheres

ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes)

Write your own Theorem Prover

Realization problems in algebraic topology

(communicated by James Stasheff)

Homotopy Type Theory

Mechanized Proof of Buchberger s Algorithm in ACL2

A CLOSED MODEL CATEGORY FOR (n 1)-CONNECTED SPACES

58 CHAPTER 2. COMPUTATIONAL METHODS

Interactive Theorem Proving

An Intuitive Introduction to Motivic Homotopy Theory Vladimir Voevodsky

Lecture 1. Toric Varieties: Basics

C(K) = H q+n (Σ n K) = H q (K)

Higher Categories, Homotopy Theory, and Applications

Neural Codes and Neural Rings: Topology and Algebraic Geometry

Nonabelian Poincare Duality (Lecture 8)

What s category theory, anyway? Dedicated to the memory of Dietmar Schumacher ( )

ON ORTHOGONAL PAIRS IN CATEGORIES AND LOCALISATION

Proof assistants as a tool for thought

Algebraic Topology Exam 2006: Solutions

Manifolds and Poincaré duality

3. Prove or disprove: If a space X is second countable, then every open covering of X contains a countable subcollection covering X.

The Steenrod algebra

Introduction. Pedro Cabalar. Department of Computer Science University of Corunna, SPAIN 2013/2014

Crystals, Chemistry, and Space Groups

Math 6510 Homework 11

Formalizing Kruskal s Tree Theorem in Isabelle/HOL

HOMEWORK FOR SPRING 2014 ALGEBRAIC TOPOLOGY

Directed Topology and Concurrency Theory.

Arithmetic in Metamath. Case Study: Bertrand s Postulate

Transcription:

Formalization of Mathematics: why Algebraic Topology? Julio Rubio Universidad de La Rioja Departamento de Matemáticas y Computación MAP Spring School 2012 Sophia Antipolis, March 12th-16th, 2012 Partially supported by Ministerio de Educación y Ciencia, project MTM2009-13842-C02-01, and by European Commission FP7, STREP project ForMath, n. 243847. Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 1 / 27

Summary Reasons to formalize mathematics. The Kenzo program. Homological processing of biomedical images. A multitool approach. Formalizing with Isabelle/HOL. Formalizing with ACL2. Formalizing with Coq/SSReflect. Conclusions and future work. Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 2 / 27

Reasons to formalize mathematics Internal to the proving tools: Checking expressiveness, testing, and so on. Internal to mathematics: Foundations: Voevodsky s univalent foundations Challenge: Gonthier on the classification of groups Checking the correctness of a (computer) proof Hales on the Kepler conjecture Gonthier on the Four Color theorem Applications: Verification of (mathematical) software (Verification of hardware and software) Reliable numerics: Spitters on computational analysis Programs difficult to test Programs for real-life problems Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 3 / 27

Reasons to formalize mathematics Internal to the proving tools: Checking expressiveness, testing, and so on. Internal to mathematics: Foundations: Voevodsky s univalent foundations Challenge: Gonthier on the classification of groups Checking the correctness of a (computer) proof Hales on the Kepler conjecture Gonthier on the Four Color theorem Applications: Verification of (mathematical) software (Verification of hardware and software) Reliable numerics: Spitters on computational analysis Programs difficult to test Programs for real-life problems Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 4 / 27

The Kenzo program (1/3) Algebraic Topology: the science of associating algebraic invariants with geometrical objects (topological spaces) Kenzo is a computer algebra system (created by F. Sergeraert) devoted to Algebraic Topology. Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 5 / 27

The Kenzo program (2/3) Kenzo can compute results difficult to reach by any other means. In particular, A. Romero enhanced Kenzo with an algorithm to compute the homotopy groups of suspended Eilenberg-MacLane spaces. On homotopy groups of the suspended classifying spaces Roman Mikhailov and Jie Wu Algebraic and Geometric Topology 10(2010), 565 625 Theorem 5.4: Let A 4 be the 4-th alternating group. Then π 4 (ΣK(A 4, 1)) = Z 4 Ana Romero makes Kenzo compute: π 4 (ΣK(A 4, 1)) = Z 12 Let s repeat: Mikhailov & Wu: π 4 (ΣK(A 4, 1)) = Z 4 Kenzo: π 4 (ΣK(A 4, 1)) = Z 12 Then? Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 6 / 27

The Kenzo program (3/3) In this particular case, Kenzo was right (i. e. the theorem in the paper wasn t one). In addition, Romero s program can compute more homotopy groups out of reaching by Mikhailov & Wu s techniques. Therefore: 1 Mathematics formalization... 2... for software verification... 3... for mathematics verification. Formalizing to prove π 4 (ΣK(A 4, 1)) = Z 12. To prove = To verify the correctness of a program computing it. Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 7 / 27

Homological processing of digital images (1/2) An image is represented by means of a list of lists of bits. Then we construct an associated simplicial complex (list of triangles). Homology groups are obtained by diagonalizing the incidence matrices. Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 8 / 27

Homological processing of digital images (2/2) Digital Image Simplicial Complex Incidence matrices Homology Objective Certified computation of homology groups for digital images Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 9 / 27

Application to biomedicine: Counting synapses Synapses are the points of connection between neurons. Relevance: Computational capabilities of the brain. Procedures to modify the synaptic density may be an important asset in the treatment of neurological diseases (like Alzheimer). An automated and reliable method is necessary. Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 10 / 27

Application to biomedicine: Counting synapses Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 11 / 27

Application to biomedicine: Counting synapses Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 12 / 27

Application to biomedicine: Counting synapses Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 13 / 27

Application to biomedicine: Counting synapses Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 14 / 27

Application to biomedicine: Counting synapses Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 15 / 27

Application to biomedicine: Counting synapses Counting synapses: Measure the number of connected components of the last image. Good benchmark to test our framework: computation of H0. SynapCountJ: software to measure synaptic density evolution. Therefore: 1 Mathematics formalization... 2... for software verification... 3... for real-life applications. Formalizing Algebraic Topology for Kenzo verification: How? Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 16 / 27

A multitool approach (1/2) Many proving tools are available for the formalization engineer. They differ regarding different aspects: Automated / Interactive Checkers / Provers First order / Higher order Classical / Constructive Our problem also poses different issues: Formalization of basic algebraic structures and algorithms. Verification of concrete Kenzo code. Certified execution of homological programs (different from Kenzo). Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 17 / 27

A multitool approach (2/2) Our idea is to take the best from each tool: Isabelle/HOL to formalize algorithms in a classical setting. ACL2 to verify first order fragments of Kenzo code. Coq to provide executability where first order is not enough and the constructiveness is ensured. Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 18 / 27

Mathematics: Homological Algebra (1/3) A chain complex is {(C n, d n )} n Z, where each C n is an abelian group, and each d n : C n C n 1 is a homomorphism satisfying d n d n+1 = 0, n Z. Homology groups: H n (C, d) := Ker(d n )/Im(d n+1 ). Given two chain complexes {(C n, d n )} n Z and {(C n, d n)} n Z, a chain morphism between them is a family f of group homomorphisms f n : C n C n, n Z satisfying d n f n = f n 1 d n, n Z. Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 19 / 27

Mathematics: Homological Algebra (2/3) Given two chain complexes C := {(C n, d n )} n Z and C := {(C n, d n)} n Z a reduction between them is (f, g, h) where f : C C and g : C C are chain morphisms and h is a family of homomorphisms (called homotopy operator) h n : C n C n+1. satisfying 1 f g = 1 2 d h + h d + g f = 1 3 f h = 0 4 h g = 0 5 h h = 0 If (f, g, h) : C C is a reduction, then H(C) = H(C ). Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 20 / 27

Mathematics: Homological Algebra (3/3) Given a chain complex (C, d), a perturbation for it is a family ρ of group homomorphisms ρ n : C n C n 1 such that (C, d + ρ) is again a chain complex (that is to say: (d + ρ) (d + ρ) = 0). A reduction (f, g, h) : (C, d) (C, d ) and a perturbation ρ for (C, d) are locally nilpotent if x C n, m N such that (h ρ) m (x) = 0. Basic Perturbation Lemma Let (f, g, h) : (C, d) (C, d ) be a reduction and be ρ a perturbation for (C, d) which are locally nilpotent. Then there exists a reduction (f, g, h ) : (C, d + ρ) (C, d ). Basic Perturbation Lemma Algorithm Given a chain complex (C, d) with effective homology and ρ a perturbation for it satisfying the local nilpotence condition, then (C, d + ρ) is a chain complex with effective homology. Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 21 / 27

Formalizing with Isabelle/HOL Isabelle/HOL is an interactive theorem proving environment. Higher Order Logic (HOL) allows the modeller to translate the by hand proofs to the computer, in a quite direct way. First milestone: Jesús Aransay s proof of the Basic Perturbation Lemma in Isabelle/HOL. Isabelle statement: theorem (in BPL) BPL: shows reduction D ( carrier = carrier C, mult = mult C, one = one C, diff = (λx. if x carrier C then (differ C ) x C (f δ Ψ g) x else 1 C ) ) (f Φ) (Ψ g) (h Φ) Further challenge: program extraction. Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 22 / 27

Formalizing with ACL2 (1/3) ACL2 = A Computational Logic for Applicative Common Lisp (ACL 2 ). ACL2 is: A programming language (an applicative subset of Common Lisp). A logic (a restricted first-order one, with few quantifiers). A theorem prover for that logic (on programs properties). Could Kenzo be verified in ACL2? ACL2 is first order...... but Kenzo intensively uses higher-order functional programming (functional coding of infinite sets). Isabelle/HOL is a higher order tool (Coq too). Pragmatic approach: ACL2 verification of first order fragments of Kenzo. Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 23 / 27

Formalizing with ACL2 (2/3) Kenzo way of working: 1 Construction of constant spaces (spheres, Moore spaces,... ): 20% 2 Construction of new spaces from other ones (cartesian products, loop spaces,... ): 60% 3 Perform some computations (homology groups): 10% Concrete Goal Verify the correctness of Kenzo constructors of constant spaces Kenzo first order logic fragments Kenzo code ACL2 Case Study Each Kenzo Simplicial Set is really a simplicial set Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 24 / 27

Formalizing with ACL2 (3/3) Definition A simplicial set K, is a union K = K q, where the K q are disjoints sets, together with functions: q 0 q : K q K q 1, i q > 0, i = 0,..., q, η q : K q K q+1, i q 0, i = 0,..., q, subject to the relations: (1) q 1 q i j (2) η q+1 η q i j (3) q+1 i (4) q+1 i (5) q+1 i η q j η q i η q j = q 1 j 1 q i = η q+1 j+1 ηq i if i < j, if i j, = η q 1 j 1 q i if i < j, = identity = q+1 = η q 1 q j i 1 i+1 ηq i, if i > j + 1, Generic Simplicial Set Theory (J. Heras, on previous work by F. J. Martín-Mateos) From 4 definitions and 4 theorems Instantiates 3 definitions and 7 theorems The proof of the 7 theorems involves: 92 definitions and 969 theorems The proof effort is considerably reduced Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 25 / 27

Formalizing with Coq/SSReflect From digital images to homology in Coq: First order structures: possible also in ACL2. But... finite structures: all the power of SSReflect. Joint work inside the ForMath project: J. Heras, M. Dénès, G. Mata, A. Mörtberg, M. Poza, V. Siles,... Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 26 / 27

Conclusions and future work Conclusions Algebraic Topology is a good place to formalization The subject is rich enough (challenging tools and mathematics). We have a program difficult to test (Kenzo). We have a program with real-life applications (biomedical images). In our context (software verification), executability is important. Automation is necessary. Big endeavor, team work is mandatory. Future work From execution to efficient execution. Better algorithms (more math, more difficult to prove). Improving running environments in the proving tools. Interoperability among the proving tools. Julio Rubio (Universidad de La Rioja) Formalization of Algebraic Topology 27 / 27