mathlib: Lean s mathematical library

Size: px
Start display at page:

Download "mathlib: Lean s mathematical library"

Transcription

1 mathlib: Lean s mathematical library Johannes Hölzl EUTypes 2018

2 Introduction (classical) mathematical library for Lean with computable exceptions, e.g. N, Z, lists,...

3 Introduction (classical) mathematical library for Lean with computable exceptions, e.g. N, Z, lists,... Formerly distributed with Lean itself Leo wanted more flexibility

4 Introduction (classical) mathematical library for Lean with computable exceptions, e.g. N, Z, lists,... Formerly distributed with Lean itself Leo wanted more flexibility Some (current) topics: Basic Datatypes, Analysis, Linear Algebra, Set Theory,...

5 Lean

6 Lean DTT Quotient types (implies funext)

7 Lean DTT Quotient types (implies funext) Proof irrelevance is a definitional equality

8 Lean DTT Quotient types (implies funext) Proof irrelevance is a definitional equality Mark constants noncomputable, i.e. functions using choice: axiom choice : Π(α : Sort u), nonempty α α

9 Lean DTT Quotient types (implies funext) Proof irrelevance is a definitional equality Mark constants noncomputable, i.e. functions using choice: axiom choice : Π(α : Sort u), nonempty α α Non-commulative universes Prop : Type 0 : Type 1 :

10 Lean DTT Quotient types (implies funext) Proof irrelevance is a definitional equality Mark constants noncomputable, i.e. functions using choice: axiom choice : Π(α : Sort u), nonempty α α Non-commulative universes Prop : Type 0 : Type 1 : Basic inductives in the kernel

11 Lean DTT Quotient types (implies funext) Proof irrelevance is a definitional equality Mark constants noncomputable, i.e. functions using choice: axiom choice : Π(α : Sort u), nonempty α α Non-commulative universes Prop : Type 0 : Type 1 : Basic inductives in the kernel Mutual and nested inductives are constructed

12 Lean DTT Quotient types (implies funext) Proof irrelevance is a definitional equality Mark constants noncomputable, i.e. functions using choice: axiom choice : Π(α : Sort u), nonempty α α Non-commulative universes Prop : Type 0 : Type 1 : Basic inductives in the kernel Mutual and nested inductives are constructed No general fixpoint operator, no general match operator these are derived from recursors

13 Type classes in Lean Type classes are used to fill in implicit values: add : Π{α : Type}[i : has add α], α α α a + N nat.add a b

14 Type classes in Lean Type classes are used to fill in implicit values: add : Π{α : Type}[i : has add α], α α α a + N nat.add a b Instances can depend on other instances: ring.to group : Π(α : Type)[i : ring α] : group α

15 Type classes in Lean Type classes are used to fill in implicit values: add : Π{α : Type}[i : has add α], α α α a + N nat.add a b Instances can depend on other instances: ring.to group : Π(α : Type)[i : ring α] : group α Output parameters: has mem : Type out Type Type set.has mem : Πα, has mem (set α) α fset.has mem : Πα [i : decidable eq α], has mem (fset α) α

16 Type classes in Lean Type classes are used to fill in implicit values: add : Π{α : Type}[i : has add α], α α α a + N nat.add a b Instances can depend on other instances: ring.to group : Π(α : Type)[i : ring α] : group α Output parameters: has mem : Type out Type Type set.has mem : Πα, has mem (set α) α fset.has mem : Πα [i : decidable eq α], has mem (fset α) α Default values

17 Library

18 Library Basic (computable) data Type class hierarchies: Orders orders, lattices Algebraic (commutative) groups, rings, fields Spaces measurable, topological, uniform, metric Set theory (cardinals & ordinals) Analysis Linear algebra

19 Basic (computable) data Numbers: N, Z (as datatype, not quotient), Q, Fin n

20 Basic (computable) data Numbers: N, Z (as datatype, not quotient), Q, Fin n Lists, set α := α Prop

21 Basic (computable) data Numbers: N, Z (as datatype, not quotient), Q, Fin n Lists, set α := α Prop multiset α := list α/ perm

22 Basic (computable) data Numbers: N, Z (as datatype, not quotient), Q, Fin n Lists, set α := α Prop multiset α := list α/ perm finset α := {m : multiset α nodup m}

23 Basic (computable) data Numbers: N, Z (as datatype, not quotient), Q, Fin n Lists, set α := α Prop multiset α := list α/ perm finset α := {m : multiset α nodup m} Big operators for list, multiset and finset

24 Set theory: Cardinals and Ordinals (Mario Carneiro) Zorn s lemma, Schröder-Bernstein,...

25 Set theory: Cardinals and Ordinals (Mario Carneiro) Zorn s lemma, Schröder-Bernstein,... Isomorphism: structure α β := (f : α β)(g : β α)(f g : f g = id)(g f : g f = id)

26 Set theory: Cardinals and Ordinals (Mario Carneiro) Zorn s lemma, Schröder-Bernstein,... Isomorphism: structure α β := (f : α β)(g : β α)(f g : f g = id)(g f : g f = id) Cardinals & ordinals are well-order cardinal u : Type u+1 := Type u / nonempty ordinal u : Type u+1 := Well order u / nonempty ord

27 Set theory: Cardinals and Ordinals (Mario Carneiro) Zorn s lemma, Schröder-Bernstein,... Isomorphism: structure α β := (f : α β)(g : β α)(f g : f g = id)(g f : g f = id) Cardinals & ordinals are well-order cardinal u : Type u+1 := Type u / nonempty ordinal u : Type u+1 := Well order u / nonempty ord Semiring structure of cardinal is proved using constructions

28 Set theory: Cardinals and Ordinals (Mario Carneiro) Zorn s lemma, Schröder-Bernstein,... Isomorphism: structure α β := (f : α β)(g : β α)(f g : f g = id)(g f : g f = id) Cardinals & ordinals are well-order cardinal u : Type u+1 := Type u / nonempty ordinal u : Type u+1 := Well order u / nonempty ord Semiring structure of cardinal is proved using constructions κ + κ = κ = κ κ (for κ ω)

29 Set theory: Cardinals and Ordinals (Mario Carneiro) Zorn s lemma, Schröder-Bernstein,... Isomorphism: structure α β := (f : α β)(g : β α)(f g : f g = id)(g f : g f = id) Cardinals & ordinals are well-order cardinal u : Type u+1 := Type u / nonempty ordinal u : Type u+1 := Well order u / nonempty ord Semiring structure of cardinal is proved using constructions κ + κ = κ = κ κ (for κ ω) Existence of inaccessible cardinals (i.e. in the next universe)

30 Analysis Derived from Isabelle s analysis (Filters to generalize limits)

31 Analysis Derived from Isabelle s analysis (Filters to generalize limits) Topology: open; nhds filter, closed, compact, interior, closure

32 Analysis Derived from Isabelle s analysis (Filters to generalize limits) Topology: open; nhds filter, closed, compact, interior, closure Uniformity: complete, totally bounded (compact complete and totally bounded)

33 Analysis Derived from Isabelle s analysis (Filters to generalize limits) Topology: open; nhds filter, closed, compact, interior, closure Uniformity: complete, totally bounded (compact complete and totally bounded) Metric spaces are only rudimentary

34 Analysis Derived from Isabelle s analysis (Filters to generalize limits) Topology: open; nhds filter, closed, compact, interior, closure Uniformity: complete, totally bounded (compact complete and totally bounded) Metric spaces are only rudimentary Measurable spaces, Measures & Lebesgue measure

35 Analysis Derived from Isabelle s analysis (Filters to generalize limits) Topology: open; nhds filter, closed, compact, interior, closure Uniformity: complete, totally bounded (compact complete and totally bounded) Metric spaces are only rudimentary Measurable spaces, Measures & Lebesgue measure Infinite sum on topological monoids α: Σ : ι, (ι α) α

36 Analysis: Analytical Structures as Complete Lattices Complete lattices, map & comap as category theory light Filters, topological spaces, uniform spaces, and measurable spaces form a complete lattices per type complete lattice (topology α)

37 Analysis: Analytical Structures as Complete Lattices Complete lattices, map & comap as category theory light Filters, topological spaces, uniform spaces, and measurable spaces form a complete lattices per type complete lattice (topology α) (Co) induced structures allow for easy constructions: map : Π{αβ}, (α β) (topology α topology β) comap : Π{αβ}, (α β) (topology β topology α)

38 Analysis: Analytical Structures as Complete Lattices Complete lattices, map & comap as category theory light Filters, topological spaces, uniform spaces, and measurable spaces form a complete lattices per type complete lattice (topology α) (Co) induced structures allow for easy constructions: map : Π{αβ}, (α β) (topology α topology β) comap : Π{αβ}, (α β) (topology β topology α) Easy constructions: prod t 1 t 2 := comap π 1 t 1 comap π 2 t 2 subtype t s := comap (subtype.val s) t

39 Analysis: Analytical Structures as Complete Lattices Complete lattices, map & comap as category theory light Filters, topological spaces, uniform spaces, and measurable spaces form a complete lattices per type complete lattice (topology α) (Co) induced structures allow for easy constructions: map : Π{αβ}, (α β) (topology α topology β) comap : Π{αβ}, (α β) (topology β topology α) Easy constructions: prod t 1 t 2 := comap π 1 t 1 comap π 2 t 2 subtype t s := comap (subtype.val s) t Straight forward derivation of continuity rules

40 Analysis: Type Class Structure class metric (α : Type) :=... instance m2t (α : Type) [metric α] : topology α := {open s := x s, ɛ > 0, ball x ɛ s,...}

41 Analysis: Type Class Structure class metric (α : Type) :=... instance m2t (α : Type) [metric α] : topology α := {open s := x s, ɛ > 0, ball x ɛ s,...} Problem: m2t (m 1 m 2 ) (m2t m 1 ) (m2t m 2 )

42 Analysis: Type Class Structure class metric (α : Type) :=... instance m2t (α : Type) [metric α] : topology α := {open s := x s, ɛ > 0, ball x ɛ s,...} Problem: m2t (m 1 m 2 ) (m2t m 1 ) (m2t m 2 ) class metric (α : Type) extends topology α :=... (open iff : s, open s x s, ɛ > 0, ball x ɛ s)

43 Analysis: Type Class Structure class metric (α : Type) :=... instance m2t (α : Type) [metric α] : topology α := {open s := x s, ɛ > 0, ball x ɛ s,...} Problem: m2t (m 1 m 2 ) (m2t m 1 ) (m2t m 2 ) class metric (α : Type) extends topology α :=... (open iff : s, open s x s, ɛ > 0, ball x ɛ s) Default values give a value for the topology when defining metric

44 Analysis: Constructing Reals Construct R using completion of Q For foundational reasons metric completion is not possible

45 Analysis: Constructing Reals Construct R using completion of Q For foundational reasons metric completion is not possible (alt: α α Q Prop, c.f. Krebbers & Spitters)

46 Analysis: Constructing Reals Construct R using completion of Q For foundational reasons metric completion is not possible (alt: α α Q Prop, c.f. Krebbers & Spitters) Formalize uniform spaces (using the filter library!)

47 Analysis: Constructing Reals Construct R using completion of Q For foundational reasons metric completion is not possible (alt: α α Q Prop, c.f. Krebbers & Spitters) Formalize uniform spaces (using the filter library!) Use completion on the uniform space Q

48 Analysis: Constructing Reals Construct R using completion of Q For foundational reasons metric completion is not possible (alt: α α Q Prop, c.f. Krebbers & Spitters) Formalize uniform spaces (using the filter library!) Use completion on the uniform space Q Is it worth it?

49 Analysis: Constructing Reals Construct R using completion of Q For foundational reasons metric completion is not possible (alt: α α Q Prop, c.f. Krebbers & Spitters) Formalize uniform spaces (using the filter library!) Use completion on the uniform space Q Is it worth it? Mario wants to go back to Cauchy sequences...

50 Analysis: Constructing Reals Construct R using completion of Q For foundational reasons metric completion is not possible (alt: α α Q Prop, c.f. Krebbers & Spitters) Formalize uniform spaces (using the filter library!) Use completion on the uniform space Q Is it worth it? Mario wants to go back to Cauchy sequences... Anyway: R as order & topologically complete field

51 Linear Algebra class module (α : out Type u ) (β : Type v ) [out ring α] :=...

52 Linear Algebra class module (α : out Type u ) (β : Type v ) [out ring α] :=... type class mechanism looks for module β

53 Linear Algebra class module (α : out Type u ) (β : Type v ) [out ring α] :=... type class mechanism looks for module only one canoncial module per type β

54 Linear Algebra class module (α : out Type u ) (β : Type v ) [out ring α] :=... type class mechanism looks for module only one canoncial module per type usually α is fixed per theory anyway β

55 Linear Algebra class module (α : out Type u ) (β : Type v ) [out ring α] :=... type class mechanism looks for module only one canoncial module per type usually α is fixed per theory anyway Problem: (multivariate) polynomials β

56 Linear Algebra class module (α : out Type u ) (β : Type v ) [out ring α] :=... type class mechanism looks for module only one canoncial module per type usually α is fixed per theory anyway Problem: (multivariate) polynomials β Constructions: Subspace, Linear maps, Quotient, Product

57 Linear Algebra class module (α : out Type u ) (β : Type v ) [out ring α] :=... type class mechanism looks for module only one canoncial module per type usually α is fixed per theory anyway Problem: (multivariate) polynomials β Constructions: Subspace, Linear maps, Quotient, Product Example Isomorphism laws: dom(f ) ker(f ) l im(f ) s s t l s t t

58 Discussion

59 Problems with Type Classes group monoid semigroup

60 Problems with Type Classes group comm group monoid comm monoid semigroup comm semigroup

61 Problems with Type Classes add group add comm group group comm group add monoid add comm monoid monoid comm monoid add semigroup add comm semigroup semigroup comm semigroup

62 Problems with Type Classes add group add comm group group comm group add monoid add comm monoid monoid comm monoid add semigroup add comm semigroup semigroup comm semigroup Currently a automated copy from group to add group instead: [is group( )(/)( 1 )1] and [is group(+)( )( )0] Mixin type classes replace comm monoid,... by [is commutative ( )]

63 Problem with Universes class functor (M : Type u Type v) := (map : (α β : Type u), (α β) M α M β) (map comp : (α β γ : Type u) f g h, map f map g = map (f g)) (map id : α, map id = id)

64 Problem with Universes Problematic u class functor (M : Type u Type v) := (map : (α β : Type u), (α β) M α M β) (map comp : (α β γ : Type u) f g h, map f map g = map (f g)) (map id : α, map id = id)

65 Problem with Universes Problematic u class functor (M : Type u Type v) := (map : (α β : Type u), (α β) M α M β) (map comp : (α β γ : Type u) f g h, map f map g = map (f g)) (map id : α, map id = id) If we only work with functor (topology α) our library is too limited, e.g. topology.map allows mapping between different universes.

66 Maintenance Currently maintained by Mario Carneiro, me, and Jeremy Avigad Contributors: Andrew Zipperer, Floris van Doorn, Haitao Zhang, Jeremy Avigad, Johannes Hölzl, Kenny Lau, Kevin Buzzard, Leonardo de Moura, Mario Carneiro, Minchao Wu, Nathaniel Thomas, Parikshit Khanna, Robert Y. Lewis, Simon Hudon Currently lines of Lean code

67 mathlib A (classical) mathematical library for Lean

From Z3 to Lean, Efficient Verification

From Z3 to Lean, Efficient Verification From Z3 to Lean, Efficient Verification Turing Gateway to Mathematics, 19 July 2017 Leonardo de Moura, Microsoft Research Joint work with Nikolaj Bjorner and Christoph Wintersteiger Satisfiability Solution/Model

More information

TOPOLOGY, DR. BLOCK, FALL 2015, NOTES, PART 3.

TOPOLOGY, DR. BLOCK, FALL 2015, NOTES, PART 3. TOPOLOGY, DR. BLOCK, FALL 2015, NOTES, PART 3. 301. Definition. Let m be a positive integer, and let X be a set. An m-tuple of elements of X is a function x : {1,..., m} X. We sometimes use x i instead

More information

Appendix G: Some questions concerning the representation of theorems

Appendix G: Some questions concerning the representation of theorems Appendix G: Some questions concerning the representation of theorems Specific discussion points 1. What should the meta-structure to represent mathematics, in which theorems naturally fall, be? There obviously

More information

NICOLAS BOURBAKI ELEMENTS OF MATHEMATICS. General Topology. Chapters 1-4. Springer-Verlag Berlin Heidelberg New York London Paris Tokyo

NICOLAS BOURBAKI ELEMENTS OF MATHEMATICS. General Topology. Chapters 1-4. Springer-Verlag Berlin Heidelberg New York London Paris Tokyo NICOLAS BOURBAKI ELEMENTS OF MATHEMATICS General Topology Chapters 1-4 Springer-Verlag Berlin Heidelberg New York London Paris Tokyo ADVICE TO THE READER v CONTENTS OF THE ELEMENTS OF MATHEMATICS SERIES

More information

A heuristic method for formally verifying real inequalities

A heuristic method for formally verifying real inequalities A heuristic method for formally verifying real inequalities Robert Y. Lewis Vrije Universiteit Amsterdam June 22, 2018 Motivation Specific topic for today: verifying systems of nonlinear inequalities over

More information

4. Definition: topological space, open set, topology, trivial topology, discrete topology.

4. Definition: topological space, open set, topology, trivial topology, discrete topology. Topology Summary Note to the reader. If a statement is marked with [Not proved in the lecture], then the statement was stated but not proved in the lecture. Of course, you don t need to know the proof.

More information

A Tour of General Topology Chris Rogers June 29, 2010

A Tour of General Topology Chris Rogers June 29, 2010 A Tour of General Topology Chris Rogers June 29, 2010 1. The laundry list 1.1. Metric and topological spaces, open and closed sets. (1) metric space: open balls N ɛ (x), various metrics e.g. discrete metric,

More information

type classes & locales

type classes & locales Content Rough timeline Intro & motivation, getting started [1] COMP 4161 NICTA Advanced Course Advanced Topics in Software Verification Gerwin Klein, June Andronick, Toby Murray type classes & locales

More information

Point-Set Topology 1. TOPOLOGICAL SPACES AND CONTINUOUS FUNCTIONS

Point-Set Topology 1. TOPOLOGICAL SPACES AND CONTINUOUS FUNCTIONS Point-Set Topology 1. TOPOLOGICAL SPACES AND CONTINUOUS FUNCTIONS Definition 1.1. Let X be a set and T a subset of the power set P(X) of X. Then T is a topology on X if and only if all of the following

More information

Topology Hmwk 3 All problems are from Allen Hatcher Algebraic Topology (online) ch 1

Topology Hmwk 3 All problems are from Allen Hatcher Algebraic Topology (online) ch 1 Topology Hmwk 3 All problems are from Allen Hatcher Algebraic Topology (online) ch Andrew Ma December 23, 203 This assignment has been corrected post - grading...6 (a) Proof. Assume for a contradiction

More information

TOPOLOGY CHECKLIST - SPRING 2010

TOPOLOGY CHECKLIST - SPRING 2010 TOPOLOGY CHECKLIST - SPRING 2010 The list below serves as an indication of what we have covered in our course on topology. (It was written in a hurry, so there is a high risk of some mistake being made

More information

Types Summer School Gothenburg Sweden August Dogma oftype Theory. Everything has a type

Types Summer School Gothenburg Sweden August Dogma oftype Theory. Everything has a type Types Summer School Gothenburg Sweden August 2005 Formalising Mathematics in Type Theory Herman Geuvers Radboud University Nijmegen, NL Dogma oftype Theory Everything has a type M:A Types are a bit like

More information

Topological space - Wikipedia, the free encyclopedia

Topological space - Wikipedia, the free encyclopedia Page 1 of 6 Topological space From Wikipedia, the free encyclopedia Topological spaces are mathematical structures that allow the formal definition of concepts such as convergence, connectedness, and continuity.

More information

Notes on categories, the subspace topology and the product topology

Notes on categories, the subspace topology and the product topology Notes on categories, the subspace topology and the product topology John Terilla Fall 2014 Contents 1 Introduction 1 2 A little category theory 1 3 The subspace topology 3 3.1 First characterization of

More information

λ calculus is inconsistent

λ calculus is inconsistent Content Rough timeline COMP 4161 NICTA Advanced Course Advanced Topics in Software Verification Gerwin Klein, June Andronick, Toby Murray λ Intro & motivation, getting started [1] Foundations & Principles

More information

An Introduction to Lean

An Introduction to Lean An Introduction to Lean Jeremy Avigad Leonardo de Moura Gabriel Ebner and Sebastian Ullrich Version 1fc176a, updated at 2017-01-09 14:16:26-0500 2 Contents Contents 3 1 Overview 5 1.1 Perspectives on Lean...............................

More information

Cubical sets as a classifying topos

Cubical sets as a classifying topos Chalmers CMU Now: Aarhus University Homotopy Type Theory The homotopical interpretation of type theory: types as spaces upto homotopy dependent types as fibrations (continuous families of spaces) identity

More information

A GRAPH FROM THE VIEWPOINT OF ALGEBRAIC TOPOLOGY

A GRAPH FROM THE VIEWPOINT OF ALGEBRAIC TOPOLOGY A GRAPH FROM THE VIEWPOINT OF ALGEBRAIC TOPOLOGY KARL L. STRATOS Abstract. The conventional method of describing a graph as a pair (V, E), where V and E repectively denote the sets of vertices and edges,

More information

Elementary Topology. Note: This problem list was written primarily by Phil Bowers and John Bryant. It has been edited by a few others along the way.

Elementary Topology. Note: This problem list was written primarily by Phil Bowers and John Bryant. It has been edited by a few others along the way. Elementary Topology Note: This problem list was written primarily by Phil Bowers and John Bryant. It has been edited by a few others along the way. Definition. properties: (i) T and X T, A topology on

More information

Geometric Spaces with No Points

Geometric Spaces with No Points Robert Lubarsky Fred Richman June 20, 2009 Distance, Quasi-Distance, and Riesz Spaces Riesz Spaces and Distance Set Theory: category theory and topoi Set Theory: category theory and topoi Topology: locales,

More information

Metrics on diagrams and persistent homology

Metrics on diagrams and persistent homology Background Categorical ph Relative ph More structure Department of Mathematics Cleveland State University p.bubenik@csuohio.edu http://academic.csuohio.edu/bubenik_p/ July 18, 2013 joint work with Vin

More information

Specification, Verification, and Interactive Proof

Specification, Verification, and Interactive Proof Specification, Verification, and Interactive Proof SRI International May 23, 2016 PVS PVS - Prototype Verification System PVS is a verification system combining language expressiveness with automated tools.

More information

Topology problem set Integration workshop 2010

Topology problem set Integration workshop 2010 Topology problem set Integration workshop 2010 July 28, 2010 1 Topological spaces and Continuous functions 1.1 If T 1 and T 2 are two topologies on X, show that (X, T 1 T 2 ) is also a topological space.

More information

Lean 2 Quick Reference

Lean 2 Quick Reference Lean 2 Quick Reference Jeremy Avigad, Leonardo de Moura, Soonho Kong Version d0dd6d0, updated at 2017-01-30 19:53:44-0500 Quick Reference Note that this quick reference guide describes Lean 2 only. Displaying

More information

Inductive datatypes in HOL. lessons learned in Formal-Logic Engineering

Inductive datatypes in HOL. lessons learned in Formal-Logic Engineering Inductive datatypes in HOL lessons learned in Formal-Logic Engineering Stefan Berghofer and Markus Wenzel Institut für Informatik TU München = Isabelle λ β HOL α 1 Introduction Applications of inductive

More information

INTRODUCTION TO TOPOLOGY

INTRODUCTION TO TOPOLOGY INTRODUCTION TO TOPOLOGY MARTINA ROVELLI These notes are an outline of the topics covered in class, and are not substitutive of the lectures, where (most) proofs are provided and examples are discussed

More information

Geometric structures on manifolds

Geometric structures on manifolds CHAPTER 3 Geometric structures on manifolds In this chapter, we give our first examples of hyperbolic manifolds, combining ideas from the previous two chapters. 3.1. Geometric structures 3.1.1. Introductory

More information

Final Test in MAT 410: Introduction to Topology Answers to the Test Questions

Final Test in MAT 410: Introduction to Topology Answers to the Test Questions Final Test in MAT 410: Introduction to Topology Answers to the Test Questions Stefan Kohl Question 1: Give the definition of a topological space. (3 credits) A topological space (X, τ) is a pair consisting

More information

Thomas Jech. Set Theory. The Third Millennium Edition, revised and expanded. 4y Springer

Thomas Jech. Set Theory. The Third Millennium Edition, revised and expanded. 4y Springer Thomas Jech Set Theory The Third Millennium Edition, revised and expanded 4y Springer Part I. Basic Set Theory 1. Axioms of Set Theory 3 Axioms of Zermelo-Fraenkel. Why Axiomatic Set Theory? Language of

More information

A HOL Light formalization of singular homology

A HOL Light formalization of singular homology A HOL Light formalization of singular homology John Harrison Amazon Web Services Hales60, 21st June 2018 (09:00-09:50) Tom Hales is famous for many things... ... including the first Jordan Curve Theorem

More information

THREE LECTURES ON BASIC TOPOLOGY. 1. Basic notions.

THREE LECTURES ON BASIC TOPOLOGY. 1. Basic notions. THREE LECTURES ON BASIC TOPOLOGY PHILIP FOTH 1. Basic notions. Let X be a set. To make a topological space out of X, one must specify a collection T of subsets of X, which are said to be open subsets of

More information

T. Background material: Topology

T. Background material: Topology MATH41071/MATH61071 Algebraic topology Autumn Semester 2017 2018 T. Background material: Topology For convenience this is an overview of basic topological ideas which will be used in the course. This material

More information

Algebras. A General Survey. Riley Chien. May 4, University of Puget Sound. Algebras

Algebras. A General Survey. Riley Chien. May 4, University of Puget Sound. Algebras A General Survey May 4, 2015 What is an Algebra? Definition: An Algebra, A, is a set, S, under a set of operations. Definition: An n-ary operation on a set,s, f, takes n elements of S, (a 1, a 2,..., a

More information

Topology - I. Michael Shulman WOMP 2004

Topology - I. Michael Shulman WOMP 2004 Topology - I Michael Shulman WOMP 2004 1 Topological Spaces There are many different ways to define a topological space; the most common one is as follows: Definition 1.1 A topological space (often just

More information

Geometric structures on manifolds

Geometric structures on manifolds CHAPTER 3 Geometric structures on manifolds In this chapter, we give our first examples of hyperbolic manifolds, combining ideas from the previous two chapters. 3.1. Geometric structures 3.1.1. Introductory

More information

Structures in Coq January 27th 2014

Structures in Coq January 27th 2014 MPRI 2-7-2 Proof assistants ~sozeau/teaching/mpri-2-7-2-270114.pdf! Structures in Coq January 27th 2014 Matthieu Sozeau! "r² project team! Inria Paris & PPS! matthieu.sozeau@inria.fr! www.pps /~sozeau

More information

I. An introduction to Boolean inverse semigroups

I. An introduction to Boolean inverse semigroups I. An introduction to Boolean inverse semigroups Mark V Lawson Heriot-Watt University, Edinburgh June 2016 1 0. In principio The monograph J. Renault, A groupoid approach to C - algebras, Lecture Notes

More information

COMP 4161 NICTA Advanced Course. Advanced Topics in Software Verification. Toby Murray, June Andronick, Gerwin Klein

COMP 4161 NICTA Advanced Course. Advanced Topics in Software Verification. Toby Murray, June Andronick, Gerwin Klein COMP 4161 NICTA Advanced Course Advanced Topics in Software Verification Toby Murray, June Andronick, Gerwin Klein λ 1 Last time... λ calculus syntax free variables, substitution β reduction α and η conversion

More information

Dynamic Logic David Harel, The Weizmann Institute Dexter Kozen, Cornell University Jerzy Tiuryn, University of Warsaw The MIT Press, Cambridge, Massac

Dynamic Logic David Harel, The Weizmann Institute Dexter Kozen, Cornell University Jerzy Tiuryn, University of Warsaw The MIT Press, Cambridge, Massac Dynamic Logic David Harel, The Weizmann Institute Dexter Kozen, Cornell University Jerzy Tiuryn, University of Warsaw The MIT Press, Cambridge, Massachusetts, 2000 Among the many approaches to formal reasoning

More information

Topological properties of convex sets

Topological properties of convex sets Division of the Humanities and Social Sciences Ec 181 KC Border Convex Analysis and Economic Theory Winter 2018 Topic 5: Topological properties of convex sets 5.1 Interior and closure of convex sets Let

More information

Simplicial Objects and Homotopy Groups. J. Wu

Simplicial Objects and Homotopy Groups. J. Wu Simplicial Objects and Homotopy Groups J. Wu Department of Mathematics, National University of Singapore, Singapore E-mail address: matwuj@nus.edu.sg URL: www.math.nus.edu.sg/~matwujie Partially supported

More information

A Little Point Set Topology

A Little Point Set Topology A Little Point Set Topology A topological space is a generalization of a metric space that allows one to talk about limits, convergence, continuity and so on without requiring the concept of a distance

More information

In class 75min: 2:55-4:10 Thu 9/30.

In class 75min: 2:55-4:10 Thu 9/30. MATH 4530 Topology. In class 75min: 2:55-4:10 Thu 9/30. Prelim I Solutions Problem 1: Consider the following topological spaces: (1) Z as a subspace of R with the finite complement topology (2) [0, π]

More information

Lecture 008 (November 13, 2009)

Lecture 008 (November 13, 2009) Lecture 008 (November 13, 2009) 17 The Dold-Kan correspondence Suppose that A : op R Mod is a simplicial R-module. Examples to keep in mind are the free simplicial objects R(X) associated to simplicial

More information

Geom/Top: Homework 1 (due Monday, 10/08/12)

Geom/Top: Homework 1 (due Monday, 10/08/12) Geom/Top: Homework (due Monday, 0/08/2). Read Farb notes. 2. Read Hatcher, Intro to Chapter 2 and Section 2.. 3. (Do not hand this in) Let φ : A B and ψ : B A be group homomorphisms. Suppose that φ ψ =

More information

A NEW PROOF-ASSISTANT THAT REVISITS HOMOTOPY TYPE THEORY THE THEORETICAL FOUNDATIONS OF COQ USING NICOLAS TABAREAU

A NEW PROOF-ASSISTANT THAT REVISITS HOMOTOPY TYPE THEORY THE THEORETICAL FOUNDATIONS OF COQ USING NICOLAS TABAREAU COQHOTT A NEW PROOF-ASSISTANT THAT REVISITS THE THEORETICAL FOUNDATIONS OF COQ USING HOMOTOPY TYPE THEORY NICOLAS TABAREAU The CoqHoTT project Design and implement a brand-new proof assistant by revisiting

More information

Simplicial Objects and Homotopy Groups

Simplicial Objects and Homotopy Groups Simplicial Objects and Homotopy Groups Jie Wu Department of Mathematics National University of Singapore July 8, 2007 Simplicial Objects and Homotopy Groups -Objects and Homology Simplicial Sets and Homotopy

More information

Lectures on Order and Topology

Lectures on Order and Topology Lectures on Order and Topology Antonino Salibra 17 November 2014 1 Topology: main definitions and notation Definition 1.1 A topological space X is a pair X = ( X, OX) where X is a nonempty set and OX is

More information

Lecture 11 COVERING SPACES

Lecture 11 COVERING SPACES Lecture 11 COVERING SPACES A covering space (or covering) is not a space, but a mapping of spaces (usually manifolds) which, locally, is a homeomorphism, but globally may be quite complicated. The simplest

More information

Embedding logics in Dedukti

Embedding logics in Dedukti 1 INRIA, 2 Ecole Polytechnique, 3 ENSIIE/Cedric Embedding logics in Dedukti Ali Assaf 12, Guillaume Burel 3 April 12, 2013 Ali Assaf, Guillaume Burel: Embedding logics in Dedukti, 1 Outline Introduction

More information

Lecture 0: Reivew of some basic material

Lecture 0: Reivew of some basic material Lecture 0: Reivew of some basic material September 12, 2018 1 Background material on the homotopy category We begin with the topological category TOP, whose objects are topological spaces and whose morphisms

More information

Topology 550A Homework 3, Week 3 (Corrections: February 22, 2012)

Topology 550A Homework 3, Week 3 (Corrections: February 22, 2012) Topology 550A Homework 3, Week 3 (Corrections: February 22, 2012) Michael Tagare De Guzman January 31, 2012 4A. The Sorgenfrey Line The following material concerns the Sorgenfrey line, E, introduced in

More information

RESEARCH INTERNSHIP REPORT

RESEARCH INTERNSHIP REPORT RESEARCH INTERNSHIP REPORT Meta-programming with the Lean proof assistant Supervision by Jasmin C. Blanchette, Johannes Hölzl et Robert Y. Lewis Vrije Universiteit Amsterdam April - August 2018 Pablo Le

More information

Calculus of Inductive Constructions

Calculus of Inductive Constructions Calculus of Inductive Constructions Software Formal Verification Maria João Frade Departmento de Informática Universidade do Minho 2008/2009 Maria João Frade (DI-UM) Calculus of Inductive Constructions

More information

However, this is not always true! For example, this fails if both A and B are closed and unbounded (find an example).

However, this is not always true! For example, this fails if both A and B are closed and unbounded (find an example). 98 CHAPTER 3. PROPERTIES OF CONVEX SETS: A GLIMPSE 3.2 Separation Theorems It seems intuitively rather obvious that if A and B are two nonempty disjoint convex sets in A 2, then there is a line, H, separating

More information

Surfaces Beyond Classification

Surfaces Beyond Classification Chapter XII Surfaces Beyond Classification In most of the textbooks which present topological classification of compact surfaces the classification is the top result. However the topology of 2- manifolds

More information

Characterization of Boolean Topological Logics

Characterization of Boolean Topological Logics Characterization of Boolean Topological Logics Short Form: Boolean Topological Logics Anthony R. Fressola Denison University Granville, OH 43023 University of Illinois Urbana-Champaign, IL USA 61801-61802

More information

XI International PhD Workshop OWD 2009, October Fuzzy Sets as Metasets

XI International PhD Workshop OWD 2009, October Fuzzy Sets as Metasets XI International PhD Workshop OWD 2009, 17 20 October 2009 Fuzzy Sets as Metasets Bartłomiej Starosta, Polsko-Japońska WyŜsza Szkoła Technik Komputerowych (24.01.2008, prof. Witold Kosiński, Polsko-Japońska

More information

From Types to Sets in Isabelle/HOL

From Types to Sets in Isabelle/HOL From Types to Sets in Isabelle/HOL Extented Abstract Ondřej Kunčar 1 and Andrei Popescu 1,2 1 Fakultät für Informatik, Technische Universität München, Germany 2 Institute of Mathematics Simion Stoilow

More information

TORIC VARIETIES JOAQUÍN MORAGA

TORIC VARIETIES JOAQUÍN MORAGA TORIC VARIETIES Abstract. This is a very short introduction to some concepts around toric varieties, some of the subsections are intended for more experienced algebraic geometers. To see a lot of exercises

More information

14 Foundation of Programming Languages and Software Engineering: Summer Term 2010

14 Foundation of Programming Languages and Software Engineering: Summer Term 2010 14 Foundation of Programming Languages and Software Engineering: Abstract Data Types Summer Term 2010 Robert Elsässer Abstract data types 09.06.2010 Theory 1 - Foundation of Programming Languages and Software

More information

Notes on Topology. Andrew Forrester January 28, Notation 1. 2 The Big Picture 1

Notes on Topology. Andrew Forrester January 28, Notation 1. 2 The Big Picture 1 Notes on Topology Andrew Forrester January 28, 2009 Contents 1 Notation 1 2 The Big Picture 1 3 Fundamental Concepts 2 4 Topological Spaces and Topologies 2 4.1 Topological Spaces.........................................

More information

M3P1/M4P1 (2005) Dr M Ruzhansky Metric and Topological Spaces Summary of the course: definitions, examples, statements.

M3P1/M4P1 (2005) Dr M Ruzhansky Metric and Topological Spaces Summary of the course: definitions, examples, statements. M3P1/M4P1 (2005) Dr M Ruzhansky Metric and Topological Spaces Summary of the course: definitions, examples, statements. Chapter 1: Metric spaces and convergence. (1.1) Recall the standard distance function

More information

DISCRETE MATHEMATICS

DISCRETE MATHEMATICS DISCRETE MATHEMATICS WITH APPLICATIONS THIRD EDITION SUSANNA S. EPP DePaul University THOIVISON * BROOKS/COLE Australia Canada Mexico Singapore Spain United Kingdom United States CONTENTS Chapter 1 The

More information

Measurable Preorders and Complexity

Measurable Preorders and Complexity Measurable Preorders and Complexity Thomas Seiller 1 Proofs, Programs, Systems Paris 7 University seiller@ihes.fr TACL 2015 June 26th, 2015 1 Partially supported by ANR-12-JS02-006-01 COQUAS. T. Seiller

More information

Program Calculus Calculational Programming

Program Calculus Calculational Programming Program Calculus Calculational Programming National Institute of Informatics June 21 / June 28 / July 5, 2010 Program Calculus Calculational Programming What we will learn? Discussing the mathematical

More information

THE GROWTH DEGREE OF VERTEX REPLACEMENT RULES

THE GROWTH DEGREE OF VERTEX REPLACEMENT RULES THE GROWTH DEGREE OF VERTEX REPLACEMENT RULES JOSEPH P. PREVITE AND MICHELLE PREVITE 1. Introduction. 2. Vertex Replacement Rules. 3. Marked Graphs Definition 3.1. A marked graph (G, p) is a graph with

More information

Coq, a formal proof development environment combining logic and programming. Hugo Herbelin

Coq, a formal proof development environment combining logic and programming. Hugo Herbelin Coq, a formal proof development environment combining logic and programming Hugo Herbelin 1 Coq in a nutshell (http://coq.inria.fr) A logical formalism that embeds an executable typed programming language:

More information

Tutorial: Computable Model Theory and Differential Algebra

Tutorial: Computable Model Theory and Differential Algebra Tutorial: Computable Model Theory and Differential Algebra Russell Miller, Queens College & Graduate Center C.U.N.Y. April 12, 2007 Workshop in Differential Algebra and Related Topics Rutgers University,

More information

REDUNDANCY OF MULTISET TOPOLOGICAL SPACES

REDUNDANCY OF MULTISET TOPOLOGICAL SPACES Iranian Journal of Fuzzy Systems Vol. 14, No. 4, (2017) pp. 163-168 163 REDUNDANCY OF MULTISET TOPOLOGICAL SPACES A. GHAREEB Abstract. In this paper, we show the redundancies of multiset topological spaces.

More information

4. Simplicial Complexes and Simplicial Homology

4. Simplicial Complexes and Simplicial Homology MATH41071/MATH61071 Algebraic topology Autumn Semester 2017 2018 4. Simplicial Complexes and Simplicial Homology Geometric simplicial complexes 4.1 Definition. A finite subset { v 0, v 1,..., v r } R n

More information

simply ordered sets. We ll state only the result here, since the proof is given in Munkres.

simply ordered sets. We ll state only the result here, since the proof is given in Munkres. p. 1 Math 490 Notes 20 More About Compactness Recall that in Munkres it is proved that a simply (totally) ordered set X with the order topology is connected iff it satisfies: (1) Every subset bounded above

More information

Topos Theory. Lectures 3-4: Categorical preliminaries II. Olivia Caramello. Topos Theory. Olivia Caramello. Basic categorical constructions

Topos Theory. Lectures 3-4: Categorical preliminaries II. Olivia Caramello. Topos Theory. Olivia Caramello. Basic categorical constructions Lectures 3-4: Categorical preliminaries II 2 / 17 Functor categories Definition Let C and D be two categories. The functor category [C,D] is the category having as objects the functors C D and as arrows

More information

Rigidity, connectivity and graph decompositions

Rigidity, connectivity and graph decompositions First Prev Next Last Rigidity, connectivity and graph decompositions Brigitte Servatius Herman Servatius Worcester Polytechnic Institute Page 1 of 100 First Prev Next Last Page 2 of 100 We say that a framework

More information

Point-Set Topology II

Point-Set Topology II Point-Set Topology II Charles Staats September 14, 2010 1 More on Quotients Universal Property of Quotients. Let X be a topological space with equivalence relation. Suppose that f : X Y is continuous and

More information

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

ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes) ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes) Steve Vickers CS Theory Group Birmingham 4. Toposes and geometric reasoning How to "do generalized

More information

ON BINARY TOPOLOGICAL SPACES

ON BINARY TOPOLOGICAL SPACES Pacific-Asian Journal of Mathematics, Volume 5, No. 2, July-December 2011 ON BINARY TOPOLOGICAL SPACES S. NITHYANANTHA JOTHI & P. THANGAVELU ABSTRACT: Recently the authors introduced the concept of a binary

More information

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

ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes) ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes) Steve Vickers CS Theory Group Birmingham 1. Sheaves "Sheaf = continuous set-valued map" TACL Tutorial

More information

HOL DEFINING HIGHER ORDER LOGIC LAST TIME ON HOL CONTENT. Slide 3. Slide 1. Slide 4. Slide 2 WHAT IS HIGHER ORDER LOGIC? 2 LAST TIME ON HOL 1

HOL DEFINING HIGHER ORDER LOGIC LAST TIME ON HOL CONTENT. Slide 3. Slide 1. Slide 4. Slide 2 WHAT IS HIGHER ORDER LOGIC? 2 LAST TIME ON HOL 1 LAST TIME ON HOL Proof rules for propositional and predicate logic Safe and unsafe rules NICTA Advanced Course Forward Proof Slide 1 Theorem Proving Principles, Techniques, Applications Slide 3 The Epsilon

More information

Real Analysis, 2nd Edition, G.B.Folland

Real Analysis, 2nd Edition, G.B.Folland Real Analysis, 2nd Edition, G.B.Folland Chapter 4 Point Set Topology Yung-Hsiang Huang 4.1 Topological Spaces 1. If card(x) 2, there is a topology on X that is T 0 but not T 1. 2. If X is an infinite set,

More information

Lecture 15: The subspace topology, Closed sets

Lecture 15: The subspace topology, Closed sets Lecture 15: The subspace topology, Closed sets 1 The Subspace Topology Definition 1.1. Let (X, T) be a topological space with topology T. subset of X, the collection If Y is a T Y = {Y U U T} is a topology

More information

First-Class Type Classes

First-Class Type Classes First-Class Type Classes Matthieu Sozeau Joint work with Nicolas Oury LRI, Univ. Paris-Sud - Démons Team & INRIA Saclay - ProVal Project Gallium Seminar November 3rd 2008 INRIA Rocquencourt Solutions for

More information

Lecture 17: Continuous Functions

Lecture 17: Continuous Functions Lecture 17: Continuous Functions 1 Continuous Functions Let (X, T X ) and (Y, T Y ) be topological spaces. Definition 1.1 (Continuous Function). A function f : X Y is said to be continuous if the inverse

More information

Discrete Mathematics Lecture 4. Harper Langston New York University

Discrete Mathematics Lecture 4. Harper Langston New York University Discrete Mathematics Lecture 4 Harper Langston New York University Sequences Sequence is a set of (usually infinite number of) ordered elements: a 1, a 2,, a n, Each individual element a k is called a

More information

Regarding Python level necessary for the course

Regarding Python level necessary for the course Logistics First two recitations (next two weeks) Python basics (installation, basic syntax, basic programming), optional Making models for 3D printing w/ Blender Will announce details through Sakai Regarding

More information

Uniqueness triples from the diamond axiom

Uniqueness triples from the diamond axiom Uniqueness triples from the diamond axiom Ari Meir Brodsky Ariel University 11 Iyyar, 5778 Thursday, April 26, 2018 Set Theory, Model Theory and Applications Ben-Gurion University of the Negev, Eilat Campus

More information

Final Exam, F11PE Solutions, Topology, Autumn 2011

Final Exam, F11PE Solutions, Topology, Autumn 2011 Final Exam, F11PE Solutions, Topology, Autumn 2011 Question 1 (i) Given a metric space (X, d), define what it means for a set to be open in the associated metric topology. Solution: A set U X is open if,

More information

1.7 The Heine-Borel Covering Theorem; open sets, compact sets

1.7 The Heine-Borel Covering Theorem; open sets, compact sets 1.7 The Heine-Borel Covering Theorem; open sets, compact sets This section gives another application of the interval halving method, this time to a particularly famous theorem of analysis, the Heine Borel

More information

Math 5801 General Topology and Knot Theory

Math 5801 General Topology and Knot Theory Lecture 13-9/21/2012 Math 5801 Ohio State University September 21, 2012 Course Info Reading for Monday, September 24 Review Chapter 2.19 HW 5 for Monday, September 24 Chapter 2.17: 3, 5, 9, 13 Chapter

More information

Math 734 Aug 22, Differential Geometry Fall 2002, USC

Math 734 Aug 22, Differential Geometry Fall 2002, USC Math 734 Aug 22, 2002 1 Differential Geometry Fall 2002, USC Lecture Notes 1 1 Topological Manifolds The basic objects of study in this class are manifolds. Roughly speaking, these are objects which locally

More information

Compact Sets. James K. Peterson. September 15, Department of Biological Sciences and Department of Mathematical Sciences Clemson University

Compact Sets. James K. Peterson. September 15, Department of Biological Sciences and Department of Mathematical Sciences Clemson University Compact Sets James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University September 15, 2017 Outline 1 Closed Sets 2 Compactness 3 Homework Closed Sets

More information

Constructing the Propositional Truncation using Non-recursive HITs

Constructing the Propositional Truncation using Non-recursive HITs Constructing the Propositional Truncation using Non-recursive HITs Floris van Doorn Carnegie Mellon University January 19, 2016 Floris van Doorn (CMU) Constructing Propositional Truncation January 19,

More information

NOTES ON GENERAL TOPOLOGY

NOTES ON GENERAL TOPOLOGY NOTES ON GENERAL TOPOLOGY PETE L. CLARK 1. The notion of a topological space Part of the rigorization of analysis in the 19th century was the realization that notions like convergence of sequences and

More information

3.7 Denotational Semantics

3.7 Denotational Semantics 3.7 Denotational Semantics Denotational semantics, also known as fixed-point semantics, associates to each programming language construct a well-defined and rigorously understood mathematical object. These

More information

Section 26. Compact Sets

Section 26. Compact Sets 26. Compact Sets 1 Section 26. Compact Sets Note. You encounter compact sets of real numbers in senior level analysis shortly after studying open and closed sets. Recall that, in the real setting, a continuous

More information

PARTIALLY ORDERED SETS. James T. Smith San Francisco State University

PARTIALLY ORDERED SETS. James T. Smith San Francisco State University PARTIALLY ORDERED SETS James T. Smith San Francisco State University A reflexive transitive relation on a nonempty set X is called a quasi-ordering of X. An ordered pair consisting of a nonempty

More information

Lecture 5: Duality Theory

Lecture 5: Duality Theory Lecture 5: Duality Theory Rajat Mittal IIT Kanpur The objective of this lecture note will be to learn duality theory of linear programming. We are planning to answer following questions. What are hyperplane

More information

Theorem Proving in Lean

Theorem Proving in Lean Theorem Proving in Lean Release 3.3.0 Jeremy Avigad, Leonardo de Moura, and Soonho Kong Jan 27, 2018 CONTENTS 1 Introduction 1 1.1 Computers and Theorem Proving................................. 1 1.2

More information

Preuves Interactives et Applications

Preuves Interactives et Applications Preuves Interactives et Applications Christine Paulin & Burkhart Wolff http://www.lri.fr/ paulin/preuvesinteractives Université Paris-Saclay HOL and its Specification Constructs 10/12/16 B. Wolff - M2

More information

From natural numbers to the lambda calculus

From natural numbers to the lambda calculus From natural numbers to the lambda calculus Benedikt Ahrens joint work with Ralph Matthes and Anders Mörtberg Outline 1 About UniMath 2 Signatures and associated syntax Outline 1 About UniMath 2 Signatures

More information