Formal libraries for Algebraic Topology: status report 1 ForMath La - - PowerPoint PPT Presentation

formal libraries for algebraic topology status
SMART_READER_LITE
LIVE PREVIEW

Formal libraries for Algebraic Topology: status report 1 ForMath La - - PowerPoint PPT Presentation

Formal libraries for Algebraic Topology: status report 1 ForMath La Rioja node (J onathan Heras) Departamento de Matem aticas y Computaci on Universidad de La Rioja Spain Mathematics, Algorithms and Proofs 2010 November 10, 2010


slide-1
SLIDE 1

Formal libraries for Algebraic Topology: status report1

ForMath La Rioja node (J´

  • nathan Heras)

Departamento de Matem´ aticas y Computaci´

  • n

Universidad de La Rioja Spain

Mathematics, Algorithms and Proofs 2010 November 10, 2010

1Partially supported by Ministerio de Educaci´

  • n y Ciencia, project MTM2009-13842-C02-01, and by European

Commission FP7, STREP project ForMath ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 1/46

slide-2
SLIDE 2

Contributors

Local Contributors:

Jes´ us Aransay C´ esar Dom´ ınguez J´

  • nathan Heras

Laureano Lamb´ an Vico Pascual Mar´ ıa Poza Julio Rubio

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 2/46

slide-3
SLIDE 3

Contributors

Local Contributors:

Jes´ us Aransay C´ esar Dom´ ınguez J´

  • nathan Heras

Laureano Lamb´ an Vico Pascual Mar´ ıa Poza Julio Rubio

Contributors from INRIA - Sophia:

Yves Bertot Maxime D´ en` es Laurence Rideau

Contributors from Universidad de Sevilla:

Francisco Jes´ us Mart´ ın Mateos Jos´ e Luis Ruiz Reina

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 2/46

slide-4
SLIDE 4

Goal

Formalization of libraries for Algebraic Topology

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 3/46

slide-5
SLIDE 5

Goal

Formalization of libraries for Algebraic Topology

Application: Study of digital images

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 3/46

slide-6
SLIDE 6

Applying topological concepts to analyze images

  • F. S´

egonne, E. Grimson, and B. Fischl. Topological Correction of Subcortical Segmentation. International Conference on Medical Image Computing and Computer Assisted Intervention, MICCAI 2003, LNCS 2879, Part 2, pp. 695-702. ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 4/46

slide-7
SLIDE 7

Table of Contents

1

Mathematical concepts

2

Computing in Algebraic Topology

3

Formalizing Algebraic Topology

4

Incidence simplicial matrices formalized in SSReflect

5

Conclusions and Further Work

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 5/46

slide-8
SLIDE 8

Mathematical concepts

Table of Contents

1

Mathematical concepts

2

Computing in Algebraic Topology

3

Formalizing Algebraic Topology

4

Incidence simplicial matrices formalized in SSReflect

5

Conclusions and Further Work

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 6/46

slide-9
SLIDE 9

Mathematical concepts

From General Topology to Algebraic Topology

Digital Image interpreting Topological Space Simplicial Complex Chain Complex Homology triangulation algebraic structure computing interpreting simplification

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 7/46

slide-10
SLIDE 10

Mathematical concepts

From General Topology to Algebraic Topology

Digital Image interpreting Topological Space Simplicial Complex Chain Complex Homology triangulation algebraic structure computing interpreting simplification

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 7/46

slide-11
SLIDE 11

Mathematical concepts

From General Topology to Algebraic Topology

Digital Image interpreting Topological Space Simplicial Complex Chain Complex Homology triangulation algebraic structure computing interpreting simplification

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 7/46

slide-12
SLIDE 12

Mathematical concepts

From General Topology to Algebraic Topology

Digital Image interpreting Topological Space Simplicial Complex Chain Complex Homology triangulation algebraic structure computing interpreting simplification

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 7/46

slide-13
SLIDE 13

Mathematical concepts

From General Topology to Algebraic Topology

Digital Image interpreting Topological Space Simplicial Complex Chain Complex Homology triangulation algebraic structure computing interpreting simplification

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 7/46

slide-14
SLIDE 14

Mathematical concepts

From General Topology to Algebraic Topology

Digital Image interpreting Topological Space Simplicial Complex Chain Complex Homology triangulation algebraic structure computing interpreting simplification

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 7/46

slide-15
SLIDE 15

Mathematical concepts

From General Topology to Algebraic Topology

Digital Image interpreting Topological Space Simplicial Complex Chain Complex Homology triangulation algebraic structure computing interpreting simplification

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 7/46

slide-16
SLIDE 16

Mathematical concepts

Simplicial Complexes

Digital Image Simplicial Complex Chain Complex Homology simplification

Definition Let V be an ordered set, called the vertex set. A simplex over V is any finite subset of V .

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 8/46

slide-17
SLIDE 17

Mathematical concepts

Simplicial Complexes

Digital Image Simplicial Complex Chain Complex Homology simplification

Definition Let V be an ordered set, called the vertex set. A simplex over V is any finite subset of V . Definition Let α and β be simplices over V , we say α is a face of β if α is a subset of β.

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 8/46

slide-18
SLIDE 18

Mathematical concepts

Simplicial Complexes

Digital Image Simplicial Complex Chain Complex Homology simplification

Definition Let V be an ordered set, called the vertex set. A simplex over V is any finite subset of V . Definition Let α and β be simplices over V , we say α is a face of β if α is a subset of β. Definition An ordered (abstract) simplicial complex over V is a set of simplices K over V satisfying the property: ∀α ∈ K, if β ⊆ α ⇒ β ∈ K Let K be a simplicial complex. Then the set Sn(K) of n-simplices of K is the set made

  • f the simplices of cardinality n + 1.

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 8/46

slide-19
SLIDE 19

Mathematical concepts

Simplicial Complexes

Digital Image Simplicial Complex Chain Complex Homology simplification

1 2 3 4 5 6

V = (0, 1, 2, 3, 4, 5, 6) K = {∅, (0), (1), (2), (3), (4), (5), (6), (0, 1), (0, 2), (0, 3), (1, 2), (1, 3), (2, 3), (3, 4), (4, 5), (4, 6), (5, 6), (0, 1, 2), (4, 5, 6)}

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 9/46

slide-20
SLIDE 20

Mathematical concepts

Simplicial Complexes

Digital Image Simplicial Complex Chain Complex Homology simplification

Definition The facets of a simplicial complex K are the maximal simplices of the simplicial complex.

1 2 3 4 5 6

The facets are: {(0, 3), (1, 3), (2, 3), (3, 4), (0, 1, 2), (4, 5, 6)}

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 10/46

slide-21
SLIDE 21

Mathematical concepts

Chain Complexes

Digital Image Simplicial Complex Chain Complex Homology simplification

Definition A chain complex C∗ is a pair of sequences C∗ = (Cq, dq)q∈Z where: For every q ∈ Z, the component Cq is an R-module, the chain group of degree q For every q ∈ Z, the component dq is a module morphism dq : Cq → Cq−1, the differential map For every q ∈ Z, the composition dqdq+1 is null: dqdq+1 = 0

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 11/46

slide-22
SLIDE 22

Mathematical concepts

Homology

Digital Image Simplicial Complex Chain Complex Homology simplification

Definition If C∗ = (Cq, dq)q∈Z is a chain complex: The image Bq = im dq+1 ⊆ Cq is the (sub)module of q-boundaries The kernel Zq = ker dq ⊆ Cq is the (sub)module of q-cycles Given a chain complex C∗ = (Cq, dq)q∈Z: dq−1 ◦ dq = 0 ⇒ Bq ⊆ Zq Every boundary is a cycle The converse is not generally true

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 12/46

slide-23
SLIDE 23

Mathematical concepts

Homology

Digital Image Simplicial Complex Chain Complex Homology simplification

Definition If C∗ = (Cq, dq)q∈Z is a chain complex: The image Bq = im dq+1 ⊆ Cq is the (sub)module of q-boundaries The kernel Zq = ker dq ⊆ Cq is the (sub)module of q-cycles Given a chain complex C∗ = (Cq, dq)q∈Z: dq−1 ◦ dq = 0 ⇒ Bq ⊆ Zq Every boundary is a cycle The converse is not generally true Definition Let C∗ = (Cq, dq)q∈Z be a chain complex. For each degree n ∈ Z, the n-homology module of C∗ is defined as the quotient module Hn(C∗) = Zn Bn

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 12/46

slide-24
SLIDE 24

Mathematical concepts

From Simplicial Complexes to Chain Complexes

Digital Image Simplicial Complex Chain Complex Homology simplification

Definition Let K be an (ordered abstract) simplicial complex. Let n ≥ 1 and 0 ≤ i ≤ n be two integers n and i. Then the face operator ∂n

i is the linear map ∂n i : Sn(K) → Sn−1(K)

defined by: ∂n

i ((v0, . . . , vn)) = (v0, . . . , vi−1, vi+1, . . . , vn).

The i-th vertex of the simplex is removed, so that an (n − 1)-simplex is obtained. Definition Let K be a simplicial complex. Then the chain complex C∗(K) canonically associated with K is defined as follows. The chain group Cn(K) is the free Z module generated by the n-simplices of K. In addition, let (v0, . . . , vn−1) be a n-simplex of K, the differential of this simplex is defined as: dn :=

n

  • i=0

(−1)i∂n

i ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 13/46

slide-25
SLIDE 25

Mathematical concepts

Simplification: Perturbation techniques

Digital Image Simplicial Complex Chain Complex Homology simplification

Definition A reduction ρ between two chain complexes C∗ y D∗ (denoted by ρ : C∗ ⇒ ⇒ D∗) is a triple ρ = (f , g, h) C∗

h

  • f

D∗

g

  • satisfying the following relations:

1) fg = IdD∗; 2) dC h + hdC = IdC∗ −gf ; 3) fh = 0; hg = 0; hh = 0. Theorem If C∗ ⇒ ⇒ D∗, then C∗ ∼ = D∗ ⊕ A∗, with A∗ acyclic, which implies that Hn(C∗) ∼ = Hn(D∗) for all n.

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 14/46

slide-26
SLIDE 26

Mathematical concepts

Simplification: Perturbation techniques

Digital Image Simplicial Complex Chain Complex Homology simplification

Reduction (C∗, dC∗)

h

  • f
  • (D∗, dD∗ + δ1)

(D∗, dD∗)

g

  • ForMath La Rioja node (J. Heras)

Formal libraries for Algebraic Topology 15/46

slide-27
SLIDE 27

Mathematical concepts

Simplification: Perturbation techniques

Digital Image Simplicial Complex Chain Complex Homology simplification

EPL Reduction (C∗, dC∗ + δ1)

h1

  • f 1
  • (C∗, dC∗)

h

  • f
  • (D∗, dD∗ + δ1)

g1

  • (D∗, dD∗)

g

  • δ1
  • Easy Perturbation Lemma (EPL)

Basic Perturbation Lemma (BPL)

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 15/46

slide-28
SLIDE 28

Mathematical concepts

Simplification: Perturbation techniques

Digital Image Simplicial Complex Chain Complex Homology simplification

EPL Reduction BPL (C∗, dC∗ + δ1)

h1

  • f 1
  • (C∗, dC∗)

h

  • f
  • δ2

(C∗, dC∗ + δ2)

h2

  • f 2
  • (D∗, dD∗ + δ1)

g1

  • (D∗, dD∗)

g

  • δ1
  • (D∗, dD∗ +

δ2)

g2

  • Easy Perturbation Lemma (EPL)

Basic Perturbation Lemma (BPL)

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 15/46

slide-29
SLIDE 29

Mathematical concepts

Simplification: Discrete Morse Theory

Digital Image Simplicial Complex Chain Complex Homology simplification

Discrete Morse Theory:

Discrete vector fields DVF

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 16/46

slide-30
SLIDE 30

Mathematical concepts

Simplification: Discrete Morse Theory

Digital Image Simplicial Complex Chain Complex Homology simplification

Discrete Morse Theory:

Discrete vector fields DVF Critical cells

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 16/46

slide-31
SLIDE 31

Mathematical concepts

Simplification: Discrete Morse Theory

Digital Image Simplicial Complex Chain Complex Homology simplification

Discrete Morse Theory:

Discrete vector fields DVF Critical cells From a chain complex C∗ and a DVF V on C∗ constructs a reduction from C∗ to C c

where generators of C c

∗ are the critical cells of C∗ with respect

to V

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 16/46

slide-32
SLIDE 32

Mathematical concepts

Simplification: Discrete Morse Theory

Digital Image Simplicial Complex Chain Complex Homology simplification

Discrete Morse Theory:

Discrete vector fields DVF Critical cells From a chain complex C∗ and a DVF V on C∗ constructs a reduction from C∗ to C c

where generators of C c

∗ are the critical cells of C∗ with respect

to V

  • R. Forman. Morse theory for cell complexes. Advances in Mathematics, 134:90-145, 1998.
  • A. Romero, F. Sergeraert. Discrete Vector Fields and Fundamental Algebraic Topology.

http://arxiv.org/abs/1005.5685. ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 16/46

slide-33
SLIDE 33

Mathematical concepts

Computing

Digital Image Simplicial Complex Chain Complex Homology simplification

Computing Homology groups:

From a Chain Complex (Cn, dn)n∈Z of finite type

dn can be expressed as matrices Homology groups are obtained from a diagonalization process

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 17/46

slide-34
SLIDE 34

Mathematical concepts

Computing

Digital Image Simplicial Complex Chain Complex Homology simplification

Computing Homology groups:

From a Chain Complex (Cn, dn)n∈Z of finite type

dn can be expressed as matrices Homology groups are obtained from a diagonalization process

From a Chain Complex (Cn, dn)n∈Z of non finite type

Effective Homology Theory Reductions

  • J. Rubio and F. Sergeraert. Constructive Algebraic Topology, Bulletin des Sciences Math´

ematiques, 126:389-412, 2002. ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 17/46

slide-35
SLIDE 35

Mathematical concepts

Digital Images

Digital Image Simplicial Complex Chain Complex Homology simplification

2D digital images: elements are pixels 3D digital images: elements are voxels

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 18/46

slide-36
SLIDE 36

Mathematical concepts

From a digital image to simplicial complexES

Digital Image Simplicial Complex Chain Complex Homology simplification

  • R. Ayala, E. Dom´

ınguez, A.R. Franc´ es, A. Quintero. Homotopy in digital spaces. Discrete Applied Mathematics 125 (2003) 3-24. ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 19/46

slide-37
SLIDE 37

Computing in Algebraic Topology

Table of Contents

1

Mathematical concepts

2

Computing in Algebraic Topology

3

Formalizing Algebraic Topology

4

Incidence simplicial matrices formalized in SSReflect

5

Conclusions and Further Work

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 20/46

slide-38
SLIDE 38

Computing in Algebraic Topology

Computing in Algebraic Topology

Digital Image Simplicial Complex Chain Complex Homology triangulation graded structure computing interpreting simplification

Demonstration fKenzo: user interface for Sergeraert’s Kenzo system

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 21/46

slide-39
SLIDE 39

Formalizing Algebraic Topology

Table of Contents

1

Mathematical concepts

2

Computing in Algebraic Topology

3

Formalizing Algebraic Topology

4

Incidence simplicial matrices formalized in SSReflect

5

Conclusions and Further Work

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 22/46

slide-40
SLIDE 40

Formalizing Algebraic Topology

Formalization of Simplicial Complexes

Digital Image Simplicial Complex Chain Complex Homology simplification

Formalized in ACL2

  • J. Heras, V. Pascual and J. Rubio. ACL2 verification of Simplicial Complexes programs for the

Kenzo system. Preprint.

Formalization in Coq/SSReflect

  • Y. Bertot, L. Rideau and ForMath La Rioja node. Technical report on a SSReflect week.

http://wiki.portal.chalmers.se/cse/pmwiki.php/ForMath/ForMath. ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 23/46

slide-41
SLIDE 41

Formalizing Algebraic Topology

Formalization of Chain Complexes

Digital Image Simplicial Complex Chain Complex Homology simplification

Formalized in ACL2, Isabelle and Coq

  • L. Lamb´

an, F. J. Mart´ ın-Mateos, J. L. Ruiz-Reina and J. Rubio. When first order is enough: the case of Simplicial Topology. Preprint.

  • J. Heras and V. Pascual. An ACL2 infrastructure to formalize Kenzo Higher-Order constructors.

Preprint.

  • J. Aransay and C. Dom´

ınguez. Modelling Differential Structures in Proof Assistants: The Graded

  • Case. In Proceedings 12th International Conference on Computer Aided Systems Theory

(EUROCAST’2009), volume 5717 of Lecture Notes in Computer Science, pages 203–210, 2009. ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 24/46

slide-42
SLIDE 42

Formalizing Algebraic Topology

From Simplicial Complexes to Chain Complexes

Digital Image Simplicial Complex Chain Complex Homology simplification

Simplicial Complexes → Simplicial Sets Formalized in ACL2

  • J. Heras, V. Pascual and J. Rubio, Proving with ACL2 the correctness of simplicial sets in the

Kenzo system. In LOPSTR 2010, Lecture Notes in Computer Science. Springer-Verlag. ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 25/46

slide-43
SLIDE 43

Formalizing Algebraic Topology

From Simplicial Complexes to Chain Complexes

Digital Image Simplicial Complex Chain Complex Homology simplification

Simplicial Complexes → Simplicial Sets → Chain Complexes Formalized in ACL2

  • J. Heras, V. Pascual and J. Rubio, Proving with ACL2 the correctness of simplicial sets in the

Kenzo system. In LOPSTR 2010, Lecture Notes in Computer Science. Springer-Verlag.

Formalized in ACL2

  • L. Lamb´

an, F. J. Mart´ ın-Mateos, J. L. Ruiz-Reina and J. Rubio. When first order is enough: the case of Simplicial Topology. Preprint. ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 25/46

slide-44
SLIDE 44

Formalizing Algebraic Topology

Simplification: Reductions

Digital Image Simplicial Complex Chain Complex Homology simplification

C(K)

h

  • f

C N(K)

g

  • Formalized in ACL2
  • L. Lamb´

an, F. J. Mart´ ın-Mateos, J. L. Ruiz-Reina and J. Rubio. When first order is enough: the case of Simplicial Topology. Preprint. ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 26/46

slide-45
SLIDE 45

Formalizing Algebraic Topology

Simplification: Perturbation techniques

Digital Image Simplicial Complex Chain Complex Homology simplification

EPL:

Formalized in ACL2, Coq and Isabelle

  • J. Heras and V. Pascual. An ACL2 infrastructure to formalize Kenzo Higher-Order
  • constructors. Preprint.
  • J. Aransay and C. Dom´

ınguez. Modelling Differential Structures in Proof Assistants: The Graded Case. In Proceedings 12th International Conference on Computer Aided Systems Theory (EUROCAST’2009), volume 5717 of Lecture Notes in Computer Science, pages 203–210, 2009. ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 27/46

slide-46
SLIDE 46

Formalizing Algebraic Topology

Simplification: Perturbation techniques

Digital Image Simplicial Complex Chain Complex Homology simplification

EPL:

Formalized in ACL2, Coq and Isabelle

  • J. Heras and V. Pascual. An ACL2 infrastructure to formalize Kenzo Higher-Order
  • constructors. Preprint.
  • J. Aransay and C. Dom´

ınguez. Modelling Differential Structures in Proof Assistants: The Graded Case. In Proceedings 12th International Conference on Computer Aided Systems Theory (EUROCAST’2009), volume 5717 of Lecture Notes in Computer Science, pages 203–210, 2009.

BPL:

Formalized in Isabelle/HOL

  • J. Aransay, C. Ballarin and J. Rubio. A mechanized proof of the Basic Perturbation Lemma.

Journal of Automated Reasoning, 40(4):271–292, 2008.

Formalization of Bicomplexes in Coq

  • C. Dom´

ınguez and J. Rubio. Effective Homology of Bicomplexes, formalized in Coq. To appear in Theoretical Computer Science. ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 27/46

slide-47
SLIDE 47

Formalizing Algebraic Topology

Simplification: Discrete Morse Theory

Digital Image Simplicial Complex Chain Complex Homology simplification

Formalization of Discrete Morse Theory:

Work in progress

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 28/46

slide-48
SLIDE 48

Formalizing Algebraic Topology

Homology Groups

Digital Image Simplicial Complex Chain Complex Homology simplification

Formalization of Discrete Morse Theory:

Work in progress

Formalization of Homology groups:

Future Work

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 28/46

slide-49
SLIDE 49

Formalizing Algebraic Topology

Formalization of digital images

Digital Image Simplicial Complex Chain Complex Homology simplification

2D digital images:

Binary matrix

f f t t Formalized in Coq:

  • R. O’Connor. A Computer Verified Theory of Compact Sets. In SCSS 2008, RISC Linz Report Series.

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 29/46

slide-50
SLIDE 50

Formalizing Algebraic Topology

From Digital Images to Simplicial Complexes

Digital Image Simplicial Complex Chain Complex Homology simplification

Elements of digital images Facets of a Simplicial Complex

Future work

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 30/46

slide-51
SLIDE 51

Incidence simplicial matrices formalized in SSReflect

Table of Contents

1

Mathematical concepts

2

Computing in Algebraic Topology

3

Formalizing Algebraic Topology

4

Incidence simplicial matrices formalized in SSReflect

5

Conclusions and Further Work

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 31/46

slide-52
SLIDE 52

Incidence simplicial matrices formalized in SSReflect

From Simplicial Complexes to Homology

Simplicial Complex Chain Complex Homology Incidence Matrices graded structure computing differential

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 32/46

slide-53
SLIDE 53

Incidence simplicial matrices formalized in SSReflect

SSReflect

SSReflect:

Extension of Coq Developed while formalizing the Four Color Theorem Provides new libraries:

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 33/46

slide-54
SLIDE 54

Incidence simplicial matrices formalized in SSReflect

SSReflect

SSReflect:

Extension of Coq Developed while formalizing the Four Color Theorem Provides new libraries:

matrix.v: matrix theory finset.v and fintype.v: finite set theory and finite types bigops.v: indexed “big” operations, like

n

  • i=0

f (i) or

i∈I

f (i) zmodp.v: additive group and ring Zp

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 33/46

slide-55
SLIDE 55

Incidence simplicial matrices formalized in SSReflect

Representation of Simplicial Complexes in SSReflect

Definition Let V be a finite ordered set, called the vertex set, a simplex over V is any finite subset of V .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Variable V : finType. Definition simplex := {set V}.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 34/46

slide-56
SLIDE 56

Incidence simplicial matrices formalized in SSReflect

Representation of Simplicial Complexes in SSReflect

Definition Let V be a finite ordered set, called the vertex set, a simplex over V is any finite subset of V . Definition A finite ordered (abstract) simplicial complex over V is a finite set of simplices K over V satisfying the property: ∀α ∈ K, if β ⊆ α ⇒ β ∈ K

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Variable V : finType. Definition simplex := {set V}. Definition good_sc (c : {set simplex}) := forall x, x \in c -> forall y : simplex, y \subset x -> y \in c.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 34/46

slide-57
SLIDE 57

Incidence simplicial matrices formalized in SSReflect

Incidence Matrices

Definition Let X and Y be two ordered finite sets of simplices, we call incidence matrix to a matrix m × n where m = ♯|X| ∧ n = ♯|Y |

M =      Y [1] · · · Y [n] X[1] a1,1 · · · a1,n . . . . . . ... . . . X[m] am,1 · · · am,n     

ai,j = 1 if X[i] is a face of Y [j] if X[i] is not a face of Y [j]

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 35/46

slide-58
SLIDE 58

Incidence simplicial matrices formalized in SSReflect

Incidence Matrices

Definition Let X and Y be two ordered finite sets of simplices, we call incidence matrix to a matrix m × n where m = ♯|X| ∧ n = ♯|Y |

M =      Y [1] · · · Y [n] X[1] a1,1 · · · a1,n . . . . . . ... . . . X[m] am,1 · · · am,n     

ai,j = 1 if X[i] is a face of Y [j] if X[i] is not a face of Y [j]

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Lemma lt12 : 1 < 2. Proof. by done. Qed. Definition Z2_ring := (Zp_ring lt12). Lemma p : 0 < 2. Proof. by done. Qed. Definition p_0_2 := inZp p 0. Definition p_1_2 := inZp p 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 35/46

slide-59
SLIDE 59

Incidence simplicial matrices formalized in SSReflect

Incidence Matrices

Definition Let X and Y be two ordered finite sets of simplices, we call incidence matrix to a matrix m × n where m = ♯|X| ∧ n = ♯|Y |

M =      Y [1] · · · Y [n] X[1] a1,1 · · · a1,n . . . . . . ... . . . X[m] am,1 · · · am,n     

ai,j = 1 if X[i] is a face of Y [j] if X[i] is not a face of Y [j]

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Variables Top Left:{set simplex}. Definition seq_SS (SS: {set simplex}):= enum (mem SS) : seq simplex. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 35/46

slide-60
SLIDE 60

Incidence simplicial matrices formalized in SSReflect

Incidence Matrices

Definition Let X and Y be two ordered finite sets of simplices, we call incidence matrix to a matrix m × n where m = ♯|X| ∧ n = ♯|Y |

M =      Y [1] · · · Y [n] X[1] a1,1 · · · a1,n . . . . . . ... . . . X[m] am,1 · · · am,n     

ai,j = 1 if X[i] is a face of Y [j] if X[i] is not a face of Y [j]

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Definition incidenceFunction (i j : nat) := if (nth x0 (seq_SS Left) i) \subset (nth x0 (seq_SS Top) j) then p_1_2 else p_0_2. Definition incidenceMatrix := matrix_of_fun incidenceFunction (m:=size (seq_SS Left)) (n:=size (seq_SS Top)) (R:=Z2_ring). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 35/46

slide-61
SLIDE 61

Incidence simplicial matrices formalized in SSReflect

Incidence Matrices

Definition Let C be a finite set of simplices, A be the set of n-simplices of C with an order between its elements and B the set of (n − 1)-simplices of C with an order between its elements. We call incidence matrix of dimension n (n ≥ 1), to a matrix p × q where p = ♯|B| ∧ q = ♯|A| Mi,j = 1 if B[i] is a face of A[j] if B[i] is not a face of A[j]

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Variable c: {set simplex}. Variable n:nat. Definition top_n := [set x \in c | #|x| == n+1] : {set simplex}. Definition left_n_1 := [set x \in c | #|x| == n] : {set simplex}. Definition incidence_matrix_n := incidenceMatrix top_n left_n_1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 36/46

slide-62
SLIDE 62

Incidence simplicial matrices formalized in SSReflect

Incidence Matrices of Simplicial Complexes

1 2 3 4 5 6

         (0, 1) (0, 2) (0, 3) (1, 2) (1, 3) (2, 3) (3, 4) (4, 5) (4, 6) (5, 6) (0) 1 1 1 (1) 1 1 1 (2) 1 1 1 (3) 1 1 1 1 (4) 1 1 1 (5) 1 1 (6) 1 1          ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 37/46

slide-63
SLIDE 63

Incidence simplicial matrices formalized in SSReflect

Incidence Matrices of Simplicial Complexes

1 2 3 4 5 6

               (0, 1, 2) (4, 5, 6) (0, 1) 1 (0, 2) 1 (0, 3) (1, 2) 1 (1, 3) (2, 3) (3, 4) (4, 5) 1 (4, 6) 1 (5, 6) 1                ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 37/46

slide-64
SLIDE 64

Incidence simplicial matrices formalized in SSReflect

Product of two consecutive incidence matrices in Z2

Theorem (Product of two consecutive incidence matrices in Z2) Let K be a finite simplicial complex over V with an order between the simplices of the same dimension and let n ≥ 1 be a natural number n, then the product of the n-th incidence matrix of K and the (n + 1)-incidence matrix of K over the ring Z/2Z is equal to the null matrix.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Theorem incidence_matrices_sc_product: forall (V:finType)(n:nat)(sc: {set (simplex V)}), good_sc sc -> n >= 1 -> mulmx (R:=Z2_ring) (incidence_matrix_n sc n) (incidence_matrix_n sc (n+1)) = null_mx Z2_ring (size (seq_SS (left_n_1 sc n))) (size (seq_SS (top_n sc (n+1)))). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 38/46

slide-65
SLIDE 65

Incidence simplicial matrices formalized in SSReflect

Sketch of the proof

Let Sn+1 be the set of (n + 1)-simplices of K with an order between its elements Let Sn be the set of n-simplices of K with an order between its elements Let Sn−1 be the set of (n − 1)-simplices of K with an order between its elements

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 39/46

slide-66
SLIDE 66

Incidence simplicial matrices formalized in SSReflect

Sketch of the proof

Let Sn+1 be the set of (n + 1)-simplices of K with an order between its elements Let Sn be the set of n-simplices of K with an order between its elements Let Sn−1 be the set of (n − 1)-simplices of K with an order between its elements

Mn(K) =      Sn[1] · · · Sn[r1] Sn−1[1] a1,1 · · · a1,r1 . . . . . . ... . . . Sn−1[r2] ar2,1 · · · ar2,r1     , Mn+1(K) =      Sn+1[1] · · · Sn+1[r3] Sn[1] b1,1 · · · b1,r1 . . . . . . ... . . . Sn[r1] br1,1 · · · br1,r3     

where r1 = ♯|Sn|, r2 = ♯|Sn−1| and r3 = ♯|Sn+1|

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 39/46

slide-67
SLIDE 67

Incidence simplicial matrices formalized in SSReflect

Sketch of the proof

Mn(K) × Mn+1(K) =    c1,1 · · · c1,r3 . . . ... . . . cr2,1 · · · cr2,r3    where ci, j =

  • 1≤j0≤r1

ai, j0 × bj0, j

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 40/46

slide-68
SLIDE 68

Incidence simplicial matrices formalized in SSReflect

Sketch of the proof

Mn(K) × Mn+1(K) =    c1,1 · · · c1,r3 . . . ... . . . cr2,1 · · · cr2,r3    where ci, j =

  • 1≤j0≤r1

ai, j0 × bj0, j we need to prove that ∀i, j, ci, j = 0 in order to prove that Mn × Mn+1 = 0

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 40/46

slide-69
SLIDE 69

Incidence simplicial matrices formalized in SSReflect

Sketch of the proof

  • 1j0r1

ai, j0 × bj0, j =

  • j0|Sn−1[i]⊂Sn[j0]∧Sn[j0]⊂Sn+1[j]

ai, j0 × bj0, j +

  • j0|Sn−1[i]⊂Sn[j0]∧Sn[j0]⊂Sn+1[j]

ai, j0 × bj0, j +

  • j0|Sn−1[i]⊂Sn[j0]∧Sn[j0]⊂Sn+1[j]

ai, j0 × bj0, j +

  • j0|Sn−1[i]⊂Sn[j0]∧Sn[j0]⊂Sn+1[j]

ai, j0 × bj0, j

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 41/46

slide-70
SLIDE 70

Incidence simplicial matrices formalized in SSReflect

Sketch of the proof

  • 1j0r1

ai, j0 × bj0, j =

  • j0|Sn−1[i]⊂Sn[j0]∧Sn[j0]⊂Sn+1[j]

ai, j0 × bj0, j +

  • j0|Sn−1[i]⊂Sn[j0]∧Sn[j0]⊂Sn+1[j]

ai, j0 × bj0, j +

  • j0|Sn−1[i]⊂Sn[j0]∧Sn[j0]⊂Sn+1[j]

ai, j0 × bj0, j +

  • j0|Sn−1[i]⊂Sn[j0]∧Sn[j0]⊂Sn+1[j]

ai, j0 × bj0, j

  • 1j0r1

ai, j0 × bj0, j = (

  • j0|Mn−2[i]⊂Mn−1[j0]∧Mn−1[j0]⊂Mn[j]

1) + 0 + 0 + 0

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 41/46

slide-71
SLIDE 71

Incidence simplicial matrices formalized in SSReflect

Sketch of the proof

  • 1j0r1

ai, j0 × bj0, j =

  • j0|Sn−1[i]⊂Sn[j0]∧Sn[j0]⊂Sn+1[j]

ai, j0 × bj0, j +

  • j0|Sn−1[i]⊂Sn[j0]∧Sn[j0]⊂Sn+1[j]

ai, j0 × bj0, j +

  • j0|Sn−1[i]⊂Sn[j0]∧Sn[j0]⊂Sn+1[j]

ai, j0 × bj0, j +

  • j0|Sn−1[i]⊂Sn[j0]∧Sn[j0]⊂Sn+1[j]

ai, j0 × bj0, j

  • 1j0r1

ai, j0 × bj0, j = (

  • j0|Mn−2[i]⊂Mn−1[j0]∧Mn−1[j0]⊂Mn[j]

1) + 0 + 0 + 0

  • 1j0r1

ai, j0 × bj0, j = ♯|{j0|(1 ≤ j0 ≤ r1) ∧ (Sn−1[i] ⊂ Sn[j0]) ∧ (Sn[j0] ⊂ Sn+1[j])}|

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 41/46

slide-72
SLIDE 72

Incidence simplicial matrices formalized in SSReflect

Sketch of the proof

♯|{j0 | (1 ≤ j0 ≤ r1)∧(Sn−1[i] ⊂ Sn[j0])∧(Sn[j0] ⊂ Sn+1[j])}| = 0 mod 2

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 42/46

slide-73
SLIDE 73

Incidence simplicial matrices formalized in SSReflect

Sketch of the proof

♯|{j0 | (1 ≤ j0 ≤ r1)∧(Sn−1[i] ⊂ Sn[j0])∧(Sn[j0] ⊂ Sn+1[j])}| = 0 mod 2 Sn−1[i] ⊂ Sn+1[j] ⇒

♯|{j0 | (1 ≤ j0 ≤ r1) ∧ (Sn−1[i] ⊂ Sn[j0]) ∧ (Sn[j0] ⊂ Sn+1[j])}| = 0

Otherwise, ∃k such that Sn−1[i] ⊂ Sn[k] ⊂ Sn+1[j]

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 42/46

slide-74
SLIDE 74

Incidence simplicial matrices formalized in SSReflect

Sketch of the proof

♯|{j0 | (1 ≤ j0 ≤ r1)∧(Sn−1[i] ⊂ Sn[j0])∧(Sn[j0] ⊂ Sn+1[j])}| = 0 mod 2 Sn−1[i] ⊂ Sn+1[j] ⇒

♯|{j0 | (1 ≤ j0 ≤ r1) ∧ (Sn−1[i] ⊂ Sn[j0]) ∧ (Sn[j0] ⊂ Sn+1[j])}| = 0

Otherwise, ∃k such that Sn−1[i] ⊂ Sn[k] ⊂ Sn+1[j] Sn−1[i] ⊂ Sn+1[j] ⇒

♯|{j0 | (1 ≤ j0 ≤ r1) ∧ (Sn−1[i] ⊂ Sn[j0]) ∧ (Sn[j0] ⊂ Sn+1[j])}| = 2

Sn+1[j] = (v0, . . . , vn+1) ր տ Sn[k1] = (v0, . . . , vj , . . . , vn+1) Sn[k2] = (v0, . . . , vi , . . . , vn+1) տ ր Sn−1[i] = (v0, . . . , vi , . . . , vj , . . . , vn+1) ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 42/46

slide-75
SLIDE 75

Incidence simplicial matrices formalized in SSReflect

Sketch of the proof

♯|{j0 | (1 ≤ j0 ≤ r1)∧(Sn−1[i] ⊂ Sn[j0])∧(Sn[j0] ⊂ Sn+1[j])}| = 0 mod 2 Sn−1[i] ⊂ Sn+1[j] ⇒

♯|{j0 | (1 ≤ j0 ≤ r1) ∧ (Sn−1[i] ⊂ Sn[j0]) ∧ (Sn[j0] ⊂ Sn+1[j])}| = 0

Otherwise, ∃k such that Sn−1[i] ⊂ Sn[k] ⊂ Sn+1[j] Sn−1[i] ⊂ Sn+1[j] ⇒

♯|{j0 | (1 ≤ j0 ≤ r1) ∧ (Sn−1[i] ⊂ Sn[j0]) ∧ (Sn[j0] ⊂ Sn+1[j])}| = 2

Sn+1[j] = (v0, . . . , vn+1) ր տ Sn[k1] = (v0, . . . , vj , . . . , vn+1) Sn[k2] = (v0, . . . , vi , . . . , vn+1) տ ր Sn−1[i] = (v0, . . . , vi , . . . , vj , . . . , vn+1)

  • ForMath La Rioja node (J. Heras)

Formal libraries for Algebraic Topology 42/46

slide-76
SLIDE 76

Incidence simplicial matrices formalized in SSReflect

Formalization in SSReflect

Summation part: Quite direct

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 43/46

slide-77
SLIDE 77

Incidence simplicial matrices formalized in SSReflect

Formalization in SSReflect

Summation part: Quite direct

Lemmas from “bigops” library bigID:

  • i∈r|Pi

Fi =

  • i∈r|Pi∧ai

Fi +

  • i∈r|Pi∧∼ai

Fi big1:

  • i∈r|Pi

0 = 0

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 43/46

slide-78
SLIDE 78

Incidence simplicial matrices formalized in SSReflect

Formalization in SSReflect

Summation part: Quite direct

Lemmas from “bigops” library bigID:

  • i∈r|Pi

Fi =

  • i∈r|Pi∧ai

Fi +

  • i∈r|Pi∧∼ai

Fi big1:

  • i∈r|Pi

0 = 0

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 43/46

slide-79
SLIDE 79

Incidence simplicial matrices formalized in SSReflect

Formalization in SSReflect

Summation part: Quite direct

Lemmas from “bigops” library bigID:

  • i∈r|Pi

Fi =

  • i∈r|Pi∧ai

Fi +

  • i∈r|Pi∧∼ai

Fi big1:

  • i∈r|Pi

0 = 0

Cardinality part: More details are needed

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 43/46

slide-80
SLIDE 80

Incidence simplicial matrices formalized in SSReflect

Formalization in SSReflect

Summation part: Quite direct

Lemmas from “bigops” library bigID:

  • i∈r|Pi

Fi =

  • i∈r|Pi∧ai

Fi +

  • i∈r|Pi∧∼ai

Fi big1:

  • i∈r|Pi

0 = 0

Cardinality part: More details are needed

Auxiliary lemmas Lemmas from “finset” and “fintype” libraries

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 43/46

slide-81
SLIDE 81

Conclusions and Further Work

Table of Contents

1

Mathematical concepts

2

Computing in Algebraic Topology

3

Formalizing Algebraic Topology

4

Incidence simplicial matrices formalized in SSReflect

5

Conclusions and Further Work

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 44/46

slide-82
SLIDE 82

Conclusions and Further Work

Conclusions and Further Work

Conclusions:

Application of Algebraic Topology to the analysis of Digital Images Implemented in a Software System Partially formalized with Theorem Proving tools

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 45/46

slide-83
SLIDE 83

Conclusions and Further Work

Conclusions and Further Work

Conclusions:

Application of Algebraic Topology to the analysis of Digital Images Implemented in a Software System Partially formalized with Theorem Proving tools

Future Work:

Formalization: Digital Images to Simplicial Complexes Formalization of Discrete Morse Theory Formalization of computation of Homology groups . . .

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 45/46

slide-84
SLIDE 84

The end Thank you for your attention

Formal libraries for Algebraic Topology: status report

ForMath La Rioja node (J´

  • nathan Heras)

Departamento de Matem´ aticas y Computaci´

  • n

Universidad de La Rioja Spain

Mathematics, Algorithms and Proofs 2010 November 10, 2010

ForMath La Rioja node (J. Heras) Formal libraries for Algebraic Topology 46/46