117
From Parametricity to Conservation Laws, via Noether's Theorem Written by Robert Atkey [email protected] Presented by Ben Carriel & Ben Greenman 2014-04-07

From Parametricity to Conservation Laws, via Noether's Theorem

  • Upload
    ngobao

  • View
    218

  • Download
    2

Embed Size (px)

Citation preview

Page 1: From Parametricity to Conservation Laws, via Noether's Theorem

From Parametricity to Conservation Laws,via Noether's Theorem

Written by Robert [email protected]

Presented by Ben Carriel & Ben Greenman2014-04-07

Page 2: From Parametricity to Conservation Laws, via Noether's Theorem

PHYSICS

Page 3: From Parametricity to Conservation Laws, via Noether's Theorem
Page 4: From Parametricity to Conservation Laws, via Noether's Theorem
Page 5: From Parametricity to Conservation Laws, via Noether's Theorem
Page 6: From Parametricity to Conservation Laws, via Noether's Theorem
Page 7: From Parametricity to Conservation Laws, via Noether's Theorem
Page 8: From Parametricity to Conservation Laws, via Noether's Theorem
Page 9: From Parametricity to Conservation Laws, via Noether's Theorem
Page 10: From Parametricity to Conservation Laws, via Noether's Theorem
Page 11: From Parametricity to Conservation Laws, via Noether's Theorem
Page 12: From Parametricity to Conservation Laws, via Noether's Theorem
Page 13: From Parametricity to Conservation Laws, via Noether's Theorem
Page 14: From Parametricity to Conservation Laws, via Noether's Theorem
Page 15: From Parametricity to Conservation Laws, via Noether's Theorem
Page 16: From Parametricity to Conservation Laws, via Noether's Theorem
Page 17: From Parametricity to Conservation Laws, via Noether's Theorem

Distance is invariant under translation and change of coordinate representation.

Page 18: From Parametricity to Conservation Laws, via Noether's Theorem
Page 19: From Parametricity to Conservation Laws, via Noether's Theorem
Page 20: From Parametricity to Conservation Laws, via Noether's Theorem
Page 21: From Parametricity to Conservation Laws, via Noether's Theorem

Noether's Theorem

Page 22: From Parametricity to Conservation Laws, via Noether's Theorem

Noether's Theoremn (1915) "Any differentiable symmetry of the action

of a physical system has a corresponding conservation law"

Page 23: From Parametricity to Conservation Laws, via Noether's Theorem

Quick Example

Page 24: From Parametricity to Conservation Laws, via Noether's Theorem
Page 25: From Parametricity to Conservation Laws, via Noether's Theorem
Page 26: From Parametricity to Conservation Laws, via Noether's Theorem
Page 27: From Parametricity to Conservation Laws, via Noether's Theorem
Page 28: From Parametricity to Conservation Laws, via Noether's Theorem
Page 29: From Parametricity to Conservation Laws, via Noether's Theorem
Page 30: From Parametricity to Conservation Laws, via Noether's Theorem

invariant under translation

Page 31: From Parametricity to Conservation Laws, via Noether's Theorem

invariant under translation

Page 32: From Parametricity to Conservation Laws, via Noether's Theorem

invariant under translation

Page 33: From Parametricity to Conservation Laws, via Noether's Theorem

invariant under translation

(Noether's Theorem)

Page 34: From Parametricity to Conservation Laws, via Noether's Theorem

invariant under translation

(Noether's Theorem)

Conservation of Momentum

Page 35: From Parametricity to Conservation Laws, via Noether's Theorem
Page 36: From Parametricity to Conservation Laws, via Noether's Theorem

Pretty cool, right?

Page 37: From Parametricity to Conservation Laws, via Noether's Theorem

𝜏TYPES

λ f : (int -> int) ref . λ n : int . f := (λ acc : int ref . λ m : int . case (n = m : bool) of (acc := (mul !acc m); acc) : int (!f (acc := (mul !acc m); acc) (m+1)) : int ) (ref 1) 1) (ref λ x : int . x))

π ≜ ΛT1 . ΛT2 . ΛT3 . λ v : T1 × T2 × T3 . v[T1] (λ x : T1 . λ y : T2 . λz : T3 . x)

(λ x : unit . 42 : int)

Page 38: From Parametricity to Conservation Laws, via Noether's Theorem

Atkey (2014)

Page 39: From Parametricity to Conservation Laws, via Noether's Theorem

Atkey (2014)

n Define a type system for Lagrangian Mechanics.

Page 40: From Parametricity to Conservation Laws, via Noether's Theorem

Atkey (2014)

n Define a type system for Lagrangian Mechanics.

n Derive conservation laws as "free theorems" by parametricity.

Page 41: From Parametricity to Conservation Laws, via Noether's Theorem

Lagrangian:

Page 42: From Parametricity to Conservation Laws, via Noether's Theorem

Lagrangian:

Type:

Page 43: From Parametricity to Conservation Laws, via Noether's Theorem

Lagrangian:

Type:

Reference:

Page 44: From Parametricity to Conservation Laws, via Noether's Theorem

Lagrangian:

Type:

Reference:

Page 45: From Parametricity to Conservation Laws, via Noether's Theorem

Lagrangian:

Type:

Reference:for all translations y in one-dimensional space

Page 46: From Parametricity to Conservation Laws, via Noether's Theorem

Lagrangian:

Type:

Reference:for all translations y in one-dimensional space

Page 47: From Parametricity to Conservation Laws, via Noether's Theorem

Lagrangian:

Type:

Reference:for all translations y in one-dimensional spacetype for smooth functions between spaces

Page 48: From Parametricity to Conservation Laws, via Noether's Theorem

Lagrangian:

Type:

Reference:for all translations y in one-dimensional spacetype for smooth functions between spaces

Page 49: From Parametricity to Conservation Laws, via Noether's Theorem

Lagrangian:

Type:

Reference:for all translations y in one-dimensional spacetype for smooth functions between spacesreal numbers that vary with linear transformation g and translation f.

type for smooth functions between spaces

Page 50: From Parametricity to Conservation Laws, via Noether's Theorem

Lagrangian:

Type:

Reference:for all translations y in one-dimensional spacetype for smooth functions between spacesreal numbers that vary with linear transformation g and translation f.

type for smooth functions between spaces

Page 51: From Parametricity to Conservation Laws, via Noether's Theorem

Lagrangian:

Type:

Reference:for all translations y in one-dimensional spacetype for smooth functions between spacesreal numbers that vary with linear transformation g and translation f.

type for smooth functions between spaces

Page 52: From Parametricity to Conservation Laws, via Noether's Theorem

Lagrangian:

Type:

Reference:for all translations y in one-dimensional spacetype for smooth functions between spacesreal numbers that vary with linear transformation g and translation f.

type for smooth functions between spaces

Page 53: From Parametricity to Conservation Laws, via Noether's Theorem

Lagrangian:

Type:

Reference:for all translations y in one-dimensional spacetype for smooth functions between spacesreal numbers that vary with linear transformation g and translation f.

type for smooth functions between spaces

Page 54: From Parametricity to Conservation Laws, via Noether's Theorem
Page 55: From Parametricity to Conservation Laws, via Noether's Theorem
Page 56: From Parametricity to Conservation Laws, via Noether's Theorem
Page 57: From Parametricity to Conservation Laws, via Noether's Theorem

What's the type for (-)?

Page 58: From Parametricity to Conservation Laws, via Noether's Theorem

What's the type for (-)?

Type:

Reference:

Page 59: From Parametricity to Conservation Laws, via Noether's Theorem

What's the type for (-)?

Type:

Reference:

Page 60: From Parametricity to Conservation Laws, via Noether's Theorem

What's the type for (-)?

Type:

Reference:group of invertible real n×n matrices

Page 61: From Parametricity to Conservation Laws, via Noether's Theorem

What's the type for (-)?

Type:

Reference:group of invertible real n×n matrices(symmetries in )

Page 62: From Parametricity to Conservation Laws, via Noether's Theorem

What's the type for (-)?

Type:

Reference:group of invertible real n×n matrices(symmetries in )

Page 63: From Parametricity to Conservation Laws, via Noether's Theorem

What's the type for (-)?

Type:

Reference:group of invertible real n×n matrices

translations in n-dimensional space(symmetries in )

Page 64: From Parametricity to Conservation Laws, via Noether's Theorem

What's the type for (-)?

Type:

Reference:group of invertible real n×n matrices

translations in n-dimensional space(symmetries in )

Page 65: From Parametricity to Conservation Laws, via Noether's Theorem

What's the type for (-)?

Type:

Reference:group of invertible real n×n matrices

translations in n-dimensional space(symmetries in )

Page 66: From Parametricity to Conservation Laws, via Noether's Theorem

What's the type for (-)?

Type:

Reference:group of invertible real n×n matrices

translations in n-dimensional spacen-dimensional vectors of real numbers that vary with linear transformation g and translation f.

(symmetries in )

Page 67: From Parametricity to Conservation Laws, via Noether's Theorem

Why GL(n)?

Page 68: From Parametricity to Conservation Laws, via Noether's Theorem

Why GL(n)?

Page 69: From Parametricity to Conservation Laws, via Noether's Theorem

Why GL(n)?

Page 70: From Parametricity to Conservation Laws, via Noether's Theorem

"Give me a Lagrangian and a group action satisfying these constraints, I'll give you a conservation law."

Why GL(n)?

Page 71: From Parametricity to Conservation Laws, via Noether's Theorem

"Give me a Lagrangian and a group action satisfying these constraints, I'll give you a conservation law."

Key point: we need an automorphism (i.e. symmetry) to start with

Why GL(n)?

Page 72: From Parametricity to Conservation Laws, via Noether's Theorem

What does this mean?

Page 73: From Parametricity to Conservation Laws, via Noether's Theorem

Reynolds: types are relations

Page 74: From Parametricity to Conservation Laws, via Noether's Theorem

Reynolds: types are relations

Wadler: relations are free theorems

Page 75: From Parametricity to Conservation Laws, via Noether's Theorem

Reynolds: types are relations

Wadler: relations are free theorems

Page 76: From Parametricity to Conservation Laws, via Noether's Theorem

Reynolds: types are relations

Wadler: relations are free theorems

Atkey: free theorems are symmetries

Page 77: From Parametricity to Conservation Laws, via Noether's Theorem

Atkey gives us a geometric interpretation

of types

Page 78: From Parametricity to Conservation Laws, via Noether's Theorem

Atkey gives us a geometric interpretation

of typesWe'll argue: Atkey subsumes Reynolds + Wadler

Page 79: From Parametricity to Conservation Laws, via Noether's Theorem
Page 80: From Parametricity to Conservation Laws, via Noether's Theorem

Kinds are reflexive graphs

Page 81: From Parametricity to Conservation Laws, via Noether's Theorem

Kinds are reflexive graphs

Page 82: From Parametricity to Conservation Laws, via Noether's Theorem

n Reynolds: types are sets, parametricity comes from the relations between them.

Kinds are reflexive graphs

Page 83: From Parametricity to Conservation Laws, via Noether's Theorem

n Reynolds: types are sets, parametricity comes from the relations between them.

n Basic relation between Reynolds' types is the subset relation ( ⊆ ).

Kinds are reflexive graphs

Page 84: From Parametricity to Conservation Laws, via Noether's Theorem

n Reynolds: types are sets, parametricity comes from the relations between them.

n Basic relation between Reynolds' types is the subset relation ( ⊆ ).

n Form a graph where the objects are types and the edges order types by ⊆ .

Kinds are reflexive graphs

Page 85: From Parametricity to Conservation Laws, via Noether's Theorem

Example: bool

Page 86: From Parametricity to Conservation Laws, via Noether's Theorem

Example: bool

Page 87: From Parametricity to Conservation Laws, via Noether's Theorem

Example: bool

True False

Page 88: From Parametricity to Conservation Laws, via Noether's Theorem

Example: nat

Page 89: From Parametricity to Conservation Laws, via Noether's Theorem

Example: nat

0

Page 90: From Parametricity to Conservation Laws, via Noether's Theorem

Example: nat

0 1 2 3

Page 91: From Parametricity to Conservation Laws, via Noether's Theorem

Example: cartesian space ( )

Page 92: From Parametricity to Conservation Laws, via Noether's Theorem

Example: cartesian space ( )

Page 93: From Parametricity to Conservation Laws, via Noether's Theorem

Example: cartesian space ( )

Page 94: From Parametricity to Conservation Laws, via Noether's Theorem

Example: cartesian space ( )

Each arrow represents a family of diffeomorphisms

Page 95: From Parametricity to Conservation Laws, via Noether's Theorem

Example: cartesian space

Page 96: From Parametricity to Conservation Laws, via Noether's Theorem

Example: cartesian space

Page 97: From Parametricity to Conservation Laws, via Noether's Theorem

Example: cartesian space

Page 98: From Parametricity to Conservation Laws, via Noether's Theorem

Example: cartesian space

Page 99: From Parametricity to Conservation Laws, via Noether's Theorem

Example: cartesian space

Page 100: From Parametricity to Conservation Laws, via Noether's Theorem

Example: cartesian space

Page 101: From Parametricity to Conservation Laws, via Noether's Theorem

Free Theorems

Page 102: From Parametricity to Conservation Laws, via Noether's Theorem

Free Theorems

Give me a function

Page 103: From Parametricity to Conservation Laws, via Noether's Theorem

Free Theorems

Give me a function

Page 104: From Parametricity to Conservation Laws, via Noether's Theorem

Free Theorems

Give me a function

Then for every function

Page 105: From Parametricity to Conservation Laws, via Noether's Theorem

Free Theorems

Give me a function

Then for every function

Page 106: From Parametricity to Conservation Laws, via Noether's Theorem

Free Theorems

Give me a function

Then for every function

We have the free theorem

Page 107: From Parametricity to Conservation Laws, via Noether's Theorem

Free Theorems

Give me a function

Then for every function

We have the free theorem

Page 108: From Parametricity to Conservation Laws, via Noether's Theorem

Free Theorems

Page 109: From Parametricity to Conservation Laws, via Noether's Theorem

Free Theorems

Page 110: From Parametricity to Conservation Laws, via Noether's Theorem

Free Theorems

Page 111: From Parametricity to Conservation Laws, via Noether's Theorem

Free Theorems

Page 112: From Parametricity to Conservation Laws, via Noether's Theorem

Free Theorems

Page 113: From Parametricity to Conservation Laws, via Noether's Theorem

Free Theorems

Page 114: From Parametricity to Conservation Laws, via Noether's Theorem

Atkey: Main Points

n Extend System Fω with type system encoding geometric invariances.

n Interpret kinds as reflexive graphs, types as reflexive graph morphisms.

n Connect free theorems of Wadler/Reynolds with Noether's theorem via symmetries of these reflexive graphs.

Page 115: From Parametricity to Conservation Laws, via Noether's Theorem

Atkey: Takeawaysn Types as geometries is a powerful new way of

manipulating our "syntactic discipline".

n Visual intuition, connections to group theory.

n Physics is only one potential application!

Page 116: From Parametricity to Conservation Laws, via Noether's Theorem

:𝜏

Page 117: From Parametricity to Conservation Laws, via Noether's Theorem

:𝜏The End