A Formalization of the Max-flow Min-cut Theorem in Higher Order - - PowerPoint PPT Presentation

a formalization of the max flow min cut theorem in higher
SMART_READER_LITE
LIVE PREVIEW

A Formalization of the Max-flow Min-cut Theorem in Higher Order - - PowerPoint PPT Presentation

A Formalization of the Max-flow Min-cut Theorem in Higher Order Logic Niccol` o Veltri Institute of Cybernetics, Tallinn Theory Days 13 Niccol` o Veltri Institute of Cybernetics, Tallinn A Formalization of the Max-flow Min-cut Theorem in


slide-1
SLIDE 1

A Formalization of the Max-flow Min-cut Theorem in Higher Order Logic

Niccol`

  • Veltri

Institute of Cybernetics, Tallinn

Theory Days ’13

Niccol`

  • Veltri

Institute of Cybernetics, Tallinn A Formalization of the Max-flow Min-cut Theorem in Higher Order Logic

slide-2
SLIDE 2

Overview

◮ Maximum flow problem (MFP): find the maximal value

flow for a given network

◮ The Max-flow Min-cut theorem gives a solution to MFP. It

states that the maximum value flow is equal to the minimal s-t cut capacity for the given network.

Niccol`

  • Veltri

Institute of Cybernetics, Tallinn A Formalization of the Max-flow Min-cut Theorem in Higher Order Logic

slide-3
SLIDE 3

Network a s b c t

6 3 4 2 1 2 3 2 3 3 2

Niccol`

  • Veltri

Institute of Cybernetics, Tallinn A Formalization of the Max-flow Min-cut Theorem in Higher Order Logic

slide-4
SLIDE 4

Flow a s b c t

6 2 3 2 4 4 2 1 1 1 2 1 3 2 2 2 3 2 3 2

Niccol`

  • Veltri

Institute of Cybernetics, Tallinn A Formalization of the Max-flow Min-cut Theorem in Higher Order Logic

slide-5
SLIDE 5

Flow Value a s b c t

6 2 3 2 4 4 2 1 1 1 2 1 3 2 2 2 3 2 3 2

v(f) = 4 + 1 + 1 − 2 = 4

Niccol`

  • Veltri

Institute of Cybernetics, Tallinn A Formalization of the Max-flow Min-cut Theorem in Higher Order Logic

slide-6
SLIDE 6

s-t Cut a s b c t

6 3 4 2 1 2 3 2 3 3 2 c(Z) = 1 + 2 + 3 = 6

Niccol`

  • Veltri

Institute of Cybernetics, Tallinn A Formalization of the Max-flow Min-cut Theorem in Higher Order Logic

slide-7
SLIDE 7

Basic Definitions

There isn’t a library on graph in HOL Light so we have to insert every basic graph theoretical definition.

NET ⊢ ∀v e s t c. NET v e s t c ⇔ DIR GRAPH v e ∧ s IN v ∧ t IN v ∧ ¬(s = t) ∧ (∀u w. u,w IN e ⇒ 0 ≤ c (u,w)) ∧ (∀u w. ¬(u,w IN e) ⇒ c (u,w) = 0)

Niccol`

  • Veltri

Institute of Cybernetics, Tallinn A Formalization of the Max-flow Min-cut Theorem in Higher Order Logic

slide-8
SLIDE 8

The Theorem Statement

MAXFLOW MINCUT ⊢ ∀v e s t c. NET v e s t c ∧ FINITE v ⇒ (∃f z. FLOW v e s t c f ∧ CUT v e s t c z ∧ FLOW VALUE e s f = isum z c ∧ (∀f’. FLOW v e s t c f’ ⇒ FLOW VALUE e s f’ ≤ FLOW VALUE e s f) ∧ (∀z’. CUT v e s t c z’ ⇒ isum z c <= isum z’ c))

Niccol`

  • Veltri

Institute of Cybernetics, Tallinn A Formalization of the Max-flow Min-cut Theorem in Higher Order Logic

slide-9
SLIDE 9

Formalization Strategy

(i) Every cut capacity is an upper bound for the set of flow values (ii) Given a flow f, under a certain condition Sf we can always generate a flow f ′ with strictly greater value (i) + (ii) It exists a flow f ∗ for which Sf ∗ doesn’t hold (iii) Verify that the value of f ∗ is equal to the capacity

  • f some cut

Niccol`

  • Veltri

Institute of Cybernetics, Tallinn A Formalization of the Max-flow Min-cut Theorem in Higher Order Logic

slide-10
SLIDE 10

The Condition Sf

Condition Sf:

It exists an undirected walk P from the source to the target such that, for every edge (u, w) in P, one of the following holds:

◮ u (u, w) w occurs in P and f(u, w) < c(u, w) ◮ w (u, w) u occurs in P and f(u, w) > 0

Niccol`

  • Veltri

Institute of Cybernetics, Tallinn A Formalization of the Max-flow Min-cut Theorem in Higher Order Logic

slide-11
SLIDE 11

The Condition Sf

REACH ⊢ (∀v e c f u w. REACH c f v e u w [] ⇔ u = w ∧ w IN v) ∧ (∀v e c f u w h h1 h2 hs. REACH c f v e u w (CONS (h,h1,h2) hs) ⇔ u IN v ∧ u = h ∧ h1,h2 IN e ∧ (u = h1 ∧ f (h1,h2) < c (h1,h2) ∧ REACH c f (v DELETE u) (e DELETE (h1,h2)) h2 w hs ∨ u = h2 ∧ 0 < f (h1,h2) ∧ REACH c f (v DELETE u) (e DELETE (h1,h2)) h1 w hs)

Niccol`

  • Veltri

Institute of Cybernetics, Tallinn A Formalization of the Max-flow Min-cut Theorem in Higher Order Logic

slide-12
SLIDE 12

The Condition Sf

Condition Sf:

It exists an undirected walk P from the source to the target such that, for every edge (u, w) in P, one of the following holds:

◮ u (u, w) w occurs in P and f(u, w) < c(u, w) ◮ w (u, w) u occurs in P and f(u, w) > 0

SF ⊢ ∀v e s c f. SF c f v e s = {w | w IN v ∧ (∃hs. REACH c f v e s w hs)}

Niccol`

  • Veltri

Institute of Cybernetics, Tallinn A Formalization of the Max-flow Min-cut Theorem in Higher Order Logic

slide-13
SLIDE 13

De Bruijn Factor and other facts

◮ The De Bruijn factor is the quotient of the size of a

formalization of a mathematical text and the size of its informal original

http://www.cs.ru.nl/˜freek/factor/

◮ The De Bruijn factor of the Max-flow Min-cut theorem is 4 ◮ The formalization in HOL Light of the Max-flow Min-cut

theorem consists in 3027 lines of source code. More than half are needed to formalize the construction of a greater value flow (ii)

Niccol`

  • Veltri

Institute of Cybernetics, Tallinn A Formalization of the Max-flow Min-cut Theorem in Higher Order Logic

slide-14
SLIDE 14

formal-graph-lib

◮ The complete formal proof of the theorem and much more

can be found at

http://code.google.com/p/formal-graph-lib/

Niccol`

  • Veltri

Institute of Cybernetics, Tallinn A Formalization of the Max-flow Min-cut Theorem in Higher Order Logic