Verified Implementation of Exact Real Arithmetic in Type Theory

Size: px
Start display at page:

Download "Verified Implementation of Exact Real Arithmetic in Type Theory"

Transcription

1 Verified Implementation of Exact Real Arithmetic in Type Theory Bas Spitters EU STREP-FET ForMath Dec 9th 2013 Computable Analysis and Rigorous Numerics 1 / 14

2 Rigorous Numerics through Computable Analysis Constructive analysis as an internal language for TTE Type theory as a language for constructive mathematics Type theory as a framework for computer proofs Computer verified implementation of exact analysis 2 / 14

3 Dependent type theory Dependent type theory makes Bishop s notion of operation/construction precise. Gives a functional programming language like haskell, SML, OCaml with very expressive type system. Framework for proofs Implementations: Coq, agda, epigram, Idris,... Extensional DTT is an abstract language for TTE via realizability. Locally Cartesian closed category, ΠW-pretopos. 3 / 14

4 Picard-Lindelöf Theorem Consider the initial value problem where y (x) = v(x, y(x)), y(x 0 ) = y 0 v : [x 0 a, x 0 + a] [y 0 K, y 0 + K] R y v is continuous y v is Lipschitz continuous in y: 0 + K v(x, y) v(x, y ) L y y for some L > 0 y 0 v(x, y) M al < 1 y 0 K am K x 0 a Such problem has a unique solution on [x 0 a, x 0 + a]. x 0 x 0 + a x 4 / 14

5 Proof Idea is equivalent to Define y (x) = v(x, y(x)), y(x 0 ) = y 0 x y(x) = y(x 0 ) + v(t, y(t)) dt x 0 x (T f)(x) = y 0 + F (t, f(t)) dt x 0 f 0 (x) = y 0 f n+1 = T f n Under the assumptions, T is a contraction on C([x 0 a, x 0 + a], [y 0 K, y 0 + K]). By the Banach fixpoint theorem, T has a fixpoint f and f n f. Formalization: Makarov, S - The Picard Algorithm for Ordinary Differential Equations in Coq 5 / 14

6 Metric Spaces Let (X, d) where d : X X R be a metric space. Let Brxy denote d(x, y) r. A function f : Q + X is called regular (Strongly Cauchy) if ε 1 ε 2 : Q +, B(ε 1 + ε 2 )(fε 1 )(fε 2 ). The completion C X of X is the set of regular functions. Let X and Y be metric spaces. A function f : X Y is called uniformly continuous with modulus µ if ε : Q + x 1 x 2 : X, B(µε)x 1 x 2 Bε(fx 1 )(fx 2 ). For x 1, x 2 : C X, the metric on the completion B C X εx 1 x 2 := ε 1 ε 2 : Q +, B X (ε 1 + ε + ε 2 )(x 1 ε 1 )(x 2 ε 2 ). Metric spaces with uniformly continuous functions form a category. Completion forms a monad in the category of metric spaces and uniformly continuous functions. R. O Connor, extending work by E. Bishop. 6 / 14

7 Completion as a Monad unit : X C X := λxλε, x join : C C X C X := λxλε, x(ε/2)(ε/2) map : (X Y ) (C X C Y ) := λfλx, f x µ f bind : (X C Y ) (C X C Y ) := join map Define functions Q Q; lift to C Q C Q. 7 / 14

8 Type Classes Organize the library using, so-called type classes. Type classes are parametric record types. Coq searches for terms of these types automatically during unification. Logic programming at the type level automates many mathematical reflexes. Gives uniform notation Algebra hierarchy, abstractions, diamond inheritance Abstract interfaces (like haskell). S, van der Weegen, Type Classes for Mathematics in Type Theory. 8 / 14

9 Type Classes for Mathematical Structures Class AppRationals AQ {e plus mult zero one inv} {Apart AQ} {Le AQ} {Lt AQ} {AQtoQ : Cast AQ Q_as_MetricSpace} {!AppInverse AQtoQ} {ZtoAQ : Cast Z AQ} {!AppDiv AQ} {!AppApprox AQ} {!Abs AQ} {!Pow AQ N} {!ShiftL AQ Z} { x y : AQ, Decision (x = y)} { x y : AQ, Decision (x y)} : Prop := { aq_ring AQ e plus mult zero one inv ; aq_trivial_apart :> TrivialApart AQ ; aq_order_embed :> OrderEmbedding AQtoQ ; aq_strict_order_embed :> StrictOrderEmbedding AQtoQ ; aq_ring_morphism :> SemiRing_Morphism AQtoQ ; aq_dense_embedding :> DenseEmbedding AQtoQ ; aq_div : x y k, ball (2 ^ k) ( app_div x y k) ( x / y) ; aq_compress : x k, ball (2 ^ k) ( app_approx x k) ( x) ; aq_shift :> ShiftLSpec AQ Z ( ) ; aq_nat_pow :> NatPowSpec AQ N (^) ; aq_ints_mor :> SemiRing_Morphism ZtoAQ }. S, Krebbers, Type classes for efficient exact real arithmetic in Coq 9 / 14

10 Instances of Approximate Rationals Record Dyadic Z := dyadic { mant: Z; expo: Z }. Represents mant 2 expo Instance dy_mult: Mult Dyadic := λ x y, dyadic (mant x * mant y) (expo x + expo y). Instance : AppRationals (Dyadic bigz). Instance : AppRationals bigq. Instance : AppRationals Q. Waiting for MPFR/Coq interval/floqc / 14

11 Efficient Reals Coq < Check Complete. Complete : MetricSpace -> MetricSpace Coq < Check Q_as_MetricSpace. Q_as_MetricSpace : MetricSpace Coq < Check AQ_as_MetricSpace. AQ_as_MetricSpace : (AQ : Type)..., AppRationals AQ -> MetricSpace Coq < Definition CR := Complete Q_as_MetricSpace. Coq < Definition AR := Complete AQ_as_MetricSpace. AR is an instance of Le, Field, SemiRingOrder, etc., from the MathClasses library. 11 / 14

12 Integral Following M. Bridger, Real Analysis: A Constructive Approach. Class Integral (f: Q -> CR) := integrate: forall (from: Q) (w: QnonNeg), CR. Notation " " := integrate. Class Integrable {!Integral f}: Prop := { integral_additive: forall (a: Q) b c, f a b + f (a + b) c == f a (b + c); integral_bounded_prim: forall (from: Q) (width: Qpos) (mid: Q) ( (forall x, from <= x <= from + width -> ball r (f x) mid) -> ball (width * r) ( f from width) (width * mid); }. Earlier (abstract, but slower) implementation of integral by O Connor and S 12 / 14

13 Complexity Rectangle rule: b f(x) dx f(a)(b a) a where f (x) M for a x b. (b a)3 M 24 Number of intervals to have the error ε: Simpson s rule: b f(x) dx b a 6 a ( f(a) + 4f where f (4) (x) M for a x b. ( a + b Number of intervals: 4 (b a) 5 M 2880ε 2 (b a) 3 M 24ε ) ) (b a)5 + f(b) 2880 M Coquand, S A constructive proof of Simpson s Rule, 2012: Replace mean value theorem with law of bounded change Use divided differences, Hermite-Genocci 13 / 14

14 Conclusions Computer verified implementation of simple ODE solver. Computing with exact functions. May be seen as an executable specification, speed up with refinement. 14 / 14

Updated Partial Report for Deliverable Nr. 4.2

Updated Partial Report for Deliverable Nr. 4.2 Updated Partial Report for Deliverable Nr. 4.2 Simple ODE Solver: Picard and Newton Method Responsible: Bas Spitters, spitters@cs.ru.nl Site: Radboud Universiteit Nijmegen, The Netherlands Deliverable

More information

Existence and uniqueness: Picard s theorem

Existence and uniqueness: Picard s theorem Existence and uniqueness: Picard s theorem First-order equations Consider the equation y = f(x, y) (not necessarily linear). The equation dictates a value of y at each point (x, y), so one would expect

More information

Contraction Mappings Consider the equation

Contraction Mappings Consider the equation Contraction Mappings Consider the equation x = cos x. If we plot the graphs of y = cos x and y = x, we see that they intersect at a unique point for x 0.7. This point is called a fixed point of the function

More information

Cylindrical Algebraic Decomposition in Coq

Cylindrical Algebraic Decomposition in Coq Cylindrical Algebraic Decomposition in Coq MAP 2010 - Logroño 13-16 November 2010 Assia Mahboubi INRIA Microsoft Research Joint Centre (France) INRIA Saclay Île-de-France École Polytechnique, Palaiseau

More information

Recent progress in Homotopy type theory

Recent progress in Homotopy type theory July 22nd, 2013 Supported by EU FP7 STREP FET-open ForMATH Most of the presentation is based on the book: CC-BY-SA Topos Homotopy type theory Collaborative effort lead by Awodey, Coquand, Voevodsky at

More information

Ordinary Differential Equations

Ordinary Differential Equations Ordinary Differential Equations (MA102 Mathematics II) Shyamashree Upadhyay IIT Guwahati Shyamashree Upadhyay ( IIT Guwahati ) Ordinary Differential Equations 1 / 1 Books Shyamashree Upadhyay ( IIT Guwahati

More information

Picard s Existence and Uniqueness Theorem

Picard s Existence and Uniqueness Theorem Picard s Existence and Uniqueness Theorem Denise Gutermuth 1 These notes on the proof of Picard s Theorem follow the text Fundamentals of Differential Equations and Boundary Value Problems, 3rd edition,

More information

Economics 204 Summer/Fall 2011 Lecture 5 Friday July 29, 2011

Economics 204 Summer/Fall 2011 Lecture 5 Friday July 29, 2011 Economics 204 Summer/Fall 2011 Lecture 5 Friday July 29, 2011 Section 2.6 (cont.) Properties of Real Functions Here we first study properties of functions from R to R, making use of the additional structure

More information

Formalising Real Numbers in Homotopy Type Theory

Formalising Real Numbers in Homotopy Type Theory Formalising Real Numbers in Homotopy Type Theory Gaëtan Gilbert To cite this version: Gaëtan Gilbert. Formalising Real Numbers in Homotopy Type Theory. 6th ACM SIGPLAN Conference on Certified Programs

More information

d(x n, x) d(x n, x nk ) + d(x nk, x) where we chose any fixed k > N

d(x n, x) d(x n, x nk ) + d(x nk, x) where we chose any fixed k > N Problem 1. Let f : A R R have the property that for every x A, there exists ɛ > 0 such that f(t) > ɛ if t (x ɛ, x + ɛ) A. If the set A is compact, prove there exists c > 0 such that f(x) > c for all x

More information

Main topics and some repetition exercises for the course MMG511/MVE161 ODE and mathematical modeling in year Main topics in the course:

Main topics and some repetition exercises for the course MMG511/MVE161 ODE and mathematical modeling in year Main topics in the course: Main topics and some repetition exercises for the course MMG5/MVE6 ODE and mathematical modeling in year 04. Main topics in the course:. Banach fixed point principle. Picard- Lindelöf theorem. Lipschitz

More information

MAT 570 REAL ANALYSIS LECTURE NOTES. Contents. 1. Sets Functions Countability Axiom of choice Equivalence relations 9

MAT 570 REAL ANALYSIS LECTURE NOTES. Contents. 1. Sets Functions Countability Axiom of choice Equivalence relations 9 MAT 570 REAL ANALYSIS LECTURE NOTES PROFESSOR: JOHN QUIGG SEMESTER: FALL 204 Contents. Sets 2 2. Functions 5 3. Countability 7 4. Axiom of choice 8 5. Equivalence relations 9 6. Real numbers 9 7. Extended

More information

Analysis Finite and Infinite Sets The Real Numbers The Cantor Set

Analysis Finite and Infinite Sets The Real Numbers The Cantor Set Analysis Finite and Infinite Sets Definition. An initial segment is {n N n n 0 }. Definition. A finite set can be put into one-to-one correspondence with an initial segment. The empty set is also considered

More information

Construction of Real Algebraic Numbers in Coq

Construction of Real Algebraic Numbers in Coq Construction of Real Algebraic Numbers in Coq INRIA Saclay Île-de-France LIX École Polytechnique INRIA Microsoft Research Joint Centre cohen@crans.org August 13, 2012 Why algebraic numbers? Field strictly

More information

Lecture 9 Metric spaces. The contraction fixed point theorem. The implicit function theorem. The existence of solutions to differenti. equations.

Lecture 9 Metric spaces. The contraction fixed point theorem. The implicit function theorem. The existence of solutions to differenti. equations. Lecture 9 Metric spaces. The contraction fixed point theorem. The implicit function theorem. The existence of solutions to differential equations. 1 Metric spaces 2 Completeness and completion. 3 The contraction

More information

LMI Methods in Optimal and Robust Control

LMI Methods in Optimal and Robust Control LMI Methods in Optimal and Robust Control Matthew M. Peet Arizona State University Lecture 15: Nonlinear Systems and Lyapunov Functions Overview Our next goal is to extend LMI s and optimization to nonlinear

More information

Cylindrical Algebraic Decomposition in Coq

Cylindrical Algebraic Decomposition in Coq Cylindrical Algebraic Decomposition in Coq MAP 2010 - Logroño 13-16 November 2010 Assia Mahboubi INRIA Microsoft Research Joint Centre (France) INRIA Saclay Île-de-France École Polytechnique, Palaiseau

More information

Thus, X is connected by Problem 4. Case 3: X = (a, b]. This case is analogous to Case 2. Case 4: X = (a, b). Choose ε < b a

Thus, X is connected by Problem 4. Case 3: X = (a, b]. This case is analogous to Case 2. Case 4: X = (a, b). Choose ε < b a Solutions to Homework #6 1. Complete the proof of the backwards direction of Theorem 12.2 from class (which asserts the any interval in R is connected). Solution: Let X R be a closed interval. Case 1:

More information

Exam 2 extra practice problems

Exam 2 extra practice problems Exam 2 extra practice problems (1) If (X, d) is connected and f : X R is a continuous function such that f(x) = 1 for all x X, show that f must be constant. Solution: Since f(x) = 1 for every x X, either

More information

On linear and non-linear equations. (Sect. 1.6).

On linear and non-linear equations. (Sect. 1.6). On linear and non-linear equations. (Sect. 1.6). Review: Linear differential equations. Non-linear differential equations. The Picard-Lindelöf Theorem. Properties of solutions to non-linear ODE. The Proof

More information

Programming with Higher Inductive Types

Programming with Higher Inductive Types 1/32 Programming with Higher Inductive Types Herman Geuvers joint work with Niels van der Weide, Henning Basold, Dan Frumin, Leon Gondelman Radboud University Nijmegen, The Netherlands November 17, 2017

More information

Math 117: Continuity of Functions

Math 117: Continuity of Functions Math 117: Continuity of Functions John Douglas Moore November 21, 2008 We finally get to the topic of ɛ δ proofs, which in some sense is the goal of the course. It may appear somewhat laborious to use

More information

CHAPTER 7. An Introduction to Numerical Methods for. Linear and Nonlinear ODE s

CHAPTER 7. An Introduction to Numerical Methods for. Linear and Nonlinear ODE s A SERIES OF CLASS NOTES FOR 2005-2006 TO INTRODUCE LINEAR AND NONLINEAR PROBLEMS TO ENGINEERS, SCIENTISTS, AND APPLIED MATHEMATICIANS DE CLASS NOTES 1 A COLLECTION OF HANDOUTS ON FIRST ORDER ORDINARY DIFFERENTIAL

More information

Applied Analysis (APPM 5440): Final exam 1:30pm 4:00pm, Dec. 14, Closed books.

Applied Analysis (APPM 5440): Final exam 1:30pm 4:00pm, Dec. 14, Closed books. Applied Analysis APPM 44: Final exam 1:3pm 4:pm, Dec. 14, 29. Closed books. Problem 1: 2p Set I = [, 1]. Prove that there is a continuous function u on I such that 1 ux 1 x sin ut 2 dt = cosx, x I. Define

More information

1 The Existence and Uniqueness Theorem for First-Order Differential Equations

1 The Existence and Uniqueness Theorem for First-Order Differential Equations 1 The Existence and Uniqueness Theorem for First-Order Differential Equations Let I R be an open interval and G R n, n 1, be a domain. Definition 1.1 Let us consider a function f : I G R n. The general

More information

COMPLETE METRIC SPACES AND THE CONTRACTION MAPPING THEOREM

COMPLETE METRIC SPACES AND THE CONTRACTION MAPPING THEOREM COMPLETE METRIC SPACES AND THE CONTRACTION MAPPING THEOREM A metric space (M, d) is a set M with a metric d(x, y), x, y M that has the properties d(x, y) = d(y, x), x, y M d(x, y) d(x, z) + d(z, y), x,

More information

The Flow of ODEs. Fabian Immler and Christoph Traut. Institut für Informatik, Technische Universität München {immler,

The Flow of ODEs. Fabian Immler and Christoph Traut. Institut für Informatik, Technische Universität München {immler, The Flow of ODEs Fabian Immler and Christoph Traut Institut für Informatik, Technische Universität München {immler, trautc}@in.tum.de Abstract. Formal analysis of ordinary differential equations (ODEs)

More information

The Curry-Howard Isomorphism

The Curry-Howard Isomorphism The Curry-Howard Isomorphism Software Formal Verification Maria João Frade Departmento de Informática Universidade do Minho 2008/2009 Maria João Frade (DI-UM) The Curry-Howard Isomorphism MFES 2008/09

More information

THE INVERSE FUNCTION THEOREM FOR LIPSCHITZ MAPS

THE INVERSE FUNCTION THEOREM FOR LIPSCHITZ MAPS THE INVERSE FUNCTION THEOREM FOR LIPSCHITZ MAPS RALPH HOWARD DEPARTMENT OF MATHEMATICS UNIVERSITY OF SOUTH CAROLINA COLUMBIA, S.C. 29208, USA HOWARD@MATH.SC.EDU Abstract. This is an edited version of a

More information

Metric Spaces and Topology

Metric Spaces and Topology Chapter 2 Metric Spaces and Topology From an engineering perspective, the most important way to construct a topology on a set is to define the topology in terms of a metric on the set. This approach underlies

More information

Arithmetic-Geometric Means for π A formal study

Arithmetic-Geometric Means for π A formal study Arithmetic-Geometric Means for π A formal study Yves Bertot February 014 Objectives Already studied computations of pi through roots of cos, arctan, Archimedes Follow an exam from the French national selection

More information

CS3110 Fall 2013 Lecture 11: The Computable Real Numbers, R (10/3)

CS3110 Fall 2013 Lecture 11: The Computable Real Numbers, R (10/3) CS3110 Fall 2013 Lecture 11: The Computable Real Numbers, R (10/3) Robert Constable 1 Lecture Plan More about the rationals dependent types enumerating Q (Q is countable) Function inverses bijections one-one

More information

FIXED POINT METHODS IN NONLINEAR ANALYSIS

FIXED POINT METHODS IN NONLINEAR ANALYSIS FIXED POINT METHODS IN NONLINEAR ANALYSIS ZACHARY SMITH Abstract. In this paper we present a selection of fixed point theorems with applications in nonlinear analysis. We begin with the Banach fixed point

More information

Cylindrical Algebraic Decomposition in Coq

Cylindrical Algebraic Decomposition in Coq Cylindrical Algebraic Decomposition in Coq MAP 2010 - Logroño 13-16 November 2010 Assia Mahboubi INRIA Microsoft Research Joint Centre (France) INRIA Saclay Île-de-France École Polytechnique, Palaiseau

More information

THE CONTRACTION MAPPING THEOREM

THE CONTRACTION MAPPING THEOREM THE CONTRACTION MAPPING THEOREM KEITH CONRAD 1. Introduction Let f : X X be a mapping from a set X to itself. We call a point x X a fixed point of f if f(x) = x. For example, if [a, b] is a closed interval

More information

Bounded uniformly continuous functions

Bounded uniformly continuous functions Bounded uniformly continuous functions Objectives. To study the basic properties of the C -algebra of the bounded uniformly continuous functions on some metric space. Requirements. Basic concepts of analysis:

More information

1.6 Computing and Existence

1.6 Computing and Existence 1.6 Computing and Existence 57 1.6 Computing and Existence The initial value problem (1) y = f(x,y), y(x 0 ) = y 0 is studied here from a computational viewpoint. Answered are some basic questions about

More information

Volumes of Solids of Revolution Lecture #6 a

Volumes of Solids of Revolution Lecture #6 a Volumes of Solids of Revolution Lecture #6 a Sphereoid Parabaloid Hyperboloid Whateveroid Volumes Calculating 3-D Space an Object Occupies Take a cross-sectional slice. Compute the area of the slice. Multiply

More information

Cylindrical Algebraic Decomposition in Coq

Cylindrical Algebraic Decomposition in Coq Cylindrical Algebraic Decomposition in Coq MAP 2010 - Logroño 13-16 November 2010 Assia Mahboubi INRIA Microsoft Research Joint Centre (France) INRIA Saclay Île-de-France École Polytechnique, Palaiseau

More information

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

Higher toposes Internal logic Modalities Sub- -toposes Formalization. Modalities in HoTT. Egbert Rijke, Mike Shulman, Bas Spitters 1706. Modalities in HoTT Egbert Rijke, Mike Shulman, Bas Spitters 1706.07526 Outline 1 Higher toposes 2 Internal logic 3 Modalities 4 Sub- -toposes 5 Formalization Two generalizations of Sets Groupoids: To keep

More information

Preliminary Exam 2018 Solutions to Morning Exam

Preliminary Exam 2018 Solutions to Morning Exam Preliminary Exam 28 Solutions to Morning Exam Part I. Solve four of the following five problems. Problem. Consider the series n 2 (n log n) and n 2 (n(log n)2 ). Show that one converges and one diverges

More information

Equational Reasoning in Algebraic Structures: a Complete Tactic

Equational Reasoning in Algebraic Structures: a Complete Tactic Equational Reasoning in Algebraic Structures: a Complete Tactic Luís Cruz-Filipe 1,2 and Freek Wiedijk 1 1 NIII, University of Nijmegen, Netherlands and 2 CLC, Lisbon, Portugal Abstract We present rational,

More information

2.1 Dynamical systems, phase flows, and differential equations

2.1 Dynamical systems, phase flows, and differential equations Chapter 2 Fundamental theorems 2.1 Dynamical systems, phase flows, and differential equations A dynamical system is a mathematical formalization of an evolutionary deterministic process. An evolutionary

More information

Economics 204 Fall 2011 Problem Set 2 Suggested Solutions

Economics 204 Fall 2011 Problem Set 2 Suggested Solutions Economics 24 Fall 211 Problem Set 2 Suggested Solutions 1. Determine whether the following sets are open, closed, both or neither under the topology induced by the usual metric. (Hint: think about limit

More information

logical verification lecture program extraction and prop2

logical verification lecture program extraction and prop2 logical verification lecture 7 2017-05-04 program extraction and prop2 overview program extraction program extraction: examples verified programs: alternative approach formulas of prop2 terminology proofs

More information

Existence Theory: Green s Functions

Existence Theory: Green s Functions Chapter 5 Existence Theory: Green s Functions In this chapter we describe a method for constructing a Green s Function The method outlined is formal (not rigorous) When we find a solution to a PDE by constructing

More information

Mathematical Analysis Outline. William G. Faris

Mathematical Analysis Outline. William G. Faris Mathematical Analysis Outline William G. Faris January 8, 2007 2 Chapter 1 Metric spaces and continuous maps 1.1 Metric spaces A metric space is a set X together with a real distance function (x, x ) d(x,

More information

Internal Universes in Models of Homotopy Type Theory. Daniel R. Licata Ian Orton Andrew M. Pitts Bas Spitters

Internal Universes in Models of Homotopy Type Theory. Daniel R. Licata Ian Orton Andrew M. Pitts Bas Spitters Internal Universes in Models of Homotopy Type Theory Daniel R. Licata Ian Orton Andrew M. Pitts Bas Spitters HoTT Voevodsky: Simplicial model of univalent type theory Coquand: Cubical model of univalent

More information

Homological Processing of Biomedical digital images: automation and certification 1

Homological Processing of Biomedical digital images: automation and certification 1 Homological Processing of Biomedical digital images: automation and certification 1 Jónathan Heras, Gadea Mata, María Poza and Julio Rubio Department of Mathematics and Computer Science University of La

More information

Formalization of Real Analysis: A Survey of Proof Assistants and Libraries

Formalization of Real Analysis: A Survey of Proof Assistants and Libraries Formalization of Real Analysis: A Survey of Proof Assistants and Libraries Sylvie Boldo, Catherine Lelay, Guillaume Melquiond To cite this version: Sylvie Boldo, Catherine Lelay, Guillaume Melquiond. Formalization

More information

On Existence and Uniqueness of Solutions of Ordinary Differential Equations

On Existence and Uniqueness of Solutions of Ordinary Differential Equations On Existence and Uniqueness of Solutions of Ordinary Differential Equations Michael Björklund Abstract This paper concentrates on questions regarding existence and uniqueness to the generic initial value

More information

Basic Theory of Linear Differential Equations

Basic Theory of Linear Differential Equations Basic Theory of Linear Differential Equations Picard-Lindelöf Existence-Uniqueness Vector nth Order Theorem Second Order Linear Theorem Higher Order Linear Theorem Homogeneous Structure Recipe for Constant-Coefficient

More information

Towards Operations on Operational Semantics

Towards Operations on Operational Semantics Towards Operations on Operational Semantics Mauro Jaskelioff mjj@cs.nott.ac.uk School of Computer Science & IT 22 nd British Colloquium for Theoretical Computer Science The Context We need semantics to

More information

Half of Final Exam Name: Practice Problems October 28, 2014

Half of Final Exam Name: Practice Problems October 28, 2014 Math 54. Treibergs Half of Final Exam Name: Practice Problems October 28, 24 Half of the final will be over material since the last midterm exam, such as the practice problems given here. The other half

More information

Economics 204 Summer/Fall 2011 Lecture 2 Tuesday July 26, 2011 N Now, on the main diagonal, change all the 0s to 1s and vice versa:

Economics 204 Summer/Fall 2011 Lecture 2 Tuesday July 26, 2011 N Now, on the main diagonal, change all the 0s to 1s and vice versa: Economics 04 Summer/Fall 011 Lecture Tuesday July 6, 011 Section 1.4. Cardinality (cont.) Theorem 1 (Cantor) N, the set of all subsets of N, is not countable. Proof: Suppose N is countable. Then there

More information

Notions such as convergent sequence and Cauchy sequence make sense for any metric space. Convergent Sequences are Cauchy

Notions such as convergent sequence and Cauchy sequence make sense for any metric space. Convergent Sequences are Cauchy Banach Spaces These notes provide an introduction to Banach spaces, which are complete normed vector spaces. For the purposes of these notes, all vector spaces are assumed to be over the real numbers.

More information

Real Analysis Problems

Real Analysis Problems Real Analysis Problems Cristian E. Gutiérrez September 14, 29 1 1 CONTINUITY 1 Continuity Problem 1.1 Let r n be the sequence of rational numbers and Prove that f(x) = 1. f is continuous on the irrationals.

More information

Nonlinear Control as Program Synthesis (A Starter)

Nonlinear Control as Program Synthesis (A Starter) Nonlinear Control as Program Synthesis (A Starter) Sicun Gao MIT December 15, 2014 Preliminaries Definition (L RF ) L RF is the first-order language over the reals that allows arbitrary numerically computable

More information

Existence and uniqueness of solutions for nonlinear ODEs

Existence and uniqueness of solutions for nonlinear ODEs Chapter 4 Existence and uniqueness of solutions for nonlinear ODEs In this chapter we consider the existence and uniqueness of solutions for the initial value problem for general nonlinear ODEs. Recall

More information

Categorical axioms for functional real-number computation

Categorical axioms for functional real-number computation Categorical axioms for functional real-number computation Parts 1 & 2 Martín Escardó University of Birmingham, England Joint work with Alex Simpson, University of Edinburgh, Scotland MAP, Leiden, 28 Nov

More information

g 2 (x) (1/3)M 1 = (1/3)(2/3)M.

g 2 (x) (1/3)M 1 = (1/3)(2/3)M. COMPACTNESS If C R n is closed and bounded, then by B-W it is sequentially compact: any sequence of points in C has a subsequence converging to a point in C Conversely, any sequentially compact C R n is

More information

Tools from Lebesgue integration

Tools from Lebesgue integration Tools from Lebesgue integration E.P. van den Ban Fall 2005 Introduction In these notes we describe some of the basic tools from the theory of Lebesgue integration. Definitions and results will be given

More information

NATIONAL BOARD FOR HIGHER MATHEMATICS. Research Scholarships Screening Test. Saturday, February 2, Time Allowed: Two Hours Maximum Marks: 40

NATIONAL BOARD FOR HIGHER MATHEMATICS. Research Scholarships Screening Test. Saturday, February 2, Time Allowed: Two Hours Maximum Marks: 40 NATIONAL BOARD FOR HIGHER MATHEMATICS Research Scholarships Screening Test Saturday, February 2, 2008 Time Allowed: Two Hours Maximum Marks: 40 Please read, carefully, the instructions on the following

More information

Introduction to Topology

Introduction to Topology Introduction to Topology Randall R. Holmes Auburn University Typeset by AMS-TEX Chapter 1. Metric Spaces 1. Definition and Examples. As the course progresses we will need to review some basic notions about

More information

NOTES ON EXISTENCE AND UNIQUENESS THEOREMS FOR ODES

NOTES ON EXISTENCE AND UNIQUENESS THEOREMS FOR ODES NOTES ON EXISTENCE AND UNIQUENESS THEOREMS FOR ODES JONATHAN LUK These notes discuss theorems on the existence, uniqueness and extension of solutions for ODEs. None of these results are original. The proofs

More information

Proofs of transcendance

Proofs of transcendance Proofs of transcendance Sophie Bernard, Laurence Rideau, Pierre-Yves Strub Yves Bertot November 2015 1 / 19 Objectives Study the gap between practical mathematics and computer-verified reasoning Explore

More information

5.3 Definite Integrals and Antiderivatives

5.3 Definite Integrals and Antiderivatives 5.3 Definite Integrals and Antiderivatives Objective SWBAT use properties of definite integrals, average value of a function, mean value theorem for definite integrals, and connect differential and integral

More information

The Contraction Mapping Principle

The Contraction Mapping Principle Chapter 3 The Contraction Mapping Principle The notion of a complete space is introduced in Section 1 where it is shown that every metric space can be enlarged to a complete one without further condition.

More information

Formalizing Basic Quaternionic Analysis

Formalizing Basic Quaternionic Analysis Formalizing Basic Quaternionic Analysis Andrea Gabrielli Marco Maggesi University of Florence, Italy Brasilia, ITP 2017 Andrea Gabrielli, Marco Maggesi (UniFI) Formalizing Basic Quaternionic Analysis Brasilia,

More information

Existence and Uniqueness

Existence and Uniqueness Chapter 3 Existence and Uniqueness An intellect which at a certain moment would know all forces that set nature in motion, and all positions of all items of which nature is composed, if this intellect

More information

Construction of real algebraic numbers in Coq

Construction of real algebraic numbers in Coq Author manuscript, published in "ITP - 3rd International Conference on Interactive Theorem Proving - 2012 (2012)" Construction of real algebraic numbers in Coq Cyril Cohen INRIA Saclay Île-de-France, LIX

More information

Reducibility in polynomialtime computable analysis. Akitoshi Kawamura (U Tokyo) Wadern, Germany, September 24, 2015

Reducibility in polynomialtime computable analysis. Akitoshi Kawamura (U Tokyo) Wadern, Germany, September 24, 2015 Reducibility in polynomialtime computable analysis Akitoshi Kawamura (U Tokyo) Wadern, Germany, September 24, 2015 Computable Analysis Applying computability / complexity theory to problems involving real

More information

Functional Analysis. Franck Sueur Metric spaces Definitions Completeness Compactness Separability...

Functional Analysis. Franck Sueur Metric spaces Definitions Completeness Compactness Separability... Functional Analysis Franck Sueur 2018-2019 Contents 1 Metric spaces 1 1.1 Definitions........................................ 1 1.2 Completeness...................................... 3 1.3 Compactness......................................

More information

The space of located subsets

The space of located subsets The space of located subsets Tatsuji Kawai Universtà di Padova Second CORE meeting, 27 January 2017, LMU 1 / 26 The space of located subsets We are interested in a point-free topology on the located subsets

More information

TEST CODE: PMB SYLLABUS

TEST CODE: PMB SYLLABUS TEST CODE: PMB SYLLABUS Convergence and divergence of sequence and series; Cauchy sequence and completeness; Bolzano-Weierstrass theorem; continuity, uniform continuity, differentiability; directional

More information

Proof assistants as a tool for thought

Proof assistants as a tool for thought Proof assistants as a tool for thought Katherine Ye @hypotext Tools for thought workshop, March 16 circa 1700 Disputants unable to agree would not waste much time in futile argument... Leibniz (Harrison)

More information

From now on, we will represent a metric space with (X, d). Here are some examples: i=1 (x i y i ) p ) 1 p, p 1.

From now on, we will represent a metric space with (X, d). Here are some examples: i=1 (x i y i ) p ) 1 p, p 1. Chapter 1 Metric spaces 1.1 Metric and convergence We will begin with some basic concepts. Definition 1.1. (Metric space) Metric space is a set X, with a metric satisfying: 1. d(x, y) 0, d(x, y) = 0 x

More information

. For each initial condition y(0) = y 0, there exists a. unique solution. In fact, given any point (x, y), there is a unique curve through this point,

. For each initial condition y(0) = y 0, there exists a. unique solution. In fact, given any point (x, y), there is a unique curve through this point, 1.2. Direction Fields: Graphical Representation of the ODE and its Solution Section Objective(s): Constructing Direction Fields. Interpreting Direction Fields. Definition 1.2.1. A first order ODE of the

More information

MAS3706 Topology. Revision Lectures, May I do not answer enquiries as to what material will be in the exam.

MAS3706 Topology. Revision Lectures, May I do not answer  enquiries as to what material will be in the exam. MAS3706 Topology Revision Lectures, May 208 Z.A.Lykova It is essential that you read and try to understand the lecture notes from the beginning to the end. Many questions from the exam paper will be similar

More information

Type Theory and Univalent Foundation

Type Theory and Univalent Foundation Thierry Coquand Clermont-Ferrand, October 17, 2013 This talk Revisit some questions discussed by Russell at the beginning of Type Theory -Russell s Paradox (1901) -Theory of Descriptions (1905) -Theory

More information

Approximating models based on fuzzy transforms

Approximating models based on fuzzy transforms Approximating models based on fuzzy transforms Irina Perfilieva University of Ostrava Institute for Research and Applications of Fuzzy Modeling 30. dubna 22, 701 03 Ostrava 1, Czech Republic e-mail:irina.perfilieva@osu.cz

More information

a = a i 2 i a = All such series are automatically convergent with respect to the standard norm, but note that this representation is not unique: i<0

a = a i 2 i a = All such series are automatically convergent with respect to the standard norm, but note that this representation is not unique: i<0 p-adic Numbers K. Sutner v0.4 1 Modular Arithmetic rings integral domains integers gcd, extended Euclidean algorithm factorization modular numbers add Lemma 1.1 (Chinese Remainder Theorem) Let a b. Then

More information

Math 127: Course Summary

Math 127: Course Summary Math 27: Course Summary Rich Schwartz October 27, 2009 General Information: M27 is a course in functional analysis. Functional analysis deals with normed, infinite dimensional vector spaces. Usually, these

More information

MATH 51H Section 4. October 16, Recall what it means for a function between metric spaces to be continuous:

MATH 51H Section 4. October 16, Recall what it means for a function between metric spaces to be continuous: MATH 51H Section 4 October 16, 2015 1 Continuity Recall what it means for a function between metric spaces to be continuous: Definition. Let (X, d X ), (Y, d Y ) be metric spaces. A function f : X Y is

More information

Solutions to Problem Set 5 for , Fall 2007

Solutions to Problem Set 5 for , Fall 2007 Solutions to Problem Set 5 for 18.101, Fall 2007 1 Exercise 1 Solution For the counterexample, let us consider M = (0, + ) and let us take V = on M. x Let W be the vector field on M that is identically

More information

Homotopy Type Theory. Benno van den Berg. LoLaCo, 29 September 2014

Homotopy Type Theory. Benno van den Berg. LoLaCo, 29 September 2014 Homotopy Type Theory Benno van den Berg LoLaCo, 29 September 2014 1 / 19 What is homotopy type theory? It introduces ideas from HOMOTOPY THEORY in TYPE THEORY. 2 / 19 What is homotopy theory? What is homotopy

More information

PH.D. PRELIMINARY EXAMINATION MATHEMATICS

PH.D. PRELIMINARY EXAMINATION MATHEMATICS UNIVERSITY OF CALIFORNIA, BERKELEY SPRING SEMESTER 207 Dept. of Civil and Environmental Engineering Structural Engineering, Mechanics and Materials NAME PH.D. PRELIMINARY EXAMINATION MATHEMATICS Problem

More information

NORTH MAHARASHTRA UNIVERSITY JALGAON.

NORTH MAHARASHTRA UNIVERSITY JALGAON. NORTH MAHARASHTRA UNIVERSITY JALGAON. Syllabus for S.Y.B.Sc. (Mathematics) With effect from June 013. (Semester system). The pattern of examination of theory papers is semester system. Each theory course

More information

1.2. Direction Fields: Graphical Representation of the ODE and its Solution Let us consider a first order differential equation of the form dy

1.2. Direction Fields: Graphical Representation of the ODE and its Solution Let us consider a first order differential equation of the form dy .. Direction Fields: Graphical Representation of the ODE and its Solution Let us consider a first order differential equation of the form dy = f(x, y). In this section we aim to understand the solution

More information

Problem set 5, Real Analysis I, Spring, otherwise. (a) Verify that f is integrable. Solution: Compute since f is even, 1 x (log 1/ x ) 2 dx 1

Problem set 5, Real Analysis I, Spring, otherwise. (a) Verify that f is integrable. Solution: Compute since f is even, 1 x (log 1/ x ) 2 dx 1 Problem set 5, Real Analysis I, Spring, 25. (5) Consider the function on R defined by f(x) { x (log / x ) 2 if x /2, otherwise. (a) Verify that f is integrable. Solution: Compute since f is even, R f /2

More information

Discrete Mathematics. W. Ethan Duckworth. Fall 2017, Loyola University Maryland

Discrete Mathematics. W. Ethan Duckworth. Fall 2017, Loyola University Maryland Discrete Mathematics W. Ethan Duckworth Fall 2017, Loyola University Maryland Contents 1 Introduction 4 1.1 Statements......................................... 4 1.2 Constructing Direct Proofs................................

More information

Functional Analysis Exercise Class

Functional Analysis Exercise Class Functional Analysis Exercise Class Week 2 November 6 November Deadline to hand in the homeworks: your exercise class on week 9 November 13 November Exercises (1) Let X be the following space of piecewise

More information

Math 5210, Definitions and Theorems on Metric Spaces

Math 5210, Definitions and Theorems on Metric Spaces Math 5210, Definitions and Theorems on Metric Spaces Let (X, d) be a metric space. We will use the following definitions (see Rudin, chap 2, particularly 2.18) 1. Let p X and r R, r > 0, The ball of radius

More information

Principle of Mathematical Induction

Principle of Mathematical Induction Advanced Calculus I. Math 451, Fall 2016, Prof. Vershynin Principle of Mathematical Induction 1. Prove that 1 + 2 + + n = 1 n(n + 1) for all n N. 2 2. Prove that 1 2 + 2 2 + + n 2 = 1 n(n + 1)(2n + 1)

More information

Definitions & Theorems

Definitions & Theorems Definitions & Theorems Math 147, Fall 2009 December 19, 2010 Contents 1 Logic 2 1.1 Sets.................................................. 2 1.2 The Peano axioms..........................................

More information

Real Analysis. Joe Patten August 12, 2018

Real Analysis. Joe Patten August 12, 2018 Real Analysis Joe Patten August 12, 2018 1 Relations and Functions 1.1 Relations A (binary) relation, R, from set A to set B is a subset of A B. Since R is a subset of A B, it is a set of ordered pairs.

More information

Before you begin read these instructions carefully.

Before you begin read these instructions carefully. MATHEMATICAL TRIPOS Part IB Tuesday, 31 May, 2016 9:00 am to 12:00 pm PAPER 1 Before you begin read these instructions carefully. Each question in Section II carries twice the number of marks of each question

More information

Real Analysis Qualifying Exam May 14th 2016

Real Analysis Qualifying Exam May 14th 2016 Real Analysis Qualifying Exam May 4th 26 Solve 8 out of 2 problems. () Prove the Banach contraction principle: Let T be a mapping from a complete metric space X into itself such that d(tx,ty) apple qd(x,

More information

Bootcamp. Christoph Thiele. Summer As in the case of separability we have the following two observations: Lemma 1 Finite sets are compact.

Bootcamp. Christoph Thiele. Summer As in the case of separability we have the following two observations: Lemma 1 Finite sets are compact. Bootcamp Christoph Thiele Summer 212.1 Compactness Definition 1 A metric space is called compact, if every cover of the space has a finite subcover. As in the case of separability we have the following

More information

Math Numerical Analysis Mid-Term Test Solutions

Math Numerical Analysis Mid-Term Test Solutions Math 400 - Numerical Analysis Mid-Term Test Solutions. Short Answers (a) A sufficient and necessary condition for the bisection method to find a root of f(x) on the interval [a,b] is f(a)f(b) < 0 or f(a)

More information