Applying Mechanised Reasoning in Economics Making Reasoners - - PowerPoint PPT Presentation

applying mechanised reasoning in economics making
SMART_READER_LITE
LIVE PREVIEW

Applying Mechanised Reasoning in Economics Making Reasoners - - PowerPoint PPT Presentation

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary Applying Mechanised Reasoning in Economics Making Reasoners Applicable for Domain Experts Manfred Kerber Christoph Lange


slide-1
SLIDE 1

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Applying Mechanised Reasoning in Economics — Making Reasoners Applicable for Domain Experts

Manfred Kerber Christoph Lange Colin Rowat Computer Science Economics University of Birmingham, UK

http://cs.bham.ac.uk/research/projects/formare/

Informatik 2013, Koblenz, Germany – 17 September 2013 supported by EPSRC grant EP/J007498/1

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 1/55

slide-2
SLIDE 2

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Overview

Motivation Related work Pillage games Value at Risk Matching markets Auctions: importance, types, formal properties, toolbox, code generation — coffee break — Auctions: DEMO, soundness Lessons for computer scientists Problems not addressed Future work Summary

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 2/55

slide-3
SLIDE 3

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Motivation

1996: Ariane 5 launch failure costs $370 million. 2012: Knight Capital’s high frequency trading software repeatedly sells shares below purchase price, loses $440 million within < 1 hr.

Economics software is mission critical, so it should be as reliable as possible!

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 3/55

slide-4
SLIDE 4

Some Related Work

slide-5
SLIDE 5

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Social Choice Theory

How to aggregate individual preferences into a group preference in a fair way?

Example (Planning a Family Trip near Koblenz)

Father: Eltz Castle > Lorelei rock > Maria Laach Abbey Mother: Maria Laach > Lorelei > Eltz Daughter: Lorelei > Eltz > Maria Laach Son: Eltz > Maria Laach > Lorelei

Source: Wikimedia Commons (see links)

Is there a “fair” aggregation?

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 5/55

slide-6
SLIDE 6

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Arrow’s impossibility theorem

A constitution respects unanimity (UN) if society puts alternative a strictly above b whenever every individual puts a strictly above b. The constitution respects independence of irrelevant alternatives (IIA) if the social relative ranking (higher, lower, or indifferent) of two alternatives a and b depends only on their relative ranking by every individual. The constitution is a dictatorship (D) by individual n if for every pair a and b, society strictly prefers a to b whenever n strictly prefers a to b. [Gea05]

Theorem (Arrow – 3 Proofs by Geanakoplos 2005)

(For two or more agents, and three or more alternatives,) any constitution that respects transitivity, IIA, and UN is a D.

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 6/55

slide-7
SLIDE 7

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Arrow’s impossibility theorem (Cont’d)

“Social choice theory turns out to be perfectly suitable for mechanical theorem proving. . . . However, it is unclear if this will lead to new insights into either social choice theory or theorem proving.” [Nip09] “we form an interesting conjecture and then prove it using the same [mechanized] techniques as in the previous proofs. . . . the newly proved theorem . . . subsumes both Arrow’s and Wilson’s theorems.” [TL09] “When applied to a space of 20 principles for preference extension familiar from the literature, this method yields a total

  • f 84 impossibility theorems, including both known and

nontrivial new results.” [GE11]

All of these are computer scientists!

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 7/55

slide-8
SLIDE 8

Pillage Games

slide-9
SLIDE 9

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Pillage Games [Jor06]

Given a resource allocation X ≡ {{xi}i∈I |xi ≥ 0,

i∈I xi = 1}, the

following axioms can be defined. A power function π satisfies WC (weak coalition monotonicity) if C ⊂ C′ ⊆ I then π (C, x) ≤ π (C′, x) ∀x ∈ X; WR (weak resource monotonicity) if yi ≥ xi∀i ∈ C ⊆ I then π (C, y) ≥ π (C, x); and SR (strong resource monotonicity) if ∅ C ⊆ I and yi > xi∀i ∈ C then π (C, y) > π (C, x).

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 9/55

slide-10
SLIDE 10

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

The Same in Theorema (WC) [KRW11]

WC (weak coalition monotonicity) if C ⊂ C′ ⊆ I then π (C, x) ≤ π (C′, x) ∀x ∈ X Definition[“WC”, any[π, n], bound[allocationn[x]], WC[π, n] :⇔ n ∈

∧ ∀

C1,C2 C1⊂C2∧C2⊆I[n]

x π[C2, x] ≥ π[C1, x]] ]

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 10/55

slide-11
SLIDE 11

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Wealth Is Power

WIPπ[C, x] :=

  • i∈C

xi t1 t2 q3 = r t3 s23 D

  • t1D
  • s23

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 11/55

slide-12
SLIDE 12

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Wealth Is Power

WIPπ[C, x] :=

  • i∈C

xi t1 t2 q3 = r t3 s23 D

  • t1D
  • s23

Stable Set: S =

         (0, 0, 1), (0, 1, 0), (1, 0, 0), (0, 1

2, 1 2), ( 1 2, 0, 1 2), ( 1 2, 1 2, 0),

( 1

4, 1 4, 1 2), ( 1 4, 1 2, 1 4), ( 1 2, 1 4, 1 4),

        

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 11/55

slide-13
SLIDE 13

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Some Results [KRW11]

Formalization: Theorema 1. Represent the main definitions and results [KR12] Proofs: Prove some theorems in Theorema Pseudo Algorithm: Summarize the results in a Theorema algorithm with oracle, where the oracle is given by lemmas which can be proved in Theorema. Presentation at ICE 2012 (Initiative for Computational Economics,

http://ice.uchicago.edu/) look into other areas.

We organized a symposium at this year’s AISB convention on Do-Form: Enabling Domain Experts to use Formalised Reasoning

http://cs.bham.ac.uk/research/projects/formare/events/ aisb2013 [LRK13]

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 12/55

slide-14
SLIDE 14

Value at Risk

[Picture from

http://www.flickr.com/photos/cau_napoli/4554437754/]

slide-15
SLIDE 15

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Value at Risk

[The following slides are adapted and abbreviated from the talk of and discussions with Neels Vosloo from the Bank of England 4/5 April 2013 at the Do-Form symposium [LRK13].] Unilever plc 17 Sep 2013 2,536.00p 3 month libor 17 Sep 2013 0.51% contract size 1000 sell/buy sell strike price 3,200.00p maturity 9 Oct 2013 1 − c VaRc (α)

−Ψα (losses)

fΨα The VaR model of the bank computes from many of such assets an

  • verall risk, taking into account 5,000 to 10,000 different risk

factors, based on statistical models. FSA’s task (team of 8): test the VaR models of 18 banks.

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 14/55

slide-16
SLIDE 16

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Value at Risk – Regulator’s Rules

From the UK financial regulation authority’s handbook [Pra]:

relevant to . . . prudent . . . must be sound, implemented with in- tegrity . . . unless the assumption of zero correlation between these categories is empirically justified . . . sufficient number of risk fac- tors . . . must show a good track record . . . captures the variations

  • f volatility of rates . . . must incorporate risk factors corresponding

to the individual foreign currencies . . . take account of market char- acteristics . . . adequately ensured . . . [must] explain the historical price variation . . . be robust to an adverse environment . . . must conservatively assess the risk arising . . . under realistic market scenarios . . . must be appropriately conservative and may only be used where available data are insufficient or is not reflective of the true volatility . . . a firm must avail itself of these advances . . . [must have] capital resources adequate to cover that risk . . . soundness standards comparable to . . . adjusted, where appropriate, to . . .

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 15/55

slide-17
SLIDE 17

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Possible Task for Computer Science

Challenge

Identify patterns that are consistent with certain deficiencies in models or their implementation Question: Can we help to provide good tests? (e.g., [Rei87]?)

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 16/55

slide-18
SLIDE 18

Matching Problems

[Picture from http://commons.wikimedia.org/wiki/File:

Gerrit_van_Honthorst_-_De_koppelaarster.jpg]

slide-19
SLIDE 19

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Matching Problems

[The following slides are adapted and abbreviated from Utku Ünver’s talks on 3 April 2013 at the Do-Form symposium [LRK13].] Examples: House allocation problem (agents to houses) House market problem (match pairs (agent, house) to each

  • ther)

match living kidney donor-receiver pairs Students and schools Marriage matching

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 18/55

slide-20
SLIDE 20

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

House allocation problem

(A, H, >) with A = {a1, . . . , an} agents, H = {h1, . . . , hn} houses, and

preferences >a

µ : A → H is a solution

1

µ is Pareto efficient if there is no better ν so that νa(a) ≥ µa(a) for all a and νa(a) > µa(a) for some a.

2

Mechanism is incentive compatible if it is best for each agent to tell the truth.

3

A mechanism is non-bossy if an agent can influence the allocation of houses for other agents only by getting a different house.

4

A mechanism is neutral if it is invariant under permutations. 1 and 2 may be incompatible.

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 19/55

slide-21
SLIDE 21

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

A characterization of serial dictatorship

Randomized serial dictatorship (RSD) means that one agent can choose their preferred choice, then a second theirs and so.

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 20/55

slide-22
SLIDE 22

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

A characterization of serial dictatorship

Randomized serial dictatorship (RSD) means that one agent can choose their preferred choice, then a second theirs and so. “RSD” is incentive compatible and Pareto efficient.

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 20/55

slide-23
SLIDE 23

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

A characterization of serial dictatorship

Randomized serial dictatorship (RSD) means that one agent can choose their preferred choice, then a second theirs and so. “RSD” is incentive compatible and Pareto efficient.

Theorem (Svensson 1998)

A mechanism is incentive compatible, non-bossy, and neutral iff it is serial dictatorship. Possible contribution: Find counter-examples of other characterizations.

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 20/55

slide-24
SLIDE 24

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

A characterization of serial dictatorship

Randomized serial dictatorship (RSD) means that one agent can choose their preferred choice, then a second theirs and so. “RSD” is incentive compatible and Pareto efficient.

Theorem (Svensson 1998)

A mechanism is incentive compatible, non-bossy, and neutral iff it is serial dictatorship. Possible contribution: Find counter-examples of other characterizations. Question: Can other characterizations be found?

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 20/55

slide-25
SLIDE 25

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Live organ donation

Donor 1 Patient 1 Donor 2 Patient 2

incompatible incompatible compatible compatible

Algorithm of Roth, Sönmez, Ünver from 2005 for 2 way exchange. Question: Can the correctness proof be made formal?

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 21/55

slide-26
SLIDE 26

Auctions

slide-27
SLIDE 27

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Importance of Auctions

Auctions are a mechanism to distribute resources. Applications: eBay items, mobile spectrum, internet domains, possibly regulating High-Frequency Trading [Peter Cramton], . . . Importance: $268.5 billion in 2008 in the US Given: a set of individual bids for a good (not necessarily the same as the value an individual ascribes to the good!) Goals: give the good to the bidder who values it most (“efficiency”) determine prices maximize revenue Auctions are designed and some properties are proved.

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 23/55

slide-28
SLIDE 28

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Types of Auctions

Single good vs. combinatorial Open-outcry: ascending vs. descending Sealed-bid: first-price, second-price Static vs. dynamic (single vs. multiple rounds) Private value vs. common value Variants and combinations (e.g. ascending auction, converting to a sealed-bid auction when the number of remaining bidders equals the number of items) Overview: [Ber+04, lecture 16 “Auctions and Bidding”]

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 24/55

slide-29
SLIDE 29

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Formal Properties of Auctions

soundly specified? efficient? successful bidding strategies (e.g. Vickrey’s theorem) revenue equivalence of two auctions Some of these have been proved on paper.

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 25/55

slide-30
SLIDE 30

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Vickrey’s Theorem

Second-price auction: a highest bidder wins, pays highest remaining bid.

Theorem (Vickrey 1961)

In a second-price auction, “truth-telling” (i.e. submitting a bid equal to one’s actual valuation of the good) is a weakly dominant strategy. The auction is efficient. earliest result in modern auction theory simple environment in which to gain intuitions

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 26/55

slide-31
SLIDE 31

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Weakly Dominant Strategy

A definition

Given some auction, a strategy profile b supports an equilibrium in weakly dominant strategies if, for each i ∈ N and any ˆ b ∈ Rn with

ˆ

bi bi, ui

ˆ

b1, . . . , ˆ bi−1, bi, ˆ bi+1, . . . , ˆ bn

  • ≥ ui

ˆ

b

  • . I.e., whatever others

do, i will not be better off by deviating from the original bid bi.

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 27/55

slide-32
SLIDE 32

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Auction Theory Toolbox

provide auction designers with a toolbox of basic formalisations, . . . . . . on top of which they can formalise and verify their own auction designs building guided by canonical textbooks [Mas04; CSS06] Homepage http://www.cs.bham.ac.uk/research/projects/

formare/code/auction-theory/

Source https://github.com/formare/auctions

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 28/55

slide-33
SLIDE 33

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Systems Used to Prove Vickrey’s Theorem

Isabelle/HOL (CL with Makarius Wenzel): higher-order logic (typed), interactive theorem proving environment, document-oriented IDE

  • Theorema 2.0 (Wolfgang Windsteiger): FOL + set theory,

textbook-style documents (Mathematica notebooks), proof management GUI () Mizar (Marco Caminati): FOL + set theory, text editor, proof checker

  • Hets/CASL/TPTP (CL with Till Mossakowski): sorted FOL, text

editor, proof management GUI, front-end to local or remote automated provers ()

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 29/55

slide-34
SLIDE 34

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Comparison result [Lan+13]

S y s t e m / L a n g u a g e Proof speed Textbook closeness Top-down proofs Library Output Community Documen- tation de Bruijn factor PIa TIa LCa LSa POa CEa WFa Isabelle/HOL ++b ++ + ++ ++ ++

  • ++

++ ++ ++ 1.3 Theorema ? n/ac ++ ++ + –– ++ n/a – –– – n/a Mizar ++ ++ – ++ ++ +

  • n/a

++ +

  • 1.7

CASL/TPTP d – + ++ + –

  • +

+

  • +

1.5

a PI/TI = proof/term input; LC/LS = library coverage/search; PO = proof output;

CE = counterexamples (incl. consistency checks); WF = well-formedness check.

b scores from very bad (––) to very good (++) c fully GUI-based d automated

provers

Result specific to auctions? – No, but the application orientation prioritised “soft” criteria!

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 30/55

slide-35
SLIDE 35

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Generating Verified Software: General Approach [Cam+13]

  • 2. Theorems
  • 1. Definitions

formal specification (written by Isabelle user, needs review by auction designer)

Code

(executable Scala)

  • 3. Proof

(4. checked by Isabelle) state soundness and other properties of known to implement (by proof and by trusting code generator)

  • 5. code generation

(Isabelle) proves

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 31/55

slide-36
SLIDE 36

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Combinatorial Auctions [CSS06]

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 32/55

slide-37
SLIDE 37

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Combinatorial Vickrey Auction [AM06; Cam+13]

Bids are submitted on any subset of the set of available goods X. Winning allocation: X∗ ∈ arg max

X1,...,XN N

  • n=1

bn (Xn) s.t.

N

  • n=1

Xn ⊆ X0 and n n′ iff Xn ∩ Xn′ = ∅ Prices: pn ≡ αn −

  • mn

bm (X∗

m)

where

αn ≡

max

Xm m=1,...,N,mn

      

  • mn

bm (Xm)

  • mn

Xm ⊆ X0

      

Bidder n pays the maximum sum of bids if the auction had been run without n (= αn), minus the winning bids on the items n did not get.

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 33/55

slide-38
SLIDE 38

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Generating Verified Software: Combinatorial Vickrey Auction [Cam+13]

paper-like formalisation X ∗ ∈ argmax∑... {R ⊆ P(N)×N ∣ ∃P ∈ parts(G).

Dom(R) ⊆ P ∧...}

{P ∣ ⋃P = A ∧∀x ∈ P....}

depends on depends on

executable formalisation

argmax (x # xs) f = if f x > f (hd (argmax xs f)) then ... alloc G N = concat [ [ R . R ← inj_fun P (list N) ] . P ← parts (list G) ] parts (x # xs) =

⋃ inject x ‘ (parts xs)

depends on depends on

!

≡ winner determination

!

≡ allocations

!

≡ set partitions paper source (auction designer) verified code (auction sofware) human formali- sation code gene- ration

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 34/55

slide-39
SLIDE 39

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Demo Script I

The following links take to the Auction Theory Toolbox homepage and source repository and were valid at the time of writing. Vickrey’s theorem [Lan+13]

Theorema: look at formalisation in Mathematica (show input syntax), show proof management dialog. There is more ([Win12]), but Theorema can not yet prove Vickrey’s theorem. Mizar: look at formalisation (using Emacs Mizar mode), check a proof (C-c c) Hets/CASL: look at formalisation (using Emacs CASL mode), show theory graph (C-c C-c), prove SecondPriceAuction#only_max_bidder_wins (right-click on SecondPriceAuction), explain “Prove” dialog, show proof output

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 35/55

slide-40
SLIDE 40

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Demo Script II

Isabelle: look at Vickrey.vickreyA, Ctrl+click on some dependencies, show some aspects of the proof (automated steps vs. simple rules vs. Sledgehammer)

Combinatorial Vickrey auction (Isabelle) [Cam+13]:

Isabelle:

demonstrate try and Nitpick (screenshot) compare CombinatorialAuction.possible_allocations_rel and possible_allocations_comp, show “injective functions” equivalence proof explain example auction in CombinatorialAuctionTest, evaluate some expressions: winning_allocations, payments

Scala:

show Scala code generated from CombinatorialVickreyAuctionCode, compare possible_allocations_alg Scala↔Isabelle (strip explicit types)

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 36/55

slide-41
SLIDE 41

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Demo Script III

show how to invoke this code (CombinatorialVickreyAuctionHardCoded) demo of how to run (ask volunteers to bid on some items, enter bids into CATS-like CAB input file, run CombinatorialVickreyAuctionCAB)

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 37/55

slide-42
SLIDE 42

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Nitpick example

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 38/55

slide-43
SLIDE 43

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Soundness

We proved soundness – modulo . . . Definitions and theorems’ statements – require human inspection Prover errors – very low probability Code generator errors – low probability Programming language errors – very low probability Execution environment (virtual machine, compiler, hardware) – very low probability User interface Cheating auctioneer

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 39/55

slide-44
SLIDE 44

Some lessons learned

slide-45
SLIDE 45

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Lessons for Formalisers

Representation is non-trivial, since . . .

it is partly not easy to understand the theorems, it is partly easy to make mistakes.

Find mistakes by use and proof. Notice hidden assumptions Often proofs that look simple, are still non-trivial for theorem provers. First rationalize proofs (e.g., we got Vickrey’s theorem down to 4 cases rather than 9 from a straightforward translation of the paper source). HOL vs FOL, automated vs interactive ATPs differences are not that relevant after all (but the complexity of the argument). Formalising a textbook source is hard enough already; writing a formalisation that yields executable code is harder.

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 41/55

slide-46
SLIDE 46

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Problems with Encoding

On paper, a lot of contextual information is implicit: e.g. types and scopes of variables Auctions: “N = {1, . . . , n} is a set of participants, often indexed by i” ⇒ n ∈ N, Ni ∈ N. Unfamiliarity with the writing style, e.g. function types: CASL (algebraic spec.): f:

A × B -> C

Isabelle (func. prog., currying): f ::

A ⇒ B ⇒ C

Irrelevant Information: Not all information given on paper is relevant for getting a formal proof of one specific problem done. Difficult information: “Let it be common knowledge that each vi [valuation] is an independent realizations of a random variable

˜

v, whose distribution is described by density function f. Then a strategy for bidder i is a mapping gi such that bi = gi(vi, f) ≥ 0, where bi is known as i’s bid.”

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 42/55

slide-47
SLIDE 47

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Problems with Encoding (Cont’d)

Misleading illustrations: Geanakoplos’ 1st proof of Arrow: “by changing his [preference

  • rder] at some profile [set including his preference and the
  • ther voters’ preference] he can move [alternative] b from the

very bottom of the social ranking to the very top” – but there are no state transitions, just two different preferences profiles! Computers hate creative (ab)use of notation and sloppy typing e.g. the loser of an auction was originally characterized as xj = pj = 0 (xj ∈ {0, 1} but pj ∈ R) Excessive usage of sets (supported by Isabelle, but not always efficiently) Sums involving zeros “An auction is efficient if it maximizes

  • i∈N vi · xi” – but for a single good, xi ∈ {0, 1} (like an indicator

function), i.e. “efficiency states vi ¯ v ⇒ xi = 0”.

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 43/55

slide-48
SLIDE 48

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Lessons for Tool Developers

provide “one-click” DWIM interfaces e.g. Isabelle’s try frontend command to automated provers and counter-example finders make reusable theorems easy to find in the library provide comprehensible error messages (Sometimes that’s actually easy for developers! – Example from Hets) give better guidance through documentation e.g. Isabelle with a lot of historic documentation; some functionality only documented in the “outdated” manuals care for your community (e.g. Isabelle with an active mailing list and on StackOverflow)

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 44/55

slide-49
SLIDE 49

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Problems not Addressed

Multiple items per good (can be emulated, inefficiently) Real-valued divisions of goods (require LP-based algorithm) Valuation of goods: not always known in practice

⇒ model as probability distribution instead

Relevant issue beyond auction theory: How to maximise participation? Generally: idealised assumptions

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 45/55

slide-50
SLIDE 50

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Future Work

GUI (desktop or web form) for Scala program (convince target audience that we are ready for business) Breaking ties among equally valued allocations in a fair way (or with a well-defined bias, e.g. preferring newcomers) Bidders should know in advance how ties are broken Dynamic auctions (i.e. multiple rounds)

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 46/55

slide-51
SLIDE 51

Overview Motivation Related Work Pillage Games Value at Risk Matching Auctions Demo Lessons Future Summary

Summary

Computer Science in general, Theorem Proving in special can support economists. Our method allows for generating verified implementations of mission-critical auction software. We have to work towards adjusting our methods to economics problems. Lots of foundations still need to be provided in a “toolbox”. Specialist knowledge is required, the systems in its current form are still difficult to use by non-experts. Parallel “paper-style” and “algorithmic” formalisation needed as a bridge to auction designers. There are many challenging problems. Join in:

http://cs.bham.ac.uk/research/projects/formare/, https://github.com/formare/auctions/

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 47/55

slide-52
SLIDE 52

References

References I

  • L. M. Ausubel and P

. Milgrom. “The Lovely but Lonely Vickrey Auction”. In: Combinatorial auctions. Ed. by P . Cramton, Y. Shoham, and R. Steinberg. MIT Press,

  • 2006. Chap. 1, pp. 17–40.
  • E. Berndt et al. Economic Analysis for Business
  • Decisions. Lecture at MIT. 2004. url:

http://ocw.mit.edu/courses/sloan-school-of- management/15-010-economic-analysis-for- business-decisions-fall-2004/index.htm.

  • M. B. Caminati et al. “Proving soundness of

combinatorial Vickrey auctions and generating verified executable code”. 2013.

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 48/55

slide-53
SLIDE 53

References

References II

P . Cramton, Y. Shoham, and R. Steinberg, eds. Combinatorial auctions. MIT Press, 2006.

  • U. Grandi and U. Endriss. “First-Order Logic

Formalisation of Arrow’s Theorem”. In: Proceedings of the 2nd International Workshop on Logic, Rationality and Interaction (LORI-2009). Ed. by X. He, J. Horty, and E. Pacuit. Lecture Notes in Artificial Intelligence

  • 5834. Springer, 2009, pp. 133–146.
  • C. Geist and U. Endriss. “Automated search for

impossibility theorems in social choice theory: ranking sets of objects”. In: Journal of Artificial Intelligence Research 40 (January–April 2011), pp. 143–174.

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 49/55

slide-54
SLIDE 54

References

References III

  • J. D. Geanakoplos. Three brief proofs of Arrow’s

impossibility theorem. Discussion Paper 1123RRR. New Haven: Cowles Foundation, July 2001.

  • J. D. Geanakoplos. “Three brief proofs of Arrow’s

impossibility theorem”. In: Economic Theory 26.1 (July 2005), pp. 211–215.

  • J. S. Jordan. “Pillage and Property”. In: Journal of

Economic Theory 131.1 (Nov. 2006), pp. 26–44.

  • M. Kerber and C. Rowat. Sufficient conditions for

unique stable sets in three agent pillage games. Working Paper 12-11. University of Birmingham, Department of Economics, Nov. 2012.

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 50/55

slide-55
SLIDE 55

References

References IV

  • M. Kerber, C. Rowat, and W. Windsteiger. “Using

Theorema in the Formalization of Theoretical Economics”. In: Intelligent Computer Mathematics: 18th Symposium, Calculemus and 10th International Conference, MKM 2011. Ed. by J. H. Davenport et al. Lecture Notes in Artifical Intelligence 6824. Springer-Verlag, 2011, pp. 58–73.

  • C. Lange et al. “A Qualitative Comparison of the

Suitability of Four Theorem Provers for Basic Auction Theory”. In: Intelligent Computer Mathematics. Conferences on Intelligent Computer Mathematics. (Bath, UK, July 8–12, 2013). Ed. by J. Carette et al. Lecture Notes in Computer Science 7961. Springer, 2013, pp. 200–215. arXiv: 1303.4193 [cs.LO].

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 51/55

slide-56
SLIDE 56

References

References V

  • C. Lange, C. Rowat, and M. Kerber, eds. Enabling

Domain Experts to use Formalised Reasoning. Do-Form, symposium at the AISB Annual Convention. (Exeter, UK, Apr. 3–5, 2013). Society for the Study of Artificial Intelligence and Simulation of Behaviour (AISB), 2013. url: http://cs.bham.ac.uk/

research/projects/formare/events/aisb2013/.

  • E. Maskin. “The unity of auction theory: Milgrom’s

master class”. In: Journal of Economic Literature 42.4 (Dec. 2004), pp. 1102–1115. url:

http://scholar.harvard.edu/files/maskin/ files/unity_of_auction_theory.pdf.

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 52/55

slide-57
SLIDE 57

References

References VI

  • T. Nipkow. “Social choice theory in HOL: Arrow and

Gibbard-Satterthwaite”. In: Journal of Automated Reasoning 43.3 (2009), pp. 289–304. BIPRU Prudential sourcebook for Banks, Building Societies and Investment Firms. Section 7.10: Use of a Value at Risk Model. Version 127. Bank of England Prudential Regulation Authority. Sept. 2013. url:

http://fsahandbook.info/FSA/html/handbook/ BIPRU/7/10.

  • R. Reiter. “A theory of diagnosis from first principles”.

In: Artificial Intelligence 32 (1 Apr. 1987), pp. 57–95.

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 53/55

slide-58
SLIDE 58

References

References VII

P . Tang and F. Lin. “Computer-aided proofs of Arrow’s and other impossibility theorems”. In: Artificial Intelligence 173.11 (July 2009), pp. 1041–1053.

  • R. Vestergaard, P

. Lescanne, and H. Ono. The inductive and modal proof of Aumann’s theorem on

  • rationality. technical report IS-RR-2006-009. Japan

Advanced Institute of Science and Technology, 2006.

  • F. Wiedijk. “Arrow’s impossibility theorem”. In: Journal
  • f Formalized Mathematics 15.4 (2007), pp. 171–174.
  • F. Wiedijk. “Formalizing Arrow’s theorem”. In: S¯

adhan¯ a 34.1 (Feb. 2009), pp. 193–220.

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 54/55

slide-59
SLIDE 59

References

References VIII

  • W. Windsteiger. “Theorema 2.0: A Graphical User

Interface for a Mathematical Assistant System”. In: 10th UITP workshop (at CICM 2012). (Bremen, Germany, July 11, 2012). Ed. by C. Kaliszyk and C. Lüth. 2012,

  • pp. 1–8. url:

http://www.informatik.uni-bremen.de/uitp12/.

  • T. Ågotnes, W. van der Hoek, and M. Wooldridge.

“Reasoning about coalitional games”. In: Artificial Intelligence 173.1 (Jan. 2009), pp. 45–79.

Manfred Kerber, Christoph Lange, Colin Rowat Mechanised Reasoning in Economics Informatik 2013 Koblenz – 17 September 2013 55/55