Title: Automated Theorem Proving with Spider Diagrams
1Automated Theorem Proving with Spider Diagrams
- Jean Flower and Gem Stapleton
- Visual Modelling Group
- University of Brighton, UK.
- http//www.cmis.brighton.ac.uk/research/vmg
2Overview
- About reasoning with diagrams
- What is our diagrammatic notation
- What does it mean
- Reasoning
- About automated proof-writing
About reasoning with diagrams
3About reasoning with diagrams
- Euler (1700s)
- Venn (1880s)
- Shin (1995) formalised Venn DR
- Hammer (1995) formalised Euler DR
- SwobodaAllwein (current) Euler DR v2
- Implementation application in educational
context - Kent (1997..) spider diagrams, constraint
diagrams - metamodelling applications
Diagrams, HCC, VLC, InfVis, AVI, IJCAR,
4Overview
- About reasoning with diagrams
- What is our diagrammatic notation
- What does it mean
- Reasoning
- About automated proof-writing
5Concrete syntax
But how do we capture the commonality between
diagrams? What is the essential semantic
structure of a diagram? (abstract)
6Abstract syntax some language
Contour label
A
B
Shaded zone
Zone (A,B)
Spider (A,B),(A,B,)
Region set of zones
7Abstract syntax
Contour label
A
B
Shaded zone
Zone (A,B)
Spider (A,B),(A,B,)
Region set of zones
8Abstract syntax
Contour label
A
B
Shaded zone
Zone (A,B)
Spider (A,B),(A,B,)
Region set of zones
9Abstract syntax
Contour label
A
B
Shaded zone
Zone (A,B)
Spider (A,B),(A,B,)
Region set of zones
10Abstract syntax
Contour label
A
B
Shaded zone
Zone (A,B)
Spider (A,B),(A,B,)
Region set of zones
11Overview
- About reasoning with diagrams
- What is our diagrammatic notation
- What does it mean
- Reasoning
- About automated proof-writing
12Informal Semantics
A
B
Theres an element in A and everything thats in
B is also in A
13Informal Semantics
B
A
There are exactly two elements in B and
everything thats in A is also in B
14More Formally
- A isnt a set, but users interpret A as a set
- An interpretation is a pair, (U,Psi), where
- U is a set
- Psi maps contour labels to subsets of U.
- This assignment of sets to contours is enough to
assign sets also to zones and regions
15More Formally
- Which interpretations conform to the diagram?
- An interpretation is a model for a diagram if
- Psi(r)gt number of spiders in r
- when r is shaded,
- Psi(r)lt number of spiders with a node in r
- the region consisting of all the zones maps to
U.
16Semantics
U1,2,3, Psi(A)1, Psi(B)1,2 is a model
B
A
U1,2,3, Psi(A), Psi(B)2 is a not model
The semantics of a diagram the class of models
for that diagram
17Compound diagrams
Connectives. and or
U
C
B
A
18What does it mean
- Theorem
- The spider diagram language is equivalent in
expressive power to monadic first order logic
with equality.
19Overview
- About reasoning with diagrams
- What is our diagrammatic notation
- What does it mean
- Reasoning
- About automated proof-writing
20Reasoning
- Devise reasoning rules syntactically as
transformations of abstract syntax - so rules turn one abstract diagram into another
- why not transformations of concrete syntax?
- Well-formedness problems
- Need a rule to transform between equal diagrams
- consequences of working at abstract level in
terms of presenting results back to user
21Reasoning
- Avoid interpreting in another setting (FOPL)
- because we want to allow the users to see the
proof without a change in notation - helps people strengthen their understanding of
the diagammatic notation
22Reasoning
A
B
23Reasoning
Delete shading
A
B
A
B
24Reasoning
Delete shading
A
B
A
Delete a spider
B
A
B
25Reasoning
A
B
A
B
26Reasoning
A
B
A
B
27Reasoning
A
B
A
B
A
B
On a-diagrams with matching zone-sets
28Reasoning
A
B
A
B
29Reasoning
- Other rules
- add contour
- add shaded zone
- logic rules distributivity etc
- System has been proven to be sound and complete
30Overview
- About reasoning with diagrams
- What is our diagrammatic notation
- What does it mean
- Reasoning
- About automated proof-writing
31About automated proof-writing
- Development of the proof-writer
- Unitary a-diagram ? Unitary a-diagram
- With same contours, zone sets
- Use erase shading and delete spider
- Unitary a-diagram ? disjunction a-diagram
- Find a target component in the conclusion
diagram - Disjunction a-diagram ? disjunction a-diagram
- For each premis component, find a target
- Turn into disjunctions of a-diagrams
32An example
A
B
A
B
D1
D2
Add Contours
33An example
A
B
A
B
D1
D2
Add Contours
A
B
A
A
B
B
D1
D2
34An example
A
B
A
B
A
B
D1
D2
Add Zones
35An example
A
B
A
B
A
B
D1
D2
Add Zones
A
B
A
A
B
B
D1
D2
36An example
A
B
A
B
A
B
D1
D2
Split Spiders
37An example
A
B
A
B
A
B
D1
D2
Split Spiders
A
B
A
B
A
B
D2
D1
A
B
38An example
A
B
A
B
A
B
D2
D1
To disjunctive normal form
A
B
39An example
A
B
A
B
A
B
D2
D1
To disjunctive normal form
A
B
A
B
D2
B
A
B
A
A
A
B
B
D1
40An example
A
B
D1
A
B
A
B
A
A
B
B
D2
Combine
41An example
A
B
D1
A
B
A
B
A
A
B
B
D2
Combine
A
B
A
B
D2
D1
42An example
A
B
A
B
D2
D1
Change D1 into D2
43An example
A
B
A
B
D2
D1
Change D1 into D2
remove false
A
B
D1
44An example
A
B
A
B
D2
D1
Change D1 into D2
delete shading
A
B
Not just deleting shading spiders
D1
45The tool
- Uses underlying metamodel of abstract syntax
- Checks which rules are applicable
- Allows users to write proofs
- Automates proofs for users
- And now a demo
46More work on proof-writing
- Which derived rules make for usable proofs?
- Heuristic approaches
- Introduce negation
- doesnt increase expressiveness
- Introduce further syntax that allows universal
quantification and relational navigation
(constraint diagrams).
47The end
- Any questions?
- http//www.cmis.brighton.ac.uk/research/vmg
48About automated proof-writing
- Sketch of the strategy to write proofs
- Take D1 and D2
- Remove all the ands from both sides
- Shrink D2 using excluded middle
- Add spiders and shading to D1 using excluded
middle - Change D1 into D2, or generate a counterexample.