Formal Languages for Mathematics Jonas Betzendahl - - PowerPoint PPT Presentation

formal languages for mathematics
SMART_READER_LITE
LIVE PREVIEW

Formal Languages for Mathematics Jonas Betzendahl - - PowerPoint PPT Presentation

Formal Languages for Mathematics Jonas Betzendahl jonas.betzendahl@fau.de 2018 08 13 Motivation (1) The topic of developing languages for formalising mathematics has gathered a lot of attention over the last few years. A few


slide-1
SLIDE 1

Formal Languages for Mathematics

Jonas Betzendahl jonas.betzendahl@fau.de

2018 – 08 – 13

slide-2
SLIDE 2

Motivation (1)

The topic of developing languages for formalising mathematics has gathered a lot of attention over the last few years. A few

  • bservations:
slide-3
SLIDE 3

Motivation (1)

The topic of developing languages for formalising mathematics has gathered a lot of attention over the last few years. A few

  • bservations:
  • Most formalisms fail to capture the flexible nature of

in-the-wild chalk-and-blackboard mathematics.

slide-4
SLIDE 4

Motivation (1)

The topic of developing languages for formalising mathematics has gathered a lot of attention over the last few years. A few

  • bservations:
  • Most formalisms fail to capture the flexible nature of

in-the-wild chalk-and-blackboard mathematics.

  • Type systems are ubiquitous, but often lack key features to

keep them decidable

slide-5
SLIDE 5

Motivation (1)

The topic of developing languages for formalising mathematics has gathered a lot of attention over the last few years. A few

  • bservations:
  • Most formalisms fail to capture the flexible nature of

in-the-wild chalk-and-blackboard mathematics.

  • Type systems are ubiquitous, but often lack key features to

keep them decidable

  • Many systems are also either flexible or have good tool,

support, not both.

slide-6
SLIDE 6

Motivation (2)

S7 S8 S1 S2 S3 S4 S5 S6

slide-7
SLIDE 7

Motivation (2)

S7 S8 S1 S2 S3 S4 S5 S6

slide-8
SLIDE 8

Motivation (2)

S7 S8 S1 S2 S3 S4 S5 S6 M

slide-9
SLIDE 9

Context & Preliminaries

slide-10
SLIDE 10

IMPS (1)

IMPS (short for “Interactive Mathematical Proof System”) is an interactive theorem prover developed by William Farmer, Joshua Guttmann and Javier Thayer from 1990 to 1993. It was one of the influential systems in the era of automated reasoning.

slide-11
SLIDE 11

IMPS (1)

IMPS (short for “Interactive Mathematical Proof System”) is an interactive theorem prover developed by William Farmer, Joshua Guttmann and Javier Thayer from 1990 to 1993. It was one of the influential systems in the era of automated reasoning. One of the goals in developing IMPS was to create a mathematical system that gave computational support to mathematical techniques common among actual mathematicians.

slide-12
SLIDE 12

IMPS (2)

IMPS pioneered mechanisations of many interesting features for reasoning systems, such as:

slide-13
SLIDE 13

IMPS (2)

IMPS pioneered mechanisations of many interesting features for reasoning systems, such as:

  • The small theories approach to axiomatic mathematics

(which gives rise to theory graphs)

slide-14
SLIDE 14

IMPS (2)

IMPS pioneered mechanisations of many interesting features for reasoning systems, such as:

  • The small theories approach to axiomatic mathematics

(which gives rise to theory graphs)

  • A rigorous treatment of undefinedness

(Partial valuation for terms, total valuation for formulas)

slide-15
SLIDE 15

IMPS (2)

IMPS pioneered mechanisations of many interesting features for reasoning systems, such as:

  • The small theories approach to axiomatic mathematics

(which gives rise to theory graphs)

  • A rigorous treatment of undefinedness

(Partial valuation for terms, total valuation for formulas)

  • Partial functions, subsorts, definite description operator
slide-16
SLIDE 16

OMDoc

OMDoc (short for Open Mathematical Documents) is a semantics-oriented markup format for STEM-related documents extending OpenMath.

slide-17
SLIDE 17

OMDoc

OMDoc (short for Open Mathematical Documents) is a semantics-oriented markup format for STEM-related documents extending OpenMath. OMDoc/MMT brings with it three distinct levels for expression of (both formal and informal) mathematical knowledge, structurally similar to IMPS:

  • Object Level

Expressions (e.g. terms and formulae) expressed in OpenMath.

  • Declaration Level

Constants (functions, types, judgements) with an optional (object-level) type and/or definition.

  • Module Level

Theories and Views; sets of declarations that inhabit a common namespace and context.

slide-18
SLIDE 18

MMT

The OMDoc/MMT language is used by the MMT system, which provides an API to handle OMDoc/MMT content and services such as type checking, rewriting of expressions and computation, as well as notation-based presentation of OMDoc/MMT content and a general infrastructure for inspecting and browsing libraries. LF LF + X FOL HOL Monoid CGroup Ring ZFC

f2h add mult folsem mod

slide-19
SLIDE 19
slide-20
SLIDE 20

Goals

slide-21
SLIDE 21

Goals (1)

Further the shared formalisation for multiple mathematical systems. A B C

slide-22
SLIDE 22

Goals (1)

Further the shared formalisation for multiple mathematical systems. A B C A B C

slide-23
SLIDE 23

Goals (1)

Further the shared formalisation for multiple mathematical systems. A B C A B C A B C

slide-24
SLIDE 24

Goals (1)

Further the shared formalisation for multiple mathematical systems. A B C A B C A B C A B C M

slide-25
SLIDE 25

Goals (2)

Finding a treatment of undefinedness that integrates well the MMT system.

slide-26
SLIDE 26

Goals (2)

Finding a treatment of undefinedness that integrates well the MMT system. Partial valuation for terms, total valuation for formulas and the divide into two concrete kinds of all mathematical expressions seem a bit inelegant.

slide-27
SLIDE 27

Goals (3)

A proof system similar to that of IMPS, for MMT. Probably a tall

  • rder for the time frame of one PhD.
slide-28
SLIDE 28

Goals (3)

A proof system similar to that of IMPS, for MMT. Probably a tall

  • rder for the time frame of one PhD.

Focus for now: automatic handling / solving of small proof

  • bligations in the context of type checking.
slide-29
SLIDE 29

Goals (3)

A proof system similar to that of IMPS, for MMT. Probably a tall

  • rder for the time frame of one PhD.

Focus for now: automatic handling / solving of small proof

  • bligations in the context of type checking.

Γ ⊢ t = t′ Γ ⊢ t : A Γ ⊢ t ↓ Γ ⊢? : A

slide-30
SLIDE 30

Efforts (planned)

slide-31
SLIDE 31

Efforts (1)

Survey of related systems: (with focus on treatment of undefined values and possibly small proof obligations)

slide-32
SLIDE 32

Efforts (1)

Survey of related systems: (with focus on treatment of undefined values and possibly small proof obligations)

  • Logical Frameworks

(e.g. LF, Isabelle) Typically thin tool support, narrow focus.

slide-33
SLIDE 33

Efforts (1)

Survey of related systems: (with focus on treatment of undefined values and possibly small proof obligations)

  • Logical Frameworks

(e.g. LF, Isabelle) Typically thin tool support, narrow focus.

  • Proof Assistants

(e.g. Coq, Agda, HOL Light) Mostly limited to decidable TT.

slide-34
SLIDE 34

Efforts (1)

Survey of related systems: (with focus on treatment of undefined values and possibly small proof obligations)

  • Logical Frameworks

(e.g. LF, Isabelle) Typically thin tool support, narrow focus.

  • Proof Assistants

(e.g. Coq, Agda, HOL Light) Mostly limited to decidable TT.

  • Fully Automated Provers

(e.g. E, Vampire) Usually limited to first-order logic.

slide-35
SLIDE 35

Efforts (1)

Survey of related systems: (with focus on treatment of undefined values and possibly small proof obligations)

  • Logical Frameworks

(e.g. LF, Isabelle) Typically thin tool support, narrow focus.

  • Proof Assistants

(e.g. Coq, Agda, HOL Light) Mostly limited to decidable TT.

  • Fully Automated Provers

(e.g. E, Vampire) Usually limited to first-order logic.

  • Computation Systems

(e.g. GAP, Sage) Insufficient treatment of undefinedness.

slide-36
SLIDE 36

Efforts (2)

Import/Export (to and from MMT) for HOL Light.

slide-37
SLIDE 37

Efforts (3)

Work towards mechanised dismissal of tiny proof obligations during type-checking.

slide-38
SLIDE 38

Efforts (3)

Work towards mechanised dismissal of tiny proof obligations during type-checking. Concretely: MMT as of today has support for annotating declarations of equalities so that the simplifier is able to use them as additional rules at runtime. This process needs to be extended to also allow the introduction of rules with premises and the automated checking of the same.

slide-39
SLIDE 39

Efforts (4)

Develop a softly typed set theory (i.e. types are added only after the fact via unary predicates) in MMT.

slide-40
SLIDE 40

Efforts (4)

Develop a softly typed set theory (i.e. types are added only after the fact via unary predicates) in MMT. Working in this context brings up a lot of the tiny proof obligations mentioned earlier and hence could serve as a testing environment.

slide-41
SLIDE 41

Efforts (4)

Develop a softly typed set theory (i.e. types are added only after the fact via unary predicates) in MMT. Working in this context brings up a lot of the tiny proof obligations mentioned earlier and hence could serve as a testing environment. It also might lead to some insights if an approach like this, with the flexibility it brings to the table, is suitable for formalisation.