differentiating proofs for programs
play

Differentiating proofs for programs Marie Kerjean Inria Bretagne - PowerPoint PPT Presentation

SYCO 3 Differentiating proofs for programs Marie Kerjean Inria Bretagne Marie Kerjean (Inria Bretagne) Differentiating proofs for programs 1 / 29 1 Linear Logic 2 Smooth classical models 3 LPDEs 4 Higher-Order Marie Kerjean (Inria Bretagne)


  1. SYCO 3 Differentiating proofs for programs Marie Kerjean Inria Bretagne Marie Kerjean (Inria Bretagne) Differentiating proofs for programs 1 / 29

  2. 1 Linear Logic 2 Smooth classical models 3 LPDEs 4 Higher-Order Marie Kerjean (Inria Bretagne) Differentiating proofs for programs 2 / 29

  3. Linear logic Usual Implication Linear Logic A ⇒ B = ! A ⊸ B C ∞ ( A, B ) ≃ L (! A, B ) A proof is linear when it uses only once its hypothesis A . Marie Kerjean (Inria Bretagne) Differentiating proofs for programs 3 / 29

  4. Linear logic Usual implication Linear Implication Linear Logic A ⇒ B = ! A ⊸ B C ∞ ( A, B ) ≃ L (! A, B ) A proof is linear when it uses only once its hypothesis A . Marie Kerjean (Inria Bretagne) Differentiating proofs for programs 3 / 29

  5. Linear logic Usual implication Linear implication Linear Logic A ⇒ B = ! A ⊸ B C ∞ ( A, B ) ≃ L (! A, B ) Exponential A proof is linear when it uses only once its hypothesis A . Marie Kerjean (Inria Bretagne) Differentiating proofs for programs 3 / 29

  6. Linear logic Linear Logic A ⇒ B = ! A ⊸ B C ∞ ( A, B ) ≃ L (! A, B ) A focus on linearity ◮ Higher-Order is about Seely’s isomoprhism . ! A ˆ ⊗ ! B ≃ !( A × B ) ◮ Classicality is about a linear involutive negation : A ⊥⊥ ≃ A A ≃ A ′′ Marie Kerjean (Inria Bretagne) Differentiating proofs for programs 3 / 29

  7. Exponential as Distributions ◮ Distributions with compact support are elements of C ∞ ( R n , R ) ′ , seen as generalisations of functions with compact support: � φ f : g ∈ C ∞ ( R n , R ) �→ fg. Th´ eorie des distributions , Schwartz, 1947. Marie Kerjean (Inria Bretagne) Differentiating proofs for programs 4 / 29

  8. Exponential as Distributions ◮ Distributions with compact support are elements of C ∞ ( R n , R ) ′ , seen as generalisations of functions with compact support: � φ f : g ∈ C ∞ ( R n , R ) �→ fg. Th´ eorie des distributions , Schwartz, 1947. ◮ In a classical and Smooth model of Differential Linear Logic, the exponential is a space of distributions with compact support. ! A ⊸ ⊥ = A ⇒ ⊥ Marie Kerjean (Inria Bretagne) Differentiating proofs for programs 4 / 29

  9. Exponential as Distributions ◮ Distributions with compact support are elements of C ∞ ( R n , R ) ′ , seen as generalisations of functions with compact support: � φ f : g ∈ C ∞ ( R n , R ) �→ fg. Th´ eorie des distributions , Schwartz, 1947. ◮ In a classical and Smooth model of Differential Linear Logic, the exponential is a space of distributions with compact support. ! A ⊸ ⊥ = A ⇒ ⊥ L (! E, R ) ≃ C ∞ ( E, R ) Marie Kerjean (Inria Bretagne) Differentiating proofs for programs 4 / 29

  10. Exponential as Distributions ◮ Distributions with compact support are elements of C ∞ ( R n , R ) ′ , seen as generalisations of functions with compact support: � φ f : g ∈ C ∞ ( R n , R ) �→ fg. Th´ eorie des distributions , Schwartz, 1947. ◮ In a classical and Smooth model of Differential Linear Logic, the exponential is a space of distributions with compact support. ! A ⊸ ⊥ = A ⇒ ⊥ L (! E, R ) ≃ C ∞ ( E, R ) (! E ) ′′ ≃ C ∞ ( E, R ) ′ Marie Kerjean (Inria Bretagne) Differentiating proofs for programs 4 / 29

  11. Exponential as Distributions ◮ Distributions with compact support are elements of C ∞ ( R n , R ) ′ , seen as generalisations of functions with compact support: � φ f : g ∈ C ∞ ( R n , R ) �→ fg. Th´ eorie des distributions , Schwartz, 1947. ◮ In a classical and Smooth model of Differential Linear Logic, the exponential is a space of distributions with compact support. ! A ⊸ ⊥ = A ⇒ ⊥ L (! E, R ) ≃ C ∞ ( E, R ) (! E ) ′′ ≃ C ∞ ( E, R ) ′ ! E ≃ C ∞ ( E, R ) ′ Marie Kerjean (Inria Bretagne) Differentiating proofs for programs 4 / 29

  12. Exponential as Distributions ◮ Distributions with compact support are elements of C ∞ ( R n , R ) ′ , seen as generalisations of functions with compact support: � φ f : g ∈ C ∞ ( R n , R ) �→ fg. Th´ eorie des distributions , Schwartz, 1947. ◮ In a classical and Smooth model of Differential Linear Logic, the exponential is a space of distributions with compact support. ! A ⊸ ⊥ = A ⇒ ⊥ L (! E, R ) ≃ C ∞ ( E, R ) (! E ) ′′ ≃ C ∞ ( E, R ) ′ ! E ≃ C ∞ ( E, R ) ′ ◮ Seely’s isomorphism corresponds to the Kernel theorem : C ∞ ( E, R ) ′ ˜ ⊗C ∞ ( F, R ) ′ ≃ C ∞ ( E × F, R ) ′ Marie Kerjean (Inria Bretagne) Differentiating proofs for programs 4 / 29

  13. Just a glimpse at Differential Linear Logic A, B := A ⊗ B | 1 | A ` B |⊥| A ⊕ B | 0 | A × B |⊤| ! A | ! A Exponential rules of DiLL 0 ⊢ Γ , ? A, ? A c ⊢ Γ , A ⊢ Γ w d ⊢ Γ , ? A ⊢ Γ , ? A ⊢ Γ , ? A ⊢ Γ , ! A, ⊢ ∆ , ! A ¯ ⊢ Γ , A ⊢ w ¯ ¯ c d ⊢ ! A ⊢ Γ , ∆ , ! A ⊢ Γ , ! A Normal functors, power series and λ -calculus. Girard, APAL(1988) Differential interaction nets , Ehrhard and Regnier, TCS (2006) Marie Kerjean (Inria Bretagne) Differentiating proofs for programs 5 / 29

  14. Differential Linear Logic ⊢ Γ , A ⊥ ⊢ ∆ , A ¯ d d ⊢ Γ , ? A ⊥ ⊢ ∆ , ! A From a non-linear proof we can ex- A linear proof is in particular non- tract a linear proof linear. f ∈ C ∞ ( R , R ) d ( f )(0) Differential interaction nets , Ehrhard and Regnier, TCS (2006) Marie Kerjean (Inria Bretagne) Differentiating proofs for programs 6 / 29

  15. Differential Linear Logic ⊢ Γ , ℓ : A ⊥ ⊢ ∆ , v : A ¯ d d ⊢ Γ , ℓ : ? A ⊥ ⊢ ∆ , ( f �→ D 0 ( f )( v )) : ! A From a non-linear proof we can ex- A linear proof is in particular non- tract a linear proof linear. f ∈ C ∞ ( R , R ) d ( f )(0) Differential interaction nets , Ehrhard and Regnier, TCS (2006) Marie Kerjean (Inria Bretagne) Differentiating proofs for programs 6 / 29

  16. Differential Linear Logic ⊢ Γ , ℓ : A ⊥ ⊢ ∆ , v : A ¯ d d ⊢ Γ , ℓ : ? A ⊥ ⊢ ∆ , ( f �→ D 0 ( f )( v )) : ! A From a non-linear proof we can ex- A linear proof is in particular non- tract a linear proof linear. Cut-elimination: ⊢ ∆ , A ⊥ ⊢ Γ , v : ! A ⊢ ∆ , A ⊥ ¯ d ⊢ Γ , A d ⊢ ∆ , ? A ⊥ � ⊢ Γ , ! A cut Γ , ∆ cut ⊢ Γ , ∆ Differential interaction nets , Ehrhard and Regnier, TCS (2006) Marie Kerjean (Inria Bretagne) Differentiating proofs for programs 6 / 29

  17. Differential Linear Logic ⊢ Γ , ℓ : A ⊥ ⊢ ∆ , v : A ¯ d d ⊢ Γ , ℓ : ? A ⊥ ⊢ ∆ , ( f �→ D 0 ( f )( v )) : ! A From a non-linear proof we can ex- A linear proof is in particular non- tract a linear proof linear. Cut-elimination: ⊢ ∆ , ℓ : A ⊥ ⊢ Γ , v : A ¯ d d ⊢ ∆ , ℓ : ? A ⊥ ⊢ Γ , D 0 ( )( v ) : ! A cut Γ , ∆ ⊢ ∆ , ℓ : A ⊥ ⊢ Γ , v : A � cut ⊢ Γ , ∆ , D 0 ( ℓ )( x ) = ℓ ( x ) : R = ⊥ Differential interaction nets , Ehrhard and Regnier, TCS (2006) Marie Kerjean (Inria Bretagne) Differentiating proofs for programs 6 / 29

  18. The computational content of differentiation Historically, resource sensitive syntax and discrete semantics ◮ Quantitative semantics : f = � n f n ◮ Probabilistic Programming and Taylor formulas : M = � n M n [Ehrhard, Pagani, Tasson, Vaux, Manzonetto ...] Differentiation in Computer Science can have a different flavour : ◮ Numerical Analysis and functional analysis ◮ Ordinary and Partial Differential Equations Marie Kerjean (Inria Bretagne) Differentiating proofs for programs 7 / 29

  19. The computational content of differentiation Historically, resource sensitive syntax and discrete semantics ◮ Quantitative semantics : f = � n f n ◮ Probabilistic Programming and Taylor formulas : M = � n M n [Ehrhard, Pagani, Tasson, Vaux, Manzonetto ...] Differentiation in Computer Science can have a different flavour : ◮ Numerical Analysis and functional analysis ◮ Ordinary and Partial Differential Equations Can we match the requirement of models of LL with the intuitions of physics ? (YES, we can.) Marie Kerjean (Inria Bretagne) Differentiating proofs for programs 7 / 29

  20. Smooth and classical models of Differential Linear Logic What’s the good category in which we interpret formulas ? Marie Kerjean (Inria Bretagne) Differentiating proofs for programs 8 / 29

  21. Smoothness and Duality Smoothness Spaces : E is a locally convex and Haussdorf topological vector space. Functions : f ∈ C ∞ ( R n , R ) is infinitely and everywhere differentiable. The two requirements works as opposite forces . � A cartesian closed category with smooth functions. � Completeness, and a dual topology fine enough. � Interpreting ( E ⊥ ) ⊥ ≃ E without an orthogonality: � Reflexivity : E ≃ E ′′ , and a dual topology coarse enough. . Marie Kerjean (Inria Bretagne) Differentiating proofs for programs 9 / 29

  22. What’s not working A space of (non necessarily linear) functions between finite dimensional spaces is not finite dimensional. dim C 0 ( R n , R m ) = ∞ . Marie Kerjean (Inria Bretagne) Differentiating proofs for programs 10 / 29

Recommend


More recommend