Towards a Type Theory for Linear Partial Differential Equations - - PowerPoint PPT Presentation

towards a type theory for linear partial differential
SMART_READER_LITE
LIVE PREVIEW

Towards a Type Theory for Linear Partial Differential Equations - - PowerPoint PPT Presentation

Denotational semantics of LL A model with Distributions Linear PDE as exponentials June 2017, ITU, Copenhagen Towards a Type Theory for Linear Partial Differential Equations Marie Kerjean IRIF, Universit e Paris Diderot kerjean@irif.fr


slide-1
SLIDE 1

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

June 2017, ITU, Copenhagen

Towards a Type Theory for Linear Partial Differential Equations

Marie Kerjean

IRIF, Universit´ e Paris Diderot kerjean@irif.fr

June 16, 2017

slide-2
SLIDE 2

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Linear Logic

A decomposition of the implication

A ⇒ B ≃!A ⊸ B

Denotational semantic

We interpret formulas as sets and proofs as functions between these sets.

Denotational semantic of LL

We have a cohabitation between linear functions and non-linear functions.

slide-3
SLIDE 3

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Linear Logic

Classical logic

¬A = A ⇒ ⊥ and ¬¬A ≃ A. Linear Logic features an involutive linear negation : A⊥ ≃ A ⊸ 1 A⊥⊥ ≃ A

slide-4
SLIDE 4

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Smoothness

Differentiation

Differentiating a function f : Rn → R at x is finding a linear approximation d(f )(x) : v → D(f )(x)(v) of f near x. Smooth functions are functions which can be differentiated everywhere in their domain and whose differentials are smooth.

slide-5
SLIDE 5

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Differential Linear Logic

A modification of the exponential rules of Linear Logic in order to allow differentiation.

Semantics

For each f :!A ⊸ B ≃ C∞(A, B) we have Df (0) : A ⊸ B

Syntax

⊢ Γ, A d ⊢ Γ, ?A ⊢ Γ w ⊢ Γ, ?A ⊢ Γ, ?A, ?A c ⊢ Γ, ?A ⊢ Γ, !A, !A ¯ c ⊢ Γ, !A ⊢ Γ ¯ w ⊢ Γ, !A ⊢ Γ, A ¯ d ⊢ Γ, !A

co-dereliction

¯ d : x → f → Df (0)(x)

slide-6
SLIDE 6

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Why differential linear logic ?

◮ Differentiation was in the air since the study of Analytic

functors by Girard : ¯ d(x) :

  • fn → f1(x)

◮ DiLL was developed after a study vectorial models of LL

inspired by coherent spaces : Finiteness spaces (Ehrard 2005), K¨

  • the spaces (Ehrhard 2002).

It leads to differential λ-calculus and applications for probabilistic programming languages.

Normal functors, power series and λ-calculus. Girard, APAL(1988) Differential interaction nets, Ehrhard and Regnier, TCS (2006)

slide-7
SLIDE 7

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Smoothness of proofs

◮ Proofs are interpreted as graphs, relations between sets, power

series on finite dimensional vector spaces, strategies between games: those are discrete objects.

◮ Differentiation appeals to differential geometry, manifolds,

functional analysis : we want to find a denotational model of DiLL where proofs are smooth functions. TEASING: to get to differential equations.

slide-8
SLIDE 8

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Plan

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

slide-9
SLIDE 9

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Denotational semantics of classical linear logic

slide-10
SLIDE 10

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Interpreting LL in vector spaces

Consider formulas interpreted by finite dimensional vector spaces or Banach spaces. Monoidal Closed Category : Linear Functions A⊸B, ⊗, ` Cartesian closed category : Non-linear functions !A ⊸ B, &, ⊕ ! U

slide-11
SLIDE 11

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Interpreting LL in vector spaces

Consider formulas interpreted by finite dimensional vector spaces or Banach spaces. The product Monoidal Closed Category : Linear Functions A⊸B, ⊗, ` Cartesian closed category : Non-linear functions !A ⊸ B, &, ⊕ ! U

slide-12
SLIDE 12

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Interpreting LL in vector spaces

Consider formulas interpreted by finite dimensional vector spaces or Banach spaces. The product The coproduct Monoidal Closed Category : Linear Functions A⊸B, ⊗, ` Cartesian closed category : Non-linear functions !A ⊸ B, &, ⊕ ! U

slide-13
SLIDE 13

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Interpreting LL in vector spaces

Consider formulas interpreted by finite dimensional vector spaces or Banach spaces. The product The coproduct The tensor product The epsilon product 1 Monoidal Closed Category : Linear Functions A⊸B, ⊗, ` Cartesian closed category : Non-linear functions !A ⊸ B, &, ⊕ ! U

1Work with Y. Dabrowski

slide-14
SLIDE 14

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Interpreting LL in vector spaces

Consider formulas interpreted by finite dimensional vector spaces or Banach spaces. Linear Functions A⊸B, ⊗, ` A ⊗ B ⊸ C ≃ A ⊸ (B ⊸ C) Cartesian closed category : Non-linear functions !A ⊸ B, &, ⊕ ! U

slide-15
SLIDE 15

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Interpreting LL in vector spaces

Consider formulas interpreted by finite dimensional vector spaces or Banach spaces. Linear Functions A⊸B, ⊗, ` A ⊗ B ⊸ C ≃ A ⊸ (B ⊸ C) Cartesian closed category : Non-linear functions !A ⊸ B, &, ⊕ ! U !E⊗!F ≃!(E × F)

slide-16
SLIDE 16

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Interpreting DiLL in vector spaces

!E E Linear Functions A⊸B, ⊗, ` Non-linear functions !A ⊸ B, &, ⊕ d ¯ d !E⊗!F ≃!(E × F) d ◦ ¯ d = IdE !E⊗!F ≃!(E × F) allows to have a cartesian closed Co-Kleisli category

slide-17
SLIDE 17

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Interpreting DiLL in vector spaces

!E E Linear Functions A⊸B, ⊗, ` Non-linear functions !A ⊸ B, &, ⊕ d ¯ d !E⊗!F ≃!(E × F) d ◦ ¯ d = IdE d ◦ ¯ d = IdE expresses the fact that the differential at 0 of a linear function is the same linear function. We want to find good spaces in which we can interpret all these constructions, and an appropriate notion of smooth functions.

slide-18
SLIDE 18

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Challenges

We encounter several difficulties in the context of topological vector spaces :

◮ Finding a good topological tensor product. ◮ Finding a category of smooth functions which is Cartesian

closed.

◮ Interpreting the involutive linear negation (E ⊥)⊥ ≃ E

slide-19
SLIDE 19

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Challenges

We encounter several difficulties in the context of topological vector spaces :

◮ Finding a good topological tensor product. ◮ Finding a category of smooth functions which is Cartesian

closed.

◮ Interpreting the involutive linear negation (E ⊥)⊥ ≃ E

Convenient differential category Blute, Ehrhard Tasson Cah. Geom. Diff. (2010) Mackey-complete spaces and Power series, K. and Tasson, MSCS 2016.

slide-20
SLIDE 20

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Challenges

We encounter several difficulties in the context of topological vector spaces :

◮ Finding a good topological tensor product. ◮ Finding a category of smooth functions which is Cartesian

closed.

◮ Interpreting the involutive linear negation (E ⊥)⊥ ≃ E

Weak topologies for Linear Logic, K. LMCS 2015.

slide-21
SLIDE 21

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Challenges

We encounter several difficulties in the context of topological vector spaces :

◮ Finding a good topological tensor product. ◮ Finding a category of smooth functions which is Cartesian

closed.

◮ Interpreting the involutive linear negation (E ⊥)⊥ ≃ E ◮

A model of LL with Schwartz’ epsilon product, K. and Dabrowski, In preparation.

Distributions and Smooth Differential Linear Logic, K., In preparation

slide-22
SLIDE 22

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

The categorical semantics of an involutive linear negation

Linear Logic features an involutive linear negation : A⊥ ≃ A ⊸ 1 A⊥⊥ ≃ A *-autonomous categories are monoidal closed categories with a distinguished object 1 such that E ≃ (E ⊸ 1) ⊸ 1 through dA. dA :

  • E → (E ⊸ 1) ⊸ 1

x → evx : f → f (x)

slide-23
SLIDE 23

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

∗-autonomous categories of vector spaces

I want to explain to my math colleague what is a *-autonomous category: ⊥ neutral for `, thus ⊥ ≃ R, A ⊸ 1 is A′ = L(A, R). dA :

  • E → E ′′

x → evx : f → f (x) should be an isomophism.

Exclamation

Well, this is a just a category of reflexive vector space.

slide-24
SLIDE 24

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

∗-autonomous categories of vector spaces

I want to explain to my math colleague what is a *-autonomous category: ⊥ neutral for `, thus ⊥ ≃ R, A ⊸ 1 is A′ = L(A, R). dA :

  • E → E ′′

x → evx : f → f (x) should be an isomophism.

Exclamation

Well, this is a just a category of reflexive vector space.

Disapointment

Well, the category of reflexive topological vector space is not closed (eg: Hilbert spaces).

slide-25
SLIDE 25

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

A model with Distributions

slide-26
SLIDE 26

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Topological vector spaces

We work with Hausdorff topological vector spaces : real or complex vector spaces endowed with a Haussdorf topology making addition and scalar multiplication continuous.

◮ The topology on E determines E ′. ◮ The topology on E ′ determines whether E ≃ E ′′.

We work within the category TopVect of topological vector spaces and continuous linear functions between them.

slide-27
SLIDE 27

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Topological models of DiLL

Let us take the other way around, through Nuclear Fr´ echet spaces.

slide-28
SLIDE 28

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Polarized models of LL

Negative Positive M, N P, Q X ⊥ X P ⊗ Q M ` N !N ?P ( )⊥ ( )⊥

slide-29
SLIDE 29

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Fr´ echet and DF spaces

◮ Fr´

echet : metrizable complete spaces.

◮ (DF)-spaces : such that the dual of a Fr´

echet is (DF) and the dual of a (DF) is Fr´ echet. DF-spaces Fr´ echet-spaces Rn E E ′ P ⊗ Q M ` N ( )′ ( )′

slide-30
SLIDE 30

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Nuclear spaces

Nuclear spaces are spaces in which for which you can identify the two canonical topologies on tensor products : ∀F, E ⊗π F = E ⊗ǫ F Fr´ echet spaces DF-spaces Nuclear spaces ⊗π = ⊗ǫ Rn E E ′ ⊗π ` ( )′ ( )′

slide-31
SLIDE 31

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Nuclear spaces

A polarized ⋆-autonomous category

A Nuclear space which is also Fr´ echet or (DF) is reflexive. Fr´ echet spaces DF-spaces Nuclear spaces ⊗π = ⊗ǫ Rn E E ′ ⊗π ` ( )′ ( )′

slide-32
SLIDE 32

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Nuclear spaces

We get a polarized model of MALL : involutive negation ( )⊥, ⊗, `, ⊕, ×. Fr´ echet spaces DF-spaces Nuclear spaces ⊗π = ⊗ǫ Rn E E ′ ⊗π ` ( )′ ( )′

slide-33
SLIDE 33

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Distributions and the Kernel theorems

Examples of Nuclear Fr´ echet spaces includes : C∞(Rn, R), C∞

c (Rn, R), H(C, C), ..

Typical Nucl´ ear Fr´ echet spaces are distributions spaces Schwartz’ generalized functions : C∞(Rn, R)′, C∞

c (Rn, R)′, H′(C, C), ..

The Kernel Theorems

C∞

c (E, R)′ ⊗ C∞ c (F, R)′ ≃ C∞ c (E × F, R)′

slide-34
SLIDE 34

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Distributions and the Kernel theorems

Examples of Nuclear Fr´ echet spaces includes : C∞(Rn, R), C∞

c (Rn, R), H(C, C), ..

Typical Nucl´ ear Fr´ echet spaces are distributions spaces Schwartz’ generalized functions : C∞(Rn, R)′, C∞

c (Rn, R)′, H′(C, C), ..

The Kernel Theorems

C∞(E, R)′ ⊗ C∞(F, R)′ ≃ C∞(E × F, R)′ We define !Rn = C∞(Rn, R)′. Thanks to the Kernel theorems, ! verifies all the rules of Differential Linear Logic. However, !Rn is not a finite dimensional vector space.

slide-35
SLIDE 35

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

A Smooth differential Linear Logic

Fr´ echet spaces C∞(Rn, R) DF-spaces !Rn = C∞(Rn, R) Nuclear spaces Rn !Rn = C∞(Rn, R)′ ∈ Nucl !Rn⊗!Rm ≃!(Rn+m)

slide-36
SLIDE 36

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Smooth DiLL

A new graded syntax

Finitary formulas : A, B := X|A ⊗ B|A ` B|A ⊕ B|A × B. General formulas : U, V := A|!A|?A|U ⊗ V |U ` V |U ⊕ V |U × V

For the old rules

⊢ Γ, A d ⊢ Γ, ?A ⊢ Γ w ⊢ Γ, ?A ⊢ Γ, ?A, ?A c ⊢ Γ, ?A ⊢ Γ, !A, !A ¯ c ⊢ Γ, !A ⊢ Γ ¯ w ⊢ Γ, !A ⊢ Γ, A ¯ d ⊢ Γ, !A We have obtained a smooth classical model of DiLL, to the price

  • f Higher Order and Digging !A ⊸!!A.
slide-37
SLIDE 37

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Linear Partial Differential Equations as Exponentials

slide-38
SLIDE 38

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Differential Linear Logic

Is a modification of the exponential rules of Linear Logic in order to allow differentiation.

Semantics

For each f :!A ⊸ B ≃ C∞(A, B) we have Df (0) : A ⊸ B

Syntax

⊢ Γ w ⊢ Γ, ?A ⊢ Γ, ?A, ?A c ⊢ Γ, ?A ⊢ Γ, A d ⊢ Γ, ?A ⊢ Γ, !A, !A ¯ c ⊢ Γ, !A ⊢ Γ ¯ w ⊢ Γ, !A ⊢ Γ, A ¯ d ⊢ Γ, !A

Semantic of the dereliction

d : E →?E = (!E ′) expresses the fact that E ⊸ 1 ⊂!E ⊸ 1, ie : L(E, R) ⊂ C∞(E, R) .

slide-39
SLIDE 39

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Spaces of solutions to a differential equations

A differential operator on C∞(Rn, R)

D =

  • |α|≤n

∂|α| ∂α1x1 · ∂αnxn For example : D(f ) =

∂nf ∂x1·∂xn .

Theorem(Schwartz)

Under some considerations on D, the space SD(E, R)′ of distributions solutions to D(f ) = f is a Nuclear Fr´ echet space of functions. Thus SD(E, R)′ is an exponential.

slide-40
SLIDE 40

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

A new exponential

Spaces of Smooth functions Exponentials C∞(E, R) C∞′(E, R) SD(E, R) S′

D(E, R)

E ′ ≃ L(E, R) E ′′ ≃ E Linear functions are exactly those in C∞(E, R) such that for all x : f (x) = D(f )(0)(x). ∀x, evx(f ) = evx( ¯ d)(f ).

slide-41
SLIDE 41

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Dereliction and co-dereliction for D

For linear functions

¯ d : E → C∞(E, R)′, x → (f → D(f )(x)). d : C∞(E, R)′ → S′(E, R), φ → φL(E,R)

For solutions of Df = f

¯ dD : E → C∞(E, R)′, x → (f → D(f )(x)). dD : C∞(E, R)′ → S′(E, R), φ → φSD(E,R) The map ¯ dD represents the equation to solve, wile dD represents the fact that we are for looking solutions in C∞(E, R).

slide-42
SLIDE 42

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Exponentials and invariants

Spaces of Smooth functions Exponentials Equations C∞(E, R) C∞(E, R) SD(E, R) S′

D(E, R)

E ′ ≃ L(E, R) E ′′ ≃ E d ◦ ¯ d = Id

slide-43
SLIDE 43

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Exponentials and invariants

Spaces of Smooth functions Exponentials PDE C∞(E, R) C∞(E, R)′ SD(E, R) S′

D(E, R)

E S′(E, R) !E ¯ dD dD evE E ′ ≃ L(E, R) E ′′ ≃ E E E ′′ !E ¯ d d evE

slide-44
SLIDE 44

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

The logic of linears PDE’s

Rules

⊢ Γ, !E d ⊢ Γ, E ⊥⊥ ⊢ Γ, A ¯ d ⊢ Γ, !A ⊢ Γ, !E dD ⊢ Γ, S′(E, R) ⊢ Γ, A ¯ dD ⊢ Γ, !A

Cut elimination

E S′(E, R) !E ¯ dD dD evE E E ′′ !E ¯ d d evE Solutions of a linear PDE also verify w and ¯

  • w. If verifying a Kernel

isomorphisms they would also verify c and ¯ c.

slide-45
SLIDE 45

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

An example

Scalar solutions defined on Rn of ∂n ∂x1...∂xn f = f are the z → λex1+...+xn. S′(Rn) ⊗ S′(RM) ≃ S′(Rn+m). λex1+...+xnµey1+...+ym = λµex1+...+xn+y1+...+ym. S(R,R)′ verifies w, ¯ w (which corresponds to the initial condition of the differential equation) and ¯ c, c.

slide-46
SLIDE 46

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Conclusion The space of solutions to a linear partial differential equation form an exponential in Linear Logic

slide-47
SLIDE 47

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Conclusion

What you get :

◮ An interpretation of the linear involutive negation of LL in

term of reflexive topological spaces.

◮ An interpretation of the exponential in terms of distributions. ◮ An interpretation of ` in term of the Schwartz epsilon

product.

◮ A generalization of DiLL to linear PDE.

What you could see :

◮ A constructive Type Theory for differential equations. ◮ An interpretation of the exponential in terms of Fourier’s

transformation.

slide-48
SLIDE 48

Denotational semantics of LL A model with Distributions Linear PDE as exponentials

Thank you.