Foundations for the Management of Formal Mathematical Knowledge

Size: px
Start display at page:

Download "Foundations for the Management of Formal Mathematical Knowledge"

Transcription

1 Foundations for the Management of Formal Mathematical Knowledge Robert L. Constable Cornell University Small Types Workshop Nijmegen, November /28/2004 Nijmegen04 1

2 Vision Very large libraries (databases) of formal mathematical knowledge, created and shared by the theorem proving community, will make interactive theorem provers indispensible tools in parts of mathematics, science, and education as they already have become in formal methods and software practice. In turn, the libraries will grow more rapidly and become interconnected with the intuitive mathematical literature, weaving threads of computational certainty into the oldest rigorous intellectual activity of human kind. 10/28/2004 Nijmegen04 2

3 MetaPRL NuPRL Mizar COQ ACL2 HOL PVS Theorem proving systems as isolated islands, reaching a small community 10/28/2004 Nijmegen04 3

4 MetaPRL NuPRL Mizar COQ Formal Digital Library ACL2 HOL PVS The FDL joins all the small islands into a single big island that can accommodate much more than the sum of all individual islands, and allows people to stand on the ground in between. 10/28/2004 Nijmegen04 4

5 Challenges and Problems 1. Community using formal proofs is relatively small Market for formal proofs is small proof technology not widely used in software proof technology not widely used in science and math proof technology not widely used in education Formal proving is still hard work expansion factor shallow base of basic mathematical facts demanding skill set (programming + math + design) 10/28/2004 Nijmegen04 5

6 Challenges and Problems 2. Community is disconnected Each group uses a different system Almost no sharing (logical difficulties, practical ones) Systems change or go extinct 10/28/2004 Nijmegen04 6

7 Digital Library Approach to the Challenges 1. Widen the community by library will increase the services provided library will decrease the effort to create proofs (seen from experience) 2. Connect the community through a common service the digital libraries approach 10/28/2004 Nijmegen04 7

8 Outline 1. Relating theories and systems 2. The structure of theories 3. Aids to organization and search 10/28/2004 Nijmegen04 8

9 Type Theories There are at least eleven active important interactive provers, some coupled to fully automatic provers such as JProver, Otter, TPS, and Omega. ACL2, Alf, Coq, HOL, Isabelle, MetaPRL, Minlog, Mizar, Nuprl, PVS, Twelf Nine of these are based on higher-order typed logic. Why? Will there ever be ONE system? ONE logic? ONE framework? ONE metalogic? Will there ever be one Operating System? One Programming Language? 10/28/2004 Nijmegen04 9

10 Central Characters Higher-Order Logics and Type Theories HOL/Isabel, B A B A B Nuprl Z, Atom x : A B x : A B a = b in A x : A, x : A a = b in A x : A, x : A Coq and Nuprl share many features, so Coq will be mentioned as well. 10/28/2004 Nijmegen04 10

11 Comparing Representative Type Theories Least Number Principle (LNP): ( ( ) ( ( ) ( ))) P : N B. y :. P y x :. P x & x :. z < x P z Law of Excluded Middle (LEM): ( ) P :Prop. P P i 10/28/2004 Nijmegen04 11

12 Interpretations of LNP In Nuprl LNP specifies a class of programs that includes: least ( P, y ) = for i = 0 to y do () () if P i then return i else i : = i + 1 ( y ) end; return. In HOL and PVS the function P B is ANY function, and it represents any propositional function, including noncomputable ones, e.g.: P(x,m) iff a Turing machine with x states can print the number m and halt starting with blank tape. 10/28/2004 Nijmegen04 12

13 Interpretations of LEM In Nuprl, LEM is not an axiom nor a theorem. There are models of Nuprl for which LEM, and LEM is false in the domain theory of Nuprl. In HOL and PVS, LEM is an axiom. Adding LEM to Nuprl produces a theory we call Classical Nuprl. Doug Howe proved that this theory is consistent. We will examine that proof. 10/28/2004 Nijmegen04 13

14 Type Theory as a Specification Language Integer square root example Thm 1.2 Cor 1.1 Cor 1.2 Cor 1.3 n :.! r :. Root n, r ( ) ( ( )) rt :. n :. Root n, rt n ( 11. ) ext Thm ε ( ext ( 11)( )) n :. Root n, Thm. n 10/28/2004 Nijmegen04 14

15 Interpretations of Integer Square Root These theorems could be true in Coq, HOL, Nuprl, and PVS if HOL and PVS supported extraction of functions from statements according to the Semantics of Evidence; see my MOD 1982 lecture notes, Assigning Meaning to Proofs; and my Handbook of Proof Theory article [39], Types in Logic, Mathematics and Programming. In Coq and Nuprl, the function in Cor 1.1 is computable. 10/28/2004 Nijmegen04 15

16 The Root Program Extract The Working Material, Appendix A, p. 46, shows the extract term for this proof in ML notation: let rec sqrt i = if i = 0 then < 0, pf > else let ( ) 2 0 i 1 ( i 1) in if r + 1 n then < r + 1, pf > else < r, pf >= sqrt - < r, pf ' > i i 10/28/2004 Nijmegen04 16

17 Relating theories and systems (early period) CLASSICAL Simple type theory STT (HOL, Isabelle) Extended STT STT + (PVS) CONSTRUCTIVE Intuitionistic type theory ITT (Alf) Computational type theory CTT (Nuprl, MetaPRL) Calculus of Inductive Constructions CIC (Coq, MetaPRL) 10/28/2004 Nijmegen04 17

18 CLASSICAL Simple type theory STT (HOL, Isabelle) Extended STT STT + (PVS) Classical CTT (Howe 1997) Polymorphic Computational includes sets (Classical Nuprl) Relating theories and systems (current period) CONSTRUCTIVE Constructive Simple type theory CSTT (Berghofer/Nipkow 2002) Intuitionistic type theory ITT Computational type theory CTT Calculus of Inductive Constructions CIC 10/28/2004 Nijmegen04 18

19 Semantics of STT Andy Pitts gives a clean semantics of STT in ZF set theory. In that semantics: = { } { } { φ, φ,{ φ, φ },...} ( ) ( ) { } λx : N. b x = x, b x x is the set of functional relation s on x. 10/28/2004 Nijmegen04 19

20 Semantics of CTT Per Martin-Lof provided an intuitive axiomatic semantics based on his doctrine of canonical forms. Stuart Allen gave a PER (partial equivalence relation) semantics in a neutral theory of inductive definitions. In that semantics: = all terms that evaluate to canonical integers { n} = { x: Term x n} is z { z} z 10/28/2004 Nijmegen04 20

21 Semantics of CTT ( ) λxb. x {} { f3} is is defined by evaluation rules think of 3 f z: {} z { fz} ( ) λxx. is in all A A! 10/28/2004 Nijmegen04 21

22 Subtyping in CTT versus Set Theory Notice Even In CTT, B Even B consider λx.rm(x,2) In Set Theory, any f in Even B is a subset of a function in B 10/28/2004 Nijmegen04 22

23 The Cumulative Hierarchy of Sets ( ( φ )) ( φ ) P P P φ ω ω + ω p i φ i=0 Captures the intuition of collecting stages and co-finality unending stages. ( ) 10/28/2004 Nijmegen04 23

24 Zermelo Fraenkel Set Theory (ZF) ZF can be axiomatized in 1 st order logic by axioms, 2 axiom schemas (separation, replacement). Axiom of choice is a 9 th axiom. Z 0 = φ The hierarchy is defined as: Z = Z Z α α + 1 Z = β< α α Ord β ( ) = P Z Every ZF set x is in some Z α ; its rank is the least such ordinal α. Z α α 10/28/2004 Nijmegen04 24

25 Semantics for HOL STT Pitts ZC C-STT Cornell CZ Werner C-STT Coq ZFC 10/28/2004 Nijmegen04 25

26 An Intuitionistic Cumulative Hierarchy of Sets C-STT into IZF ( ( φ )) ( φ ) P P P φ ω + ω ω Prop First Order Logic (FOL) Base with proof terms (proofs-as-programs.) 10/28/2004 Nijmegen04 26

27 Types Review of Set Theoretic Semantics Structured Sets A = { αi} (HOL, PVS, MML 0 ) ω + ω α i rank ω ( α ) i The Cumulative Hierarchy of Sets 10/28/2004 Nijmegen04 27

28 Goal of Howe s Approach Pure Type Theory a, a,, a 1 2 f ( a) f λx. b p < a, b> ( ) λ xb. < a, b> c a U i i enlarge i Type Theory with Set Terms a1, a2,, a i α 1, α 2,, α i A γ f a ϕ α A ( ) ( ) ( ) ( ) λxb. a b < a, b> < α, β > c a c α i ( ) i ( ) f λxb. f ϕ c α c α i i 10/28/2004 Nijmegen04 28

29 Howe s Meaning Functions Howe s Approach to Set-theoretic Semantics: like Pitts, Dybjer, Troelstra, and others, Doug Howe maps types into sets; for A, a type, A is a set. However, he introduces new ideas to handle functionality, polymorphism, subtyping, quotient types, and types as objects (universes). For instance, λxx. is an element ϕ of A A A A and he writes that ϕ λxx.. 10/28/2004 Nijmegen04 29

30 Limitations of Set Embedding Unlike with PVS and HOL, no embedding can cover all of Nuprl because ( T B) Recursive types allow T = B Domains all absolutely unsolvable problems But Howe gets a very substantial part and Moran extends to more. 10/28/2004 Nijmegen04 30

31 Goal of Howe s Approach Extend the family of structured sets Create constants for all structured sets Extend evaluation to all terms Define approximation (covering) α a to relate sets α to i i i terms a i 10/28/2004 Nijmegen04 31

32 Howe s Method 1. Encode type terms and types into sets in the cumulative hierarchy W γ < ty, γ > < fn, ϕ > i α1,, αn c i ( α ) < c < >> 2. Define a subset of W with a unique meaning property; call it V. 3. Define a term model for all V sets; call it T Define evaluation and approximation on T 0 ; this provides a computational type theory with set oracles. I present a variant used by Evan Moran to extend Howe s results. ϕ 10/28/2004 Nijmegen04 32

33 Extending Set Theoretic Semantics to ML-82, Alf, Nuprl Can we account for these ideas in set theory? Can we embed CTT into the cumulative hierarchy? U j U 2 U 1 τ 1 τ 2 τi are inaccessible cardinals 10/28/2004 Nijmegen04 33

34 Howe s Semantics We think of types as collections of equivalence classes of terms: or a i We need to allow sets representing equivalence classes into the collection of types. α i α, α,, α 1 2 n written γ { α1, α2,, α n } ( approximates ) where α covers a α a α a i i i i i i 10/28/2004 Nijmegen04 34

35 Disjointness and Incompatibility The equivalence classes are disjoint, of course. A = a 1 a a i if ai aj 0 then ai = aj The set elements must also be incompatible: γ = A { α, α,, α } 1 2 con( α, α ) implies α = α i j i j For each a A there will be a unique α γ, such that α a. i i A i j i 10/28/2004 Nijmegen04 35

36 Disjointness and Incompatibility The key condition for functions is: ϕ < α, β >, < α, β >,, < α, β >, i i ϕ ' < α', β' >, < α', β' >,, < α', β' >, If for all < α, β ><, α ', β ' > con ( α, α' ) implies con( β, β' ) i i i i con then ( ϕϕ, ) ' i i 10/28/2004 Nijmegen04 36

37 Compatibility (Consistency) Examples 0 0 and 1 1are compatible (consistent) since ϕ { < 00, > } ϕ{ < 11, > } ϕ { < 00, >, < 11, > } intersection, and have a non-empty ( ) ( ) 0, { 0, 0 } con 0, 1, 1 0 con 0 and ϕ{ < 0, 0 > } con ϕ{ < 1, 1> } and are compatible, i.e. since { < < > > } { < { < > } > } ϕ ϕ ϕ ϕ.. 10/28/2004 Nijmegen04 37

38 Membership and Approximation If the type A is interpreted as the set a A, there is a unique α such that α a. γ A, then for each We will say A = γ A and a = α. A 10/28/2004 Nijmegen04 38

39 Uniqueness Theorem For any term t in T, 0 1. If γ t and γ t, then γ = γ For all γ V and α, α γ, 1 2 if α t and α t, then α = α /28/2004 Nijmegen04 39

40 The Term Language T 0 Howe defines a term language, T 0, that includes the Nuprl terms with binding, such as x : A B, x : A B, λx. b, x : A B, ( ) decide ( p x a y b ) less n; m; a; b, ;. ;., T 0 includes the constructors and constants, such as U i, nat { n}, pair ( a; b ), inl ( a ), inr ( b ), ap ( f ; a ), ( ) T 0 includes constants for all of the γ, ϕ, ξ, c i α sets. Howe uses γ, ϕ, ξ to denote the set terms. 10/28/2004 Nijmegen04 40

41 The Term Language T 0 Howe extends the evaluation relation to all terms, for example: ( ) ( 01 ;; ; ) ap λx. b; a c if b a / x c less a b c if a c For instance, ap ( λx. x ; ϕ) ϕ. 10/28/2004 Nijmegen04 41

42 Evaluation Rules f ( ) φ α, β φ α a f λx. b b a / x v f f a v ( ap ) φ ( a ) β ( ) ( apλ ) λxb. λxb. c ( a) c ( a) i i γ γ 10/28/2004 Nijmegen04 42

43 Approximation Rules e v α v j αj aj α e c ( ) i α1,, αn ci a1,, a ( ) n ( ) b α, β φ β α / x φ λxb. Howe does not use this rule because it is unproven when the non-determinism of functions on quotient types is allowed. 10/28/2004 Nijmegen04 43

44 Examples { } ϕ { 02 } {, 17, ', 18 } Let ϕ = <, >, <, > ' = <, > ψ = < ϕ > < ϕ > ( ) ϕ because ϕ λxx. + 4 but not ϕ' λxx. + 4 ( xx. ) ψ λ /28/2004 Nijmegen04 44

45 The Substitution Lemma If α a then for any term e, β e α / x implies β e a / x The intuition is that for any demonstration of if it does not examine α, then it also establishes β e a / x. α, β e α / x, α If the derivation depends on then since and is a term, there is more information in α, β e α / x a α. a a than in any approximation and that information will establish the facts used about to show using in place of a α 10/28/2004 Nijmegen04 45

46 Rationale for the Substitution Lemma α a β e α x β e α / x means α β λ x.. e λxe. γ α β, a singleton set, and Assume and / To say Thus, (1). ( 2 ) From e a / x { } α From (1) and (2) we have thus, γ β { } { } a we know a γ { α} ( λxe. ) a γ { β} { }, and hence λxe γ α γ β β e a / x., 10/28/2004 Nijmegen04 46

47 Soundness the Meaning of x : A B x : A B is the set of functions ϕ with domain A such that for all < α, β > ϕ, β B α / x = γα. 10/28/2004 Nijmegen04 47

48 Soundness of Function Elimination Conclusion there is a β in f ( a) B [ a / x ] [ / ] We need to know that is defined, i.e. B a x ( a ). β f We know that for any by the premise for f. a α α < α β > ϕ β α f B x,, /, To say = means a. (Recall "Membership and Approximation.") A 10/28/2004 Nijmegen04 48

49 Soundness of Function Elimination Conclusion By the Substitution Lemma, if γ B α / x, then γ α B a / x, thus, γ B α / x = = B a / x. Likewise, if β f α then β f a. But by the Subs titution Lemma, we know β f ( α ), since ϕ f and β ϕ α. f ( ) ( ) ( ) f ( ) Hence f a B a / x as required. B [ a / x ] 10/28/2004 Nijmegen04 49

50 Types Review of Set Theoretic Semantics Structured Sets A = { αi} (HOL, PVS, MML 0 ) ω + ω α i rank ω ( α ) i Cumulative Hierarchy of Sets 10/28/2004 Nijmegen04 50

51 Issues with Nuprl Type Theories Some Nuprl theorems contradict classical set theory and classical logic. (a) Nuprl can solve this recursion equation on types: T = ( T B) B ( ) using µ X. X B B. (b) Nuprl s domain theory (bar types) includes this result: ( ( ) ) h : B. x :. h x = t iff x 10/28/2004 Nijmegen04 51

52 Nuprl has Union and Intersection The types A B, B, A B, B, x : A B x x A x A all violate Howe s construction as outlined. x ({ 0} { 0} ) { 1} { 1} ( ) includes 0 0 and 1 1 but no α β can approximate both. 10/28/2004 Nijmegen04 52

53 Outline 1. Relating theories and systems 2. The structure of theories 3. Aids to organization and search 10/28/2004 Nijmegen04 53

54 Theory Structure Should theories be directory-like structures, as in Automath contexts (a tree of knowledge)? These can be internalized as dependent records. {G:Type, op:gxg ax2: Identity(G, op, id); } G; id:g, ax1: Assoc(G, op); The FDL takes a different approach, more like a database than a file system. 10/28/2004 Nijmegen04 54

55 Information Graph of the FDL objects logical dependency textual links accounting links metalogical links 10/28/2004 Nijmegen04 55

56 FDL contains formal objects rules definitions algorithms, code conjectures specifications theorems inferences proofs, partial proofs certificates 10/28/2004 Nijmegen04 56

57 Inferences H G by J, H G by J,, H G by J n n n H G by J H i G i J i a list of formulas (terms) a formula (term) a justification (rule, tactic) 10/28/2004 Nijmegen04 57

58 Proof A proof is a dag of inferences GA, GA, GA, H GR, H GR, H GR, H GR, H GR, H GR, H GR, 10/28/2004 Nijmegen04 58

59 Example of Dependencies RULE DEF DEF THM name1: T by external 1 THM name2: T by 2 proof 10/28/2004 Nijmegen04 59

60 FDL allows sharing among collections PVS Nuprl MetaPRL 10/28/2004 Nijmegen04 60

61 FDL performs archival functions Automath system Auto QE checked the following formalization of Landau s Grundlagen (August 17, 2004). Coq 5.0 created the following extract for the Fundamental Theorem of Algebra (June 14, 2003). Nuprl 5 checked that Total Order (TO) protocol satisfies P (June 5, 2003). MetaPRL compiler produced C code from TO, and P is preserved (October 19, 2003). PVS 2.4 proved Menger s theorem (September 15, 2003). 10/28/2004 Nijmegen04 61

62 Formal Digital Library Editor Nuprl 5 Editor Web Editor Evaluator Maude Evaluator Library THEORY defs, thms, tactics rules, structure Refiner Refiner Nuprl MetaPRL MetaPRL Evaluator SoS (Lisp) Evaluator THEORY PRL defs, thms, tactics rules, structure THEORY (HOL) defs, thms, tactics rules, structure THEORY (PVS) defs, thms, tactics rules, structure THEORY defs, thms, tactics rules, structure THEORY defs, thms, tactics rules, structure Refiner Refiner Refiner HOL/SPIN PVS Ωmega Translator Java Translator OCaml 10/28/2004 Nijmegen04 62

63 Prototype FDL Data (Manual 3.1) Organized to eventually support closed maps D Term(D) D are object names (abstract) Term(D) are objects with embedded references Map is closed under object reference. Working space is the current closed map. Basic data structure is the library table. 10/28/2004 Nijmegen04 63

64 D Term( D) Closed Maps closed under reference (no dangling pointers) closed < id, term() > < id, term() > < id, term() > < id, term() > < id, term() > open < id, term() > < id, term() > < id, term() >? 10/28/2004 Nijmegen04 64

65 Abstract Object Identifiers D D implies Term D ( ) Term ( D ) i.e. d d implies ( ) ( ) ( ) ( ) def d = def d thm d = thm d ( ( )) ( ) ( ) pf thm d = pf thm d 10/28/2004 Nijmegen04 65

66 Concepts for FDL Design FDL supports large-scale operations on collections theory translation, e.g. CZF to Type Theory cross linking via formal thesaurus transplanting theorems classical to constructive translations 10/28/2004 Nijmegen04 66

67 Concepts for FDL Design FDL provides an experimental publication medium Can solicit exemplary contributions hybrid articles formal and informal elegant formalizations challenging formalizations expository articles hypothetical formalizations Articles directly include shared material 10/28/2004 Nijmegen04 67

68 Outline 1. Relating theories and systems 2. The structure of theories 3. Aids to organization and search 10/28/2004 Nijmegen04 68

69 Objective Organize digital formal math by automated and adaptable means Exploratory analysis of formal structure 10/28/2004 Nijmegen04 69

70 Motivation Collections are growing large; need for better automation, search, visualization, personalization <very broad> Can we exploit it in the same was as is done with the structure of the web? Formal Mathematics is rich with structure; can we exploit this as some kind of metadata? 10/28/2004 Nijmegen04 70

71 Method Graph-based approach to exploit meta-information from the structure relationships between theories are hidden, mass of objects, ordered by humans Internet search engines seems really smart; they exploit structure Rank results according to authority, Google s Page Rank Teoma ( allows you to refine search based on clusters Equate hyperlinks with dependencies, use HITS 10/28/2004 Nijmegen04 71

72 Kleinberg s HITS Algorithm HUBS AUTHORITIES Hubs point to good authorities & authorities point to good hubs Sparse adjacency matrix, A Hub vector = 1 st eigenvector of AA T Authority vector = 1 st eigenvector of A T A Communities Strongest hubs and authorities from respective non-principle eigenvectors Currently there are improved techniques relying on the same graph 10/28/2004 Nijmegen04 72

73 Iterative Algorithm Define x <n>, y <n> authority, hub weight for node n in graph G with edges E. x <n> y <q> q:(q,n)єe y <n> x <q> q:(n,q)єe Iterate ~ 20 times, normalizing after each. 10/28/2004 Nijmegen04 73

74 Design Decisions What are analogous to hubs and authorities in formal math? Dependency Graphs Theorems and Definitions (Rules, Tactics?) Definitions have no (logical) dependencies Direct Forward Dependencies Control over size and components of Graph, Seeding primes gcd ints 10/28/2004 Nijmegen04 74

75 Graph Statistics Nuprl5 Standard & Num Thy Subset Bickford s Event Systems Nodes Thm Def Max Max Edges Assortativity Outlinks Inlinks /28/2004 Nijmegen04 75

76 Nuprl5 Number Theory 10/28/2004 Nijmegen04 76

77 1 2 Standard and Numthy Communities listify_length, select_listify_id, int_seg_ind, select_append_front, decidable ex_int_seg, or, decidable, so_apply1 fincr_formation, fincr_wf, fincr_wf2, equiv_rel_functionality_wrt_iff 1 2 divides_of_absvals, absval_assoced, absval_wf chrem_exists_aux_a, gcd_ex_n, chrem_exists_aux, atomic_char, prime_elim, gcd_exists_n, bezout_ident_n, chrem_exists 3 fib_coprime, gcd_sat_gcd_p, gcd_sat_pred, fib_wf, gcd_wf ycomb, not_wf 3 div_3_to_1, div_2_to_1, div_4_to_1, divide_wf, nequal 4 atomic_char, assert_of_eq_int, prime_elim, assert_of_eq_atom, le_wf 4 eqff_to_assert, eqtt_to_assert, assert_of_bnot, assert_of_band, prop 10/28/2004 Nijmegen04 77

78 Weight Distributions Nuprl5 AUTHORITIES HUBS HUBS* Value V Value V Hub Weigh Seeded List+ Library Case Number Case Number Sorted Hub Weight Index Step-like Weight Distributions Booleans, lower plateau on authority graph Stratified development of hubs, Bickford s extended list theory 10/28/2004 Nijmegen04 78

79 Level Distribution Def: A node, n, is in level, i, iffn depends only on nodes in levels < i, and i is the smallest value for which this is the case. Characteristic peaks found, suggest characteristic size/complexity of proofs NUPRL5 EVENT SYSTEMS Num Nodes Value V LEVEL Case Number 10/28/2004 Nijmegen04 79

80 HELM Coq Library Comparison Nuprl5 Event Systems Coq in HELM Nodes Thm Def Max Outlinks Max Inlinks Edges Assortativity was /Coq/Reals/RiemannInt/RiemannInt_P28 10/28/2004 Nijmegen04 80

81 Coq Graph 10/28/2004 Nijmegen04 81

82 Coq Link Analysis Coq Outlinks COQ IN-LINKS LOGNODES 4 3 LOGNODES Series LOGDEPS LOGDEPS Similar link distribution pattern LOGOUTS LOGINS LOGLINKS LOGLINKS 10/28/2004 Nijmegen04 82

83 Coq HITS AUTHORITIES /Init/Logic/eq.ind /Init/Logic/eq_ind /Reals/Rdefinitions/R /Init/Logic/eq_ind_r /Reals/Rdefinitions/R0 /Init/Datatypes/bool.ind /Reals/Rdefinitions/Rplus /Reals/Rdefinitions/R1 /Reals/Rdefinitions/Rmult HUBS /Reals/Rtrigo_alt/cos_bound /Reals/SeqProp/ cv_speed_pow_fact /Reals/RiemannInt/ RiemannInt_P12 RiemannInt_P6 RiemannInt_P28 /Reals/Rtopology/Heine /Reals/Alembert/Alembert_C2 /Reals/RiemannInt/ RiemannInt_P25 RiemannInt_P8 10/28/2004 Nijmegen04 83

84 Coq Communities Logic/Berardi/inv Arith/Wf_nat/induction_gtof1 Arith/Wf_nat/lt_wf_rec1 IntMap/Mapaxioms/MapMerge_assoc Logic/Berardi/i Logic/Berardi/j Bool/Bvector/Vconst Bool/Bvector/vector_rec Bool/Bvector/vector_ind Init/Datatypes/bool_ind Init/Datatypes/bool_rec Logic/ClassicalFacts/f1_o_f2 IntMap/Mapaxioms/FSetUnion_idempotent IntMap/Mapc/MapMerge_idempotent_c Logic/Diaconescu/proof_irrel Logic/Berardi/retract_rect IntMap/Mapaxioms/MapMerge_assoc Logic/Eqdep/eq_dep_dep1 Logic/Eqdep/eq_dep1_eq Relations/Newman/Newman Init/Datatypes/bool_rect Bool/Bvector/vector_rect IntMap/Mapaxioms/MapMerge_assoc 10/28/2004 Nijmegen04 84

85 Coq Communities II Logic/Hurkens/lemma2 Logic/Hurkens/U Logic/Hurkens/sb Logic/Hurkens/le Logic/Hurkens/U Init/Logic_Type/identity_rect_r Init/Logic_Type/identity_rec_r Init/Logic_Type/identity_ind_r Init/Datatypes/identity_rect romega/reflomegacore/tred_factor3_stable omega/omegalemmas/fast_zred_factor3 ZArith/auxiliary/Zred_factor3 romega/reflomegacore/tred_factor3 ring/ring_abstract/minus_varlist_insert_ok ring/ring_abstract/minus_varlist_insert ring/ring_theory/th_plus_zero_left2 ring/ring_theory/th_plus_comm 10/28/2004 Nijmegen04 85

86 Coq HITS HUB WEIGHT AUTH WEIGHT Smoother weight degradation Very small hub values 10/28/2004 Nijmegen04 86

87 References P. Aczel. Notes on the simply typed lambda calculus. In Berger and Schwichtenberg P. Aczel. The type theoretic interpretation of constructive set theory: Inductive definition. In Logic, Methodology and Philosophy of Science VII P. Aczel and M. Rathjen. Notes on Constructive Set Theory. Mittag-Leffler Technical Report No.40, 2000/2001. P. Aczel. The type theoretic interpretation of constructive set theory. In Logic Colloquium 77. P. Aczel. The type theoretick interpretations of constructive set theory: Choice principles. In The L.E.J. Brouwer Centenary Symposium S. Allen. Abstract identifiers, intertextual reference and a computational basis for recordkeeping. First Monday, 9(2), S. Allen. A Non-type-theoretic Definition of Martin-Lof s Types. In Gries H. Barendregt and H. Geuvers. Proof Assistants using dependent type systems. In Handbook of Automated Reasoning S. Berghofer. Proofs, Programs and Executable Specifications in Higher Order Logic. PhD thesis, Technische Universitat Munchen, S. Berghofer and T. Nipkow. Executing higher order logic. In Types for Proofs and Programs: TYPES d R. Constable. Types in logic, mathematics and programming. In S. R. Buss, editor, Handbook of Proof Theory D. Howe. Importing mathematics from HOL into Nuprl. In Theorem Proving in Higher Order Logics, volume 1125, of Lecture Notes in Computer Science D. Howe. Semantic foundations for embedding HOL in Nuprl. In volume 1101 of Lecture Notes in Computer Science E. Moran. Adding Intersection and Union Types to Howe s Model of Type Theory [working title]. PhD thesis, Cornell University, /28/2004 Nijmegen04 87

Lectures on Computational Type Theory

Lectures on Computational Type Theory Lectures on Computational Type Theory From Proofs-as-Programs to Proofs-as-Processes Robert L. Constable Cornell University Lecture Schedule Lecture 1: Origins and Introduction to Computational Type Theory

More information

The Relation Reflection Scheme

The Relation Reflection Scheme The Relation Reflection Scheme Peter Aczel petera@cs.man.ac.uk Schools of Mathematics and Computer Science The University of Manchester September 14, 2007 1 Introduction In this paper we introduce a new

More information

The Calculus of Inductive Constructions

The Calculus of Inductive Constructions The Calculus of Inductive Constructions Hugo Herbelin 10th Oregon Programming Languages Summer School Eugene, Oregon, June 16-July 1, 2011 1 Outline - A bit of history, leading to the Calculus of Inductive

More information

The Curry-Howard Isomorphism

The Curry-Howard Isomorphism The Curry-Howard Isomorphism Software Formal Verification Maria João Frade Departmento de Informática Universidade do Minho 2008/2009 Maria João Frade (DI-UM) The Curry-Howard Isomorphism MFES 2008/09

More information

The Reflection Theorem

The Reflection Theorem The Reflection Theorem Formalizing Meta-Theoretic Reasoning Lawrence C. Paulson Computer Laboratory Lecture Overview Motivation for the Reflection Theorem Proving the Theorem in Isabelle Applying the Reflection

More information

02 The Axiomatic Method

02 The Axiomatic Method CAS 734 Winter 2005 02 The Axiomatic Method Instructor: W. M. Farmer Revised: 11 January 2005 1 What is Mathematics? The essence of mathematics is a process consisting of three intertwined activities:

More information

Uniform Schemata for Proof Rules

Uniform Schemata for Proof Rules Uniform Schemata for Proof Rules Ulrich Berger and Tie Hou Department of omputer Science, Swansea University, UK {u.berger,cshou}@swansea.ac.uk Abstract. Motivated by the desire to facilitate the implementation

More information

Non-deterministic inductive definitions and Fullness

Non-deterministic inductive definitions and Fullness Non-deterministic inductive definitions and Fullness Hajime Ishihara and Takako Nemoto September 16, 2015 Abstract In this paper, we deal with the non-deterministic inductive definition principle NID with

More information

Programming with Higher Inductive Types

Programming with Higher Inductive Types 1/32 Programming with Higher Inductive Types Herman Geuvers joint work with Niels van der Weide, Henning Basold, Dan Frumin, Leon Gondelman Radboud University Nijmegen, The Netherlands November 17, 2017

More information

Synthetic Computability

Synthetic Computability Synthetic Computability Andrej Bauer Department of Mathematics and Physics University of Ljubljana Slovenia MFPS XXIII, New Orleans, April 2007 What is synthetic mathematics? Suppose we want to study mathematical

More information

Type Theory and Constructive Mathematics. Type Theory and Constructive Mathematics Thierry Coquand. University of Gothenburg

Type Theory and Constructive Mathematics. Type Theory and Constructive Mathematics Thierry Coquand. University of Gothenburg Type Theory and Constructive Mathematics Type Theory and Constructive Mathematics Thierry Coquand University of Gothenburg Content An introduction to Voevodsky s Univalent Foundations of Mathematics The

More information

Introduction to Kleene Algebras

Introduction to Kleene Algebras Introduction to Kleene Algebras Riccardo Pucella Basic Notions Seminar December 1, 2005 Introduction to Kleene Algebras p.1 Idempotent Semirings An idempotent semiring is a structure S = (S, +,, 1, 0)

More information

Existence and Consistency in Bounded Arithmetic

Existence and Consistency in Bounded Arithmetic Existence and Consistency in Bounded Arithmetic Yoriyuki Yamagata National Institute of Advanced Science and Technology (AIST) Kusatsu, August 30, 2011 Outline Self introduction Summary Theories of PV

More information

Lecture 2: Self-interpretation in the Lambda-calculus

Lecture 2: Self-interpretation in the Lambda-calculus Lecture 2: Self-interpretation in the Lambda-calculus H. Geuvers Nijmegen, NL 21st Estonian Winter School in Computer Science Winter 2016 H. Geuvers - Radboud Univ. EWSCS 2016 Self-interpretation in λ-calculus

More information

NICTA Advanced Course. Theorem Proving Principles, Techniques, Applications. Gerwin Klein Formal Methods

NICTA Advanced Course. Theorem Proving Principles, Techniques, Applications. Gerwin Klein Formal Methods NICTA Advanced Course Theorem Proving Principles, Techniques, Applications Gerwin Klein Formal Methods 1 ORGANISATORIALS When Mon 14:00 15:30 Wed 10:30 12:00 7 weeks ends Mon, 20.9.2004 Exceptions Mon

More information

The LCF Approach to Theorem Proving

The LCF Approach to Theorem Proving The LCF Approach to Theorem Proving 1 The LCF Approach to Theorem Proving John Harrison Intel Corporation Ideas and historical context Key ideas of LCF Equational logic example More about HOL Light Programming

More information

Informal Statement Calculus

Informal Statement Calculus FOUNDATIONS OF MATHEMATICS Branches of Logic 1. Theory of Computations (i.e. Recursion Theory). 2. Proof Theory. 3. Model Theory. 4. Set Theory. Informal Statement Calculus STATEMENTS AND CONNECTIVES Example

More information

Bootstrapping Mathematics

Bootstrapping Mathematics Bootstrapping Mathematics Masahiko Sato Graduate School of Informatics, Kyoto University Mathematical Logic: Development and Evolution into Various Sciences Kanazawa, Japan March 9, 2012 Contents What

More information

On Modal Logics of Partial Recursive Functions

On Modal Logics of Partial Recursive Functions arxiv:cs/0407031v1 [cs.lo] 12 Jul 2004 On Modal Logics of Partial Recursive Functions Pavel Naumov Computer Science Pennsylvania State University Middletown, PA 17057 naumov@psu.edu June 14, 2018 Abstract

More information

CSE 4111/5111/6111 Computability Jeff Edmonds Assignment 3: Diagonalization & Halting Problem Due: One week after shown in slides

CSE 4111/5111/6111 Computability Jeff Edmonds Assignment 3: Diagonalization & Halting Problem Due: One week after shown in slides CSE 4111/5111/6111 Computability Jeff Edmonds Assignment 3: Diagonalization & Halting Problem Due: One week after shown in slides First Person: Second Person: Family Name: Family Name: Given Name: Given

More information

Computer-Checked Meta-Logic

Computer-Checked Meta-Logic 1 PART Seminar 25 February 2015 Computer-Checked Meta-Logic Jørgen Villadsen jovi@dtu.dk Abstract Over the past decades there have been several impressive results in computer-checked meta-logic, including

More information

Program verification using Hoare Logic¹

Program verification using Hoare Logic¹ Program verification using Hoare Logic¹ Automated Reasoning - Guest Lecture Petros Papapanagiotou Part 2 of 2 ¹Contains material from Mike Gordon s slides: Previously on Hoare Logic A simple while language

More information

Beyond First-Order Logic

Beyond First-Order Logic Beyond First-Order Logic Software Formal Verification Maria João Frade Departmento de Informática Universidade do Minho 2008/2009 Maria João Frade (DI-UM) Beyond First-Order Logic MFES 2008/09 1 / 37 FOL

More information

Creative Objectivism, a powerful alternative to Constructivism

Creative Objectivism, a powerful alternative to Constructivism Creative Objectivism, a powerful alternative to Constructivism Copyright c 2002 Paul P. Budnik Jr. Mountain Math Software All rights reserved Abstract It is problematic to allow reasoning about infinite

More information

07 Practical Application of The Axiomatic Method

07 Practical Application of The Axiomatic Method CAS 701 Fall 2002 07 Practical Application of The Axiomatic Method Instructor: W. M. Farmer Revised: 28 November 2002 1 What is the Axiomatic Method? 1. A mathematical model is expressed as a set of axioms

More information

Human-Readable Machine-Verifiable Proofs for Teaching Constructive Logic

Human-Readable Machine-Verifiable Proofs for Teaching Constructive Logic Human-Readable Machine-Verifiable Proofs for Teaching Constructive Logic Andreas Abel, Bor-Yuh Evan Chang, and Frank Pfenning Workshop on Proof Transformations, Proof Presentations and Complexity of Proofs

More information

Constructive Zermelo-Fraenkel set theory and the limited principle of omniscience

Constructive Zermelo-Fraenkel set theory and the limited principle of omniscience Constructive Zermelo-Fraenkel set theory and the limited principle of omniscience Michael Rathjen Department of Pure Mathematics University of Leeds, Leeds LS2 9JT, England E-mail: rathjen@maths.leeds.ac.uk

More information

CS3110 Fall 2013 Lecture 11: The Computable Real Numbers, R (10/3)

CS3110 Fall 2013 Lecture 11: The Computable Real Numbers, R (10/3) CS3110 Fall 2013 Lecture 11: The Computable Real Numbers, R (10/3) Robert Constable 1 Lecture Plan More about the rationals dependent types enumerating Q (Q is countable) Function inverses bijections one-one

More information

hal , version 1-21 Oct 2009

hal , version 1-21 Oct 2009 ON SKOLEMISING ZERMELO S SET THEORY ALEXANDRE MIQUEL Abstract. We give a Skolemised presentation of Zermelo s set theory (with notations for comprehension, powerset, etc.) and show that this presentation

More information

Normalization by Evaluation

Normalization by Evaluation Normalization by Evaluation Andreas Abel Department of Computer Science and Engineering Chalmers and Gothenburg University PhD Seminar in Mathematical Engineering EAFIT University, Medellin, Colombia 9

More information

Extended Abstract: Reconsidering Intuitionistic Duality

Extended Abstract: Reconsidering Intuitionistic Duality Extended Abstract: Reconsidering Intuitionistic Duality Aaron Stump, Harley Eades III, Ryan McCleeary Computer Science The University of Iowa 1 Introduction This paper proposes a new syntax and proof system

More information

Introduction. Pedro Cabalar. Department of Computer Science University of Corunna, SPAIN 2013/2014

Introduction. Pedro Cabalar. Department of Computer Science University of Corunna, SPAIN 2013/2014 Introduction Pedro Cabalar Department of Computer Science University of Corunna, SPAIN cabalar@udc.es 2013/2014 P. Cabalar ( Department Introduction of Computer Science University of Corunna, SPAIN2013/2014

More information

Lecture Notes on Certifying Theorem Provers

Lecture Notes on Certifying Theorem Provers Lecture Notes on Certifying Theorem Provers 15-317: Constructive Logic Frank Pfenning Lecture 13 October 17, 2017 1 Introduction How do we trust a theorem prover or decision procedure for a logic? Ideally,

More information

3 Propositional Logic

3 Propositional Logic 3 Propositional Logic 3.1 Syntax 3.2 Semantics 3.3 Equivalence and Normal Forms 3.4 Proof Procedures 3.5 Properties Propositional Logic (25th October 2007) 1 3.1 Syntax Definition 3.0 An alphabet Σ consists

More information

Lecture Notes on The Curry-Howard Isomorphism

Lecture Notes on The Curry-Howard Isomorphism Lecture Notes on The Curry-Howard Isomorphism 15-312: Foundations of Programming Languages Frank Pfenning Lecture 27 ecember 4, 2003 In this lecture we explore an interesting connection between logic and

More information

3.2 Reduction 29. Truth. The constructor just forms the unit element,. Since there is no destructor, there is no reduction rule.

3.2 Reduction 29. Truth. The constructor just forms the unit element,. Since there is no destructor, there is no reduction rule. 32 Reduction 29 32 Reduction In the preceding section, we have introduced the assignment of proof terms to natural deductions If proofs are programs then we need to explain how proofs are to be executed,

More information

Focusing on Binding and Computation

Focusing on Binding and Computation Focusing on Binding and Computation Dan Licata Joint work with Noam Zeilberger and Robert Harper Carnegie Mellon University 1 Programming with Proofs Represent syntax, judgements, and proofs Reason about

More information

Elimination of binary choice sequences

Elimination of binary choice sequences Elimination of binary choice sequences Tatsuji Kawai Japan Advanced Institute of Science and Technology JSPS Core-to-Core Program Workshop on Mathematical Logic and its Application 16 17 September 2016,

More information

Static Program Analysis

Static Program Analysis Static Program Analysis Xiangyu Zhang The slides are compiled from Alex Aiken s Michael D. Ernst s Sorin Lerner s A Scary Outline Type-based analysis Data-flow analysis Abstract interpretation Theorem

More information

The Formal Proof Susan Gillmor and Samantha Rabinowicz Project for MA341: Appreciation of Number Theory Boston University Summer Term

The Formal Proof Susan Gillmor and Samantha Rabinowicz Project for MA341: Appreciation of Number Theory Boston University Summer Term The Formal Proof Susan Gillmor and Samantha Rabinowicz Project for MA341: Appreciation of Number Theory Boston University Summer Term 1 2009 Instructor: Kalin Kostadinov The Formal Proof 2 A proof verifies

More information

ECE 695 Numerical Simulations Lecture 2: Computability and NPhardness. Prof. Peter Bermel January 11, 2017

ECE 695 Numerical Simulations Lecture 2: Computability and NPhardness. Prof. Peter Bermel January 11, 2017 ECE 695 Numerical Simulations Lecture 2: Computability and NPhardness Prof. Peter Bermel January 11, 2017 Outline Overview Definitions Computing Machines Church-Turing Thesis Polynomial Time (Class P)

More information

Lecture 14 Rosser s Theorem, the length of proofs, Robinson s Arithmetic, and Church s theorem. Michael Beeson

Lecture 14 Rosser s Theorem, the length of proofs, Robinson s Arithmetic, and Church s theorem. Michael Beeson Lecture 14 Rosser s Theorem, the length of proofs, Robinson s Arithmetic, and Church s theorem Michael Beeson The hypotheses needed to prove incompleteness The question immediate arises whether the incompleteness

More information

A New Look at Generalized Rewriting in Type Theory

A New Look at Generalized Rewriting in Type Theory A New Look at Generalized Rewriting in Type Theory Matthieu Sozeau Harvard University 1st Coq Workshop August 21th 2009 Munich, Germany Generalized Rewriting Equational reasoning x = y - x + 1 ==> y +

More information

Code Generation for a Simple First-Order Prover

Code Generation for a Simple First-Order Prover Code Generation for a Simple First-Order Prover Jørgen Villadsen, Anders Schlichtkrull, and Andreas Halkjær From DTU Compute, Technical University of Denmark, 2800 Kongens Lyngby, Denmark Abstract. We

More information

Introduction to dependent type theory. CIRM, May 30

Introduction to dependent type theory. CIRM, May 30 CIRM, May 30 Goals of this presentation Some history and motivations Notations used in type theory Main goal: the statement of main properties of equality type and the univalence axiom First talk P ropositions

More information

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler Complexity Theory Complexity Theory VU 181.142, SS 2018 6. The Polynomial Hierarchy Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 15 May, 2018 Reinhard

More information

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181.

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181. Complexity Theory Complexity Theory Outline Complexity Theory VU 181.142, SS 2018 6. The Polynomial Hierarchy Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität

More information

Krivine s Intuitionistic Proof of Classical Completeness (for countable languages)

Krivine s Intuitionistic Proof of Classical Completeness (for countable languages) Krivine s Intuitionistic Proof of Classical Completeness (for countable languages) Berardi Stefano Valentini Silvio Dip. Informatica Dip. Mat. Pura ed Applicata Univ. Torino Univ. Padova c.so Svizzera

More information

1 Introduction. 2 Recap The Typed λ-calculus λ. 3 Simple Data Structures

1 Introduction. 2 Recap The Typed λ-calculus λ. 3 Simple Data Structures CS 6110 S18 Lecture 21 Products, Sums, and Other Datatypes 1 Introduction In this lecture, we add constructs to the typed λ-calculus that allow working with more complicated data structures, such as pairs,

More information

Theoretical Computer Science. Representing model theory in a type-theoretical logical framework

Theoretical Computer Science. Representing model theory in a type-theoretical logical framework Theoretical Computer Science 412 (2011) 4919 4945 Contents lists available at ScienceDirect Theoretical Computer Science journal homepage: www.elsevier.com/locate/tcs Representing model theory in a type-theoretical

More information

What are the recursion theoretic properties of a set of axioms? Understanding a paper by William Craig Armando B. Matos

What are the recursion theoretic properties of a set of axioms? Understanding a paper by William Craig Armando B. Matos What are the recursion theoretic properties of a set of axioms? Understanding a paper by William Craig Armando B. Matos armandobcm@yahoo.com February 5, 2014 Abstract This note is for personal use. It

More information

Proof Theory and Subsystems of Second-Order Arithmetic

Proof Theory and Subsystems of Second-Order Arithmetic Proof Theory and Subsystems of Second-Order Arithmetic 1. Background and Motivation Why use proof theory to study theories of arithmetic? 2. Conservation Results Showing that if a theory T 1 proves ϕ,

More information

CMSC 27130: Honors Discrete Mathematics

CMSC 27130: Honors Discrete Mathematics CMSC 27130: Honors Discrete Mathematics Lectures by Alexander Razborov Notes by Geelon So, Isaac Friend, Warren Mo University of Chicago, Fall 2016 Lecture 1 (Monday, September 26) 1 Mathematical Induction.................................

More information

Henk Barendregt and Freek Wiedijk assisted by Andrew Polonsky. Radboud University Nijmegen. March 5, 2012

Henk Barendregt and Freek Wiedijk assisted by Andrew Polonsky. Radboud University Nijmegen. March 5, 2012 1 λ Henk Barendregt and Freek Wiedijk assisted by Andrew Polonsky Radboud University Nijmegen March 5, 2012 2 reading Femke van Raamsdonk Logical Verification Course Notes Herman Geuvers Introduction to

More information

Chapter 2. Assertions. An Introduction to Separation Logic c 2011 John C. Reynolds February 3, 2011

Chapter 2. Assertions. An Introduction to Separation Logic c 2011 John C. Reynolds February 3, 2011 Chapter 2 An Introduction to Separation Logic c 2011 John C. Reynolds February 3, 2011 Assertions In this chapter, we give a more detailed exposition of the assertions of separation logic: their meaning,

More information

Computational Logic and the Quest for Greater Automation

Computational Logic and the Quest for Greater Automation Computational Logic and the Quest for Greater Automation Lawrence C Paulson, Distinguished Affiliated Professor for Logic in Informatics Technische Universität München (and Computer Laboratory, University

More information

Hoare Logic I. Introduction to Deductive Program Verification. Simple Imperative Programming Language. Hoare Logic. Meaning of Hoare Triples

Hoare Logic I. Introduction to Deductive Program Verification. Simple Imperative Programming Language. Hoare Logic. Meaning of Hoare Triples Hoare Logic I Introduction to Deductive Program Verification Işıl Dillig Program Spec Deductive verifier FOL formula Theorem prover valid contingent Example specs: safety (no crashes), absence of arithmetic

More information

α-recursion Theory and Ordinal Computability

α-recursion Theory and Ordinal Computability α-recursion Theory and Ordinal Computability by Peter Koepke University of Bonn 1 3. 2. 2007 Abstract Motivated by a talk of S. D. Friedman at BIWOC we show that the α-recursive and α-recursively enumerable

More information

Coq as a Metatheory for Nuprl with Bar Induction

Coq as a Metatheory for Nuprl with Bar Induction Coq as a Metatheory for Nuprl with Bar Induction Vincent Rahli and Mark Bickford http://www.nuprl.org October 7, 2015 Vincent Rahli Bar Induction October 7, 2015 1/25 Overall Story Mark Bickford Luitzen

More information

A Recursion Combinator for Nominal Datatypes Implemented in Isabelle/HOL

A Recursion Combinator for Nominal Datatypes Implemented in Isabelle/HOL A Recursion Combinator for Nominal Datatypes Implemented in Isabelle/HOL Christian Urban and Stefan Berghofer Technische Universität München {urbanc,berghofe}@in.tum.de Abstract. The nominal datatype package

More information

Introduction to λ-calculus

Introduction to λ-calculus p.1/65 Introduction to λ-calculus Ken-etsu FUJITA fujita@cs.gunma-u.ac.jp http://www.comp.cs.gunma-u.ac.jp/ fujita/ Department of Computer Science Gunma University :Church 32, 36, 40; Curry 34 1. Universal

More information

- Introduction to propositional, predicate and higher order logics

- Introduction to propositional, predicate and higher order logics Lecture 1: Deductive Verification of Reactive Systems - Introduction to propositional, predicate and higher order logics - Deductive Invariance Proofs Cristina Seceleanu MRTC, MdH E-mail: cristina.seceleanu@mdh.se

More information

Program Testing and Constructive Validity

Program Testing and Constructive Validity Program Testing and Constructive Validity Peter Dybjer Chalmers University of Technology, Göteborg, Sweden Philosophy and Foundations of Mathematics: Epistemological and Ontological Aspects - to Per Martin-Löf

More information

Examples for program extraction in Higher-Order Logic

Examples for program extraction in Higher-Order Logic Examples for program extraction in Higher-Order Logic Stefan Berghofer October 10, 2011 Contents 1 Auxiliary lemmas used in program extraction examples 1 2 Quotient and remainder 2 3 Greatest common divisor

More information

Constructive Zermelo-Fraenkel set theory and the limited principle of omniscience

Constructive Zermelo-Fraenkel set theory and the limited principle of omniscience Mathematical Logic Quarterly, 16 January 2013 Constructive Zermelo-Fraenkel set theory and the limited principle of omniscience Michael Rathjen 1, 1 Department of Pure Mathematics, University of Leeds,

More information

Model Theory MARIA MANZANO. University of Salamanca, Spain. Translated by RUY J. G. B. DE QUEIROZ

Model Theory MARIA MANZANO. University of Salamanca, Spain. Translated by RUY J. G. B. DE QUEIROZ Model Theory MARIA MANZANO University of Salamanca, Spain Translated by RUY J. G. B. DE QUEIROZ CLARENDON PRESS OXFORD 1999 Contents Glossary of symbols and abbreviations General introduction 1 xix 1 1.0

More information

Lecture 3 Relationships Between Sets and Types

Lecture 3 Relationships Between Sets and Types Lecture 3 Relatonshps Between Sets and Types Marktoberdorf Summer School, 2003 From ITT (M-L 82) to CTT (Nuprl 2000) 1. subset types { x : A B } 1983 Math 2. quotent types A // E 1983 Math 3. drect computaton

More information

CS 6110 Lecture 28 Subtype Polymorphism 3 April 2013 Lecturer: Andrew Myers

CS 6110 Lecture 28 Subtype Polymorphism 3 April 2013 Lecturer: Andrew Myers CS 6110 Lecture 28 Subtype Polymorphism 3 April 2013 Lecturer: Andrew Myers 1 Introduction In this lecture, we make an attempt to extend the typed λ-calculus for it to support more advanced data structures

More information

AN INTRODUCTION TO COMPUTABILITY THEORY

AN INTRODUCTION TO COMPUTABILITY THEORY AN INTRODUCTION TO COMPUTABILITY THEORY CINDY CHUNG Abstract. This paper will give an introduction to the fundamentals of computability theory. Based on Robert Soare s textbook, The Art of Turing Computability:

More information

Ramsey s Theorem in ProofPower (Draft)

Ramsey s Theorem in ProofPower (Draft) A1 L E M M Lemma 1 Ltd. c/o Interglossa 2nd Floor 31A Chain St. Reading Berks RG1 2HX Ramsey s Theorem in ProofPower (Draft) Abstract This paper is concerned with a ProofPower-HOL proof of the finite exponent

More information

NICTA Advanced Course. Theorem Proving Principles, Techniques, Applications

NICTA Advanced Course. Theorem Proving Principles, Techniques, Applications NICTA Advanced Course Theorem Proving Principles, Techniques, Applications λ 1 CONTENT Intro & motivation, getting started with Isabelle Foundations & Principles Lambda Calculus Higher Order Logic, natural

More information

System Description: ara An Automatic Theorem Prover for Relation Algebras

System Description: ara An Automatic Theorem Prover for Relation Algebras System Description: ara An Automatic Theorem Prover for Relation Algebras Carsten Sinz Symbolic Computation Group, WSI for Computer Science, Universität Tübingen, D-72076 Tübingen, Germany sinz@informatik.uni-tuebingen.de

More information

Foundations of Computation. Ana Bove

Foundations of Computation. Ana Bove Foundations of Computation Ana Bove Programming Logic (ProgLog) Group February 13th 2018 Outline of the talk: What we do in ProgLog Origines of computer science Courses in the area Warming-up Exercise

More information

Lecture Notes on Heyting Arithmetic

Lecture Notes on Heyting Arithmetic Lecture Notes on Heyting Arithmetic 15-317: Constructive Logic Frank Pfenning Lecture 8 September 21, 2017 1 Introduction In this lecture we discuss the data type of natural numbers. They serve as a prototype

More information

Completeness Theorems and λ-calculus

Completeness Theorems and λ-calculus Thierry Coquand Apr. 23, 2005 Content of the talk We explain how to discover some variants of Hindley s completeness theorem (1983) via analysing proof theory of impredicative systems We present some remarks

More information

On the Complexity of the Reflected Logic of Proofs

On the Complexity of the Reflected Logic of Proofs On the Complexity of the Reflected Logic of Proofs Nikolai V. Krupski Department of Math. Logic and the Theory of Algorithms, Faculty of Mechanics and Mathematics, Moscow State University, Moscow 119899,

More information

Consequence Relations and Natural Deduction

Consequence Relations and Natural Deduction Consequence Relations and Natural Deduction Joshua D. Guttman Worcester Polytechnic Institute September 9, 2010 Contents 1 Consequence Relations 1 2 A Derivation System for Natural Deduction 3 3 Derivations

More information

LCF + Logical Frameworks = Isabelle (25 Years Later)

LCF + Logical Frameworks = Isabelle (25 Years Later) LCF + Logical Frameworks = Isabelle (25 Years Later) Lawrence C. Paulson, Computer Laboratory, University of Cambridge 16 April 2012 Milner Symposium, Edinburgh 1979 Edinburgh LCF: From the Preface the

More information

Formalising the Completeness Theorem of Classical Propositional Logic in Agda (Proof Pearl)

Formalising the Completeness Theorem of Classical Propositional Logic in Agda (Proof Pearl) Formalising the Completeness Theorem of Classical Propositional Logic in Agda (Proof Pearl) Leran Cai, Ambrus Kaposi, and Thorsten Altenkirch University of Nottingham {psylc5, psxak8, psztxa}@nottingham.ac.uk

More information

Propositional Logic: Deductive Proof & Natural Deduction Part 1

Propositional Logic: Deductive Proof & Natural Deduction Part 1 Propositional Logic: Deductive Proof & Natural Deduction Part 1 CS402, Spring 2016 Shin Yoo Deductive Proof In propositional logic, a valid formula is a tautology. So far, we could show the validity of

More information

Univalent Foundations and Set Theory

Univalent Foundations and Set Theory Univalent Foundations and Set Theory Talk by Vladimir Voevodsky from Institute for Advanced Study in Princeton, NJ. May 8, 2013 1 Univalent foundations - are based on a class of formal deduction systems

More information

Nonmonotone Inductive Definitions

Nonmonotone Inductive Definitions Nonmonotone Inductive Definitions Shane Steinert-Threlkeld March 15, 2012 Brief Review of Inductive Definitions Inductive Definitions as Sets of Clauses Definition A set B of clauses (of the form A b)

More information

Formalizing Kruskal s Tree Theorem in Isabelle/HOL

Formalizing Kruskal s Tree Theorem in Isabelle/HOL Formalizing Kruskal s Tree Theorem in Isabelle/HOL Christian Sternagel JAIST July 5, 2012 Kickoff Meeting of Austria-Japan Joint Project Gamagori, Japan Kruskal s Tree Theorem If the set A is well-quasi-ordered

More information

EDA045F: Program Analysis LECTURE 10: TYPES 1. Christoph Reichenbach

EDA045F: Program Analysis LECTURE 10: TYPES 1. Christoph Reichenbach EDA045F: Program Analysis LECTURE 10: TYPES 1 Christoph Reichenbach In the last lecture... Performance Counters Challenges in Dynamic Performance Analysis Taint Analysis Binary Instrumentation 2 / 44 Types

More information

Equivalent Forms of the Axiom of Infinity

Equivalent Forms of the Axiom of Infinity Equivalent Forms of the Axiom of Infinity Axiom of Infinity 1. There is a set that contains each finite ordinal as an element. The Axiom of Infinity is the axiom of Set Theory that explicitly asserts that

More information

Propositional Logic: Part II - Syntax & Proofs 0-0

Propositional Logic: Part II - Syntax & Proofs 0-0 Propositional Logic: Part II - Syntax & Proofs 0-0 Outline Syntax of Propositional Formulas Motivating Proofs Syntactic Entailment and Proofs Proof Rules for Natural Deduction Axioms, theories and theorems

More information

Handbook of Logic and Proof Techniques for Computer Science

Handbook of Logic and Proof Techniques for Computer Science Steven G. Krantz Handbook of Logic and Proof Techniques for Computer Science With 16 Figures BIRKHAUSER SPRINGER BOSTON * NEW YORK Preface xvii 1 Notation and First-Order Logic 1 1.1 The Use of Connectives

More information

A Set Theory Formalization

A Set Theory Formalization Research Practice Final Report A Set Theory Formalization Alejandro Calle-Saldarriaga acalles@eafit.edu.co Mathematical Engineering, Universidad EAFIT Tutor: Andrés Sicard-Ramírez June 3, 2017 1 Problem

More information

Write your own Theorem Prover

Write your own Theorem Prover Write your own Theorem Prover Phil Scott 27 October 2016 Phil Scott Write your own Theorem Prover 27 October 2016 1 / 31 Introduction We ll work through a toy LCF style theorem prover for classical propositional

More information

TR : Binding Modalities

TR : Binding Modalities City University of New York (CUNY) CUNY Academic Works Computer Science Technical Reports Graduate Center 2012 TR-2012011: Binding Modalities Sergei N. Artemov Tatiana Yavorskaya (Sidon) Follow this and

More information

Model Theory in the Univalent Foundations

Model Theory in the Univalent Foundations Model Theory in the Univalent Foundations Dimitris Tsementzis January 11, 2017 1 Introduction 2 Homotopy Types and -Groupoids 3 FOL = 4 Prospects Section 1 Introduction Old and new Foundations (A) (B)

More information

Evaluation Driven Proof-Search in Natural Deduction Calculi for Intuitionistic Propositional Logic

Evaluation Driven Proof-Search in Natural Deduction Calculi for Intuitionistic Propositional Logic Evaluation Driven Proof-Search in Natural Deduction Calculi for Intuitionistic Propositional Logic Mauro Ferrari 1, Camillo Fiorentini 2 1 DiSTA, Univ. degli Studi dell Insubria, Varese, Italy 2 DI, Univ.

More information

Theorem Proving for Verification

Theorem Proving for Verification 0 Theorem Proving for Verification John Harrison Intel Corporation CAV 2008 Princeton 9th July 2008 1 Formal verification Formal verification: mathematically prove the correctness of a design with respect

More information

About the relationship between formal logic and complexity classes

About the relationship between formal logic and complexity classes About the relationship between formal logic and complexity classes Working paper Comments welcome; my email: armandobcm@yahoo.com Armando B. Matos October 20, 2013 1 Introduction We analyze a particular

More information

Model theory of bounded arithmetic with applications to independence results. Morteza Moniri

Model theory of bounded arithmetic with applications to independence results. Morteza Moniri Model theory of bounded arithmetic with applications to independence results Morteza Moniri Abstract In this paper we apply some new and some old methods in order to construct classical and intuitionistic

More information

Type Inference. For the Simply-Typed Lambda Calculus. Peter Thiemann, Manuel Geffken. Albert-Ludwigs-Universität Freiburg. University of Freiburg

Type Inference. For the Simply-Typed Lambda Calculus. Peter Thiemann, Manuel Geffken. Albert-Ludwigs-Universität Freiburg. University of Freiburg Type Inference For the Simply-Typed Lambda Calculus Albert-Ludwigs-Universität Freiburg Peter Thiemann, Manuel Geffken University of Freiburg 24. Januar 2013 Outline 1 Introduction 2 Applied Lambda Calculus

More information

Large Numbers, Busy Beavers, Noncomputability and Incompleteness

Large Numbers, Busy Beavers, Noncomputability and Incompleteness Large Numbers, Busy Beavers, Noncomputability and Incompleteness Food For Thought November 1, 2007 Sam Buss Department of Mathematics U.C. San Diego PART I Large Numbers, Busy Beavers, and Undecidability

More information

5 Set Operations, Functions, and Counting

5 Set Operations, Functions, and Counting 5 Set Operations, Functions, and Counting Let N denote the positive integers, N 0 := N {0} be the non-negative integers and Z = N 0 ( N) the positive and negative integers including 0, Q the rational numbers,

More information

Safety Analysis versus Type Inference

Safety Analysis versus Type Inference Information and Computation, 118(1):128 141, 1995. Safety Analysis versus Type Inference Jens Palsberg palsberg@daimi.aau.dk Michael I. Schwartzbach mis@daimi.aau.dk Computer Science Department, Aarhus

More information

Algebraic Trace Theory

Algebraic Trace Theory Algebraic Trace Theory EE249 Roberto Passerone Material from: Jerry R. Burch, Trace Theory for Automatic Verification of Real-Time Concurrent Systems, PhD thesis, CMU, August 1992 October 21, 2002 ee249

More information