Title: Abbas Edalat
1Domain-theoretic Solution of Differential
Equations
- Abbas Edalat
- Imperial College London
- www.doc.ic.ac.uk/ae
- joint work with Marko Krznaric and Andre Lieutier
2Aim
- Develop data types for ordinary differential
equations. - Solve initial value problems up to any given
precision
3The Domain of Intervals of R
- Let IR a,b a, b ? R ? R
- (IR, ?) is a cpo with R as bottom ? and ?i ?0
ai ?i ?0 ai - (IR, ?) is a continuous Scott domain
- countable basis p,q p lt q p, q ? Q
4Data-type for Functions
- Lubs of finite and bounded collections of single-
step functions
- ?1 ? i ? n(ai ? bi)
- are called step functions.
5Step Functions-An Example
R
b3
a3
b1
b2
a1
a2
0
1
6Refining the Step Functions
R
b3
a3
b1
a1
b2
a2
0
1
7Domain for Continuous Functions
- Partial order on functions 0,1 ? IR f ?
g ? ?x ? R . f(x) ? g(x) - (0,1 ? IR, ?) is a continuous Scott domain.
- Step functions, with ai, bi rational intervals,
give a basis for 0,1 ? IR - f ? If C00,1 ? ( 0,1 ? IR) is an embedding
into a subset of maximal elements of 0,1 ? IR .
8Domain for Differentiable Functions
- What pairs ( f, g) ? (0,1 ? IR)2 approximate a
differentiable function?
9Function and Derivative Consistency
- Theorem. (f,g) ? Cons iff there is a least
function L(f,g) and a greatest function G(f,g)
with the above properties in each connected
component of dom(g) which intersects dom(f) .
10Consistency for basis elements
- (?1 ? i ? n ai ? bi , ?1 ? j ? m cj ? dj) ?
Cons is decidable
- Updating. Up(f,g) (fg , g) where
fg t ? L(f,g)(t) , G(f,g)(t)
11Function and Derivative Information
12Updating
13Updating Algorithm
14Updating Algorithm (left to right)
f
1
1
15Updating Algorithm (left to right)
16Updating Algorithm (right to left)
17Updating Algorithm (right to left)
18Dually for the upper boundary
19Output of the Updating Algorithm
20The Domain of Differentiable Functions
- Theorem.D1 0,1 (f,g) ? (0,1?IR)2 (f,g)
? Cons is a continuous Scott domain.
- Theorem. C10,1 embeds into the set of maximal
elements of D1 0,1
21Solving Initial Value Problems
- The function v is bounded by M say in a rectangle
K around the origin. Take positive alt1, say,
such that -a,a ?-Ma,Ma ? K. - The initial condition x(0) 0 is captured by the
Scott continuous map - f ?n ?0 fn where fn -a/2n,a
/2n ? -Ma/2n , Ma/ 2n
- This is the initial function approximation.
- It also gives the initial derivative
approximation
?t. v (t , f(t) ))
22Function and Derivative Upgrading
- Derivative upgrading
- Apv (-1,1 ? IR)2 ? (-1,1 ?
IR)2 (f,g) ? ( f ,
?t. v (t , f(t) )) - Function upgrading
- Up (-1,1 ? IR)2 ? (-1,1 ?
IR)2
Up(f,g) (fg , g) where fg (t) L
(f,g) (t) , G (f,g) (t)
- Solve the ODE by iterating Up ? Apv on D1 -1,1
starting with
(f, ?t. v (t , f(t) )) - Theorem. The domain-theoretic solution
?n ?0 (Up ? Apv )n (f, ?t. v (t , f(t) ))
- is the unique classical solution through
(0,0).
23Computation of the solution for a given precision
? gt0
- We express f and v as lubs of step functions
- f ?n ?0 fn
v ?n ?0 vn - Putting Pv Up ? Apv the solution is obtained
as
- For all n ?0 we have un- ? un1- ? un1 ?
un with un - un- ? ?t. 0 - Compute the piecewise linear maps un- , un until
the
first n ?0 with un - un- ? ?
24Example
v is approximated by a sequence of step
functions, v0, v1, v ?i vi
.
t
The initial condition is approximated by
rectangles ai?bi (1/2,9/8) ?i ai?bi,
v
t
25Solution
At stage n we find un - and un
.
26Solution
At stage n we find un - and un
.
27Solution
At stage n we find un - and un
.
un - and un tend to the exact solutionf t ?
t2/2 1
28Computing with polynomial step functions
29Current and Further Work
- Implementation in Haskell
- Differential Calculus with Several Variables
PDEs - Construction of Smooth Curves and Surfaces
- Hybrid Systems, robotics,
30THE ENDhttp//www.doc.ic.ac.uk/ae