LOGIC OF PROBABILITY AND CONJECTURE

Size: px
Start display at page:

Download "LOGIC OF PROBABILITY AND CONJECTURE"

Transcription

1 LOGIC OF PROBABILITY AND CONJECTURE HARRY CRANE Abstract. I introduce a formalization of probability in intensional Martin-Löf type theory (MLTT) and homotopy type theory (HoTT) which takes the concept of evidence as primitive in judgments about probability. In parallel to the intuitionistic conception of truth, in which proof is primitive and an assertion A is judged to be true just in case there is a proof witnessing it, here evidence is primitive and A is judged to be probable just in case there is evidence supporting it. To formalize this approach, we regard propositions as types in MLTT and define for any proposition A a corresponding probability type Prob(A) whose inhabitants represent pieces of evidence in favor of A. Among several practical motivations for this approach, I focus here on its potential for extending meta-mathematics to include conjecture, in addition to rigorous proof, by regarding a conjecture in A as a judgment that A is probable on the basis of evidence. 1. Introduction I aim to develop a formal logic of probability and conjecture which takes judgments about evidence as primitive and whose calculus is based on rules for reasoning about such judgments. I focus specifically here on the formal approach and its basic technical consequences. Much more can be said about a wide range of philosophical, historical, and technical motivations underlying this work, including its potential implications for understanding how probability and evidence often arise in legal proceedings, scientific discovery, and everyday decision making. For these additional considerations, I refer the reader to the longer version of this article [Cra18]. The study of conjecture and plausible reasoning in mathematics provides one concrete motivation for the theory introduced here. Although conjecture is central to mathematical practice, and is often a necessary precursor to rigorous proof, there lacks a meta-mathematical framework for analyzing how heuristics and intuitions guide formal rigorous mathematics. But although conjecture and plausible reasoning do not obey strict logical rules, they seem to follow a sound rationale based on some commonly applicable techniques; see, e.g., Pólya s two volume work [Pól54] and Mazur s more recent discussion [Maz12]. For example, let A and B be mathematical propositions. Though it may seem logical for a mathematician who (i) conjectures A and (ii) has proven A B (i.e., if A then B) to also conjecture B, there exists no formal theory to justify the move. We could attempt to formalize this rule by combining the conventional probability calculus (i.e., set Pr(Q) = 1 if Q is true and Pr(Q) = 0 if Q is true) with a Lockean thesis for belief (i.e., conjecture A if Pr(A) t for some 1

2 2 HARRY CRANE pre-determined threshold 0 t 1) [Fol92]. 1 In this case, since A B A B has been proven, we have Pr( A B) = 1, and since A is conjectured we must have Pr(A) t by the Lockean thesis. A routine application of the probability calculus gives Pr( A) 1 t and 1 = Pr( A B) Pr( A) + Pr(B) Pr(B) t, leading to a conjecture in B. But whereas in classical logic any proposition Q is either true or false by the law of excluded middle, a conjecture about Q under this approach relies on the extra-mathematical data encoded by the probability operator Pr( ) and the Lockean threshold t. Here I seek a logic in which truths and conjectures can be treated as mathematical objects of equal standing, thus allowing plausible reasoning in mathematics to be studied internally to the same formal system in which rigorous mathematics already takes place. From this perspective, the logical rules governing rigorous mathematics, which is concerned only with truth and proof and not with conjecture and evidence, are a fragment of a more general framework that also incorporates conjecture. I achieve this by introducing a concept of probability on top of the existing syntax of Martin-Löf intensional type theory (MLTT) [ML84,ML87,ML96], and by interpreting a conjecture in A as a formal judgment that A is probable in the type theory Meaning of a conjecture. Wittgenstein s conception of meaning as use [Wit73] figures into Martin-Löf s meaning explanation of types [ML87, ML96] and the Curry Howard propositions as types correspondence [Cur34, CF, How69], by which a mathematical proposition A is represented as a type A : Type whose terms a : A are proofs of A: the meaning of a proposition [...] is determined by that which counts as a verification of it. (Martin-Löf [ML96, p. 27]) Following Martin-Löf, we formalize probability in terms of evidence, by associating each proposition A : Type to a probability type Prob(A) : Type whose terms a : Prob(A) correspond to pieces of evidence in favor of A. In this case, the judgment a : Prob(A) indicates that a is evidence for A (or that a witnesses the probability of A). In the example discussed above, the conjecture in A corresponds to a judgment a : Prob(A), the truth of A B corresponds to a proof f : A B, and the derived conjecture in B results from the formal judgment imp f (a) : Prob(B), 3 which can be constructed by applying the elimination rule (4) for the probability type in the 1 There are other frameworks for belief revision, some based on the probability calculus and some not. I present this one here only for illustration. See [SF18, AGM85] and references therein for more detailed accounts. 2 In the specific application to meta-mathematics for conjecture, I interpret the judgment that A is probable to correspond to a conjecture in A. My natural language use of probable differs from the use of plausible in [Pól54, Maz12] on the grounds that mere plausibility is not sufficient to conjecture A. In order to conjecture A, one must believe that A is likely or probable on the basis of the observed evidence, not that it is merely plausible. 3 In MLTT the proof f : A B is simply a function which converts any proof of A (i.e., a : A) into a proof of B (i.e., f(a) : B).

3 LOGIC OF PROBABILITY AND CONJECTURE 3 upcoming formalism. Thus, in parallel to Martin-Löf s meaning explanation of truth in terms of proof, we obtain a meaning explanation of probability in terms of evidence: the meaning of a conjecture is determined by that which counts as evidence in favor of it. 4 Before beginning, I note that the intuitionistic approach to probability presented here seems to be autonomous from other conceptions of probability found throughout the literature, including Weatherson s work on intuitionistic probability [Wea03]. In particular, I am not aware of any previous type-theoretic accounts of probability or any other formalism which treats conjectures as first class mathematical objects in their own right. I also note that the concept of probability invoked here is intended in a purely epistemic sense, and thus is best compared and contrasted with other accounts of logical and subjective probability in [Car50, df, Ram26]. Though not presented in traditional theorem-proof style, the numbered statements in the coming sections can be proven rigorously. To aid the exposition, I defer these proofs to the appendix (Section 5), and opt to explain their meaning as intuitively and preformally as possible in terms of probability, evidence, and conjecture. One feature of the constructive logic of MLTT is its amenability to formalization in a computerbased proof assistant, such as Coq or UniMath. Some parts of the formal system introduced here have been formalized in UniMath, and it is left as a topic of future work to fully formalize this theory. Though I attempt to provide as much explanation about type theory as possible, for brevity I assume basic knowledge of the rules and syntax of MLTT. I refer the reader to [Uni13, ML84] for a thorough introduction of MLTT and homotopy type theory. For more on the philosophy of intuitionism, see Brouwer [Brob, Broa, Bro81], Heyting [Hey71], Dummett [Dum00], and Martin-Löf [ML87, ML96]. 2. Type theoretic probability At a conceptual level, the state of affairs decomposes statements about truth and probability into five main components: Judgment: A judgment is an assertion, based on context and witnessed by either proof or evidence, that a concept is true or probable. Context: Judgments about truth and probability depend on context. Concept: Judgments are made about concepts. Following Martin-Löf s meaning explanation, the meaning of a concept is determined by how the concept manifests itself. Proof: The truth of any concept manifests itself in proof. Evidence: A conjecture about a concept manifests itself in evidence. 4 Contrast this with the orthodox Bayesian approach to evidence, which takes the probability function Pr( ) as primitive and defines E as evidence for A just in case Pr(A E) > Pr(A), where Pr(A E) is the conditional probability of A given E. From this perspective, the probabilities determined by Pr( ) exist prior to and independently of judgments about evidence. In the perspective taken here, evidence is primitive: a judgment about the probability of A cannot be made without evidence that supports the judgment. I explore this contrast further in [Cra18].

4 4 HARRY CRANE Here I write concept instead of proposition to suggest the more general settings (e.g., law, science) in which this thinking applies. The interpretation of types as mathematical concepts has also been suggested in [LP14]. To emphasize this interpretation below, I write A : Concept in place of A : Type, without any change to the rules of MLTT. These main components are expressed formally in MLTT with the following notation. pre-formal formal (MLTT) Context Γ A is a concept A : Concept A is probable is a concept Prob(A) : Concept judgment that A is true a : A conjecture that A is true a : Prob(A) In particular, if A : Concept is a mathematical proposition, then a : A is interpreted as a is a proof of A and a : Prob(A) as a is evidence for A. I call any judgment a : A a truth statement and a : Prob(A) a conjecture. The above setup is formalized in the following syntax, with the left of the turnstile providing context for the judgments on the right, written Context Judgment. Formal: Γ A : Concept Semi-formal: Context A is a concept Interpretation: Context invokes the concept A. Example: The context of arithmetic invokes the concept that addition is commutative: for all n, m : N, n + m = m + n. Formal: Γ, A : Concept Prob(A) : Concept Semi-formal: Context, A is a concept A is probable is a concept Interpretation: The context along with the concept A invokes the concept of the probability of A. Example: The context of arithmetic and the concept that every even integer greater than 4 is the sum of two odd primes invokes the concept that such a claim is probable. Formal: Γ, A : Concept a : A Semi-formal: Context, A is a concept a is a proof of A Interpretation: A judgment from context and a concept A that the truth of A is witnessed by proof a. Example: A proof from the rules of arithmetic that addition is commutative.

5 LOGIC OF PROBABILITY AND CONJECTURE 5 Formal: Γ, A : Concept a : Prob(A) Semi-formal: Context, A is a concept a is evidence for A Interpretation: A judgment from context and a concept A that a conjecture in A is supported by evidence a. Example: Empirical evidence that each of 6,..., 198, 200 can be expressed as the sum of two odd primes supports Goldbach s conjecture. The interpretation of Prob(A) as a body of evidence which supports conjectures about A follows by introducing appropriate rules for the probability type The Probability Type. Reasoning about concepts in MLTT proceeds by applying rules of formation, introduction, elimination, and computation associated to each type. For lack of space, I refer the reader to the appendix of [KL11] and also [Uni13, Appendix A.2] and [ML84, LP14] for a list of the standard rules of MLTT. See Table 1 for a comparison between the syntax of MLTT and classical logic. Note well the distinction between the constructive, proof relevant syntax of MLTT and the non-constructive, truth functional syntax of classical logic. For example, the type a:a B(a) in MLTT and ab(a) in classical logic can both be read as there exists a such that B(a), but their interpretations differ: in MLTT this statement requires an explicit witness a, b for a : A and b : B(a), and any subsequent outcomes derived from a, b : a:a B(a) are formally obtained by manipulating a, b according to the rules of MLTT. In classical logic, on the other hand, the truth of ab(a) is sufficient for deriving further conclusions, without regard for the proof that establishes this claim. The syntax of MLTT aligns the intuitionistic conceptions of truth and probability through the analogy (1) proof : truth :: evidence : probability. Whereas the lefthand side of (1) is fulfilled by judgments of the form a : A (in Martin- Löf s meaning explanation), the righthand side is filled out by the following rules for the probability type. (2) Formation rule: Γ A : Concept Γ Prob(A) : Concept Semi-formal: (3) Example: (Prob-form) Associated to any concept A, whose meaning is determined by proofs that A is true, is a concept Prob(A), whose meaning is determined by evidence that A is true. From the concept of it is raining, derive the concept that it is probably raining. Introduction rule: Γ A : Concept Γ, a : A evid A (a) : Prob(A) (Prob-intro)

6 6 HARRY CRANE Type theory Interpretation (Curry Howard) Classical logic Interpretation A : Type A is a proposition A proposition a : A a is a proof of A A A is true A B A and B A B A true and B true A + B A or B (disjoint union) A B A true or B true A B A implies B A B if A then B a:a B(a) there exists a : A s.t. B(a) a B(a) there exists a s.t. B(a) a:a B(a) B(a) for every a : A a B(a) B(a) true for all a 0 empty type (contradiction) false/contradiction A 0 A is false A not A a = A a proofs that a and a are identical Table 1. Comparison between syntax of MLTT and classical logic. Note that the constructive nature of MLTT means that a proof of B(a) for all a : A requires an explicit term f : a:a B(a) that associates a witness f(a) : B(a) to every a : A. Similarly, a proof that there exists a : A such that B(a) requires a witness a : A along with b(a) : B(a) so that a, b(a) : a:a B(a). The (propositional) identity type a = A a, which consists of all proofs that a and a are identical terms of A, has no analog in classical logic. Semi-formal: Example: Proof is the definitive and strongest kind of evidence: any proof of A (i.e., a : A) determines evidence for A (i.e., evid A (a) : Prob(A)). From definitive proof that it is raining (e.g., seeing rain through the window), deduce the weaker statement that it is probably raining. (4) Elimination rule 1 (Rule of implication): Semi-formal: Example: Γ A : Concept Γ, x : Prob(A) C(x) : Concept Γ, a : A d(a) : C(evid A (a)) Γ, x : Prob(A) imp d (x) : Prob(C(x)) (Prob-elim-1) Reasoning about evidence is guided by reasoning about proof. Thus, if A implies C, then evidence for A implies evidence for C. Since it is raining implies that the roads are wet, evidence that it is raining supports the conjecture that the roads are probably wet. (5) Elimination rule 2 (Rule of inference): Γ A : Concept Γ, x : Prob(A) C(x) : Concept Γ, a : A d(evid A (a)) : C(evid A (a)) Γ, x : Prob(A) inf d (x) : C(x) (Prob-elim-2)

7 LOGIC OF PROBABILITY AND CONJECTURE 7 Semi-formal: Example: If A implies C but only through the evidence induced by proofs of A, then evidence of A implies C. It is snowing implies that it is cold outside, but only through the evidence required to determine that there is evidence for it is probably snowing. Thus, from the judgment it is probably snowing we can deduce that it is cold outside. Computation rule 1: (6) Γ A : Concept Γ, x : Prob(A) C(x) : Concept Γ, a : A d(a) : C(evid A (a)) Γ, a : A imp d (evid A (a)) evid C(evid(a)) (d(a)) : Prob(C(evid A (a))) Semi-formal: (7) (Prob-comp-1) The computation rule combines (3) and (4) to make imp d defined in (4) compatible with its constructor d. Computation rule 2: Γ A : Concept Γ, x : Prob(A) C(x) : Concept Γ, a : A d(evid A (a)) : C(evid A (a)) Γ, a : A inf d (evid A (a)) d(evid A (a)) : C(evid A (a)) Semi-formal: (8) 0-rule: (Prob-comp-2) The computation rule combines (3) and (5) to make inf d defined in (5) compatible with its constructor d. Γ Prob(0) = 0 : Concept (Prob-0) Semi-formal: Since 0 : Concept is the concept of emptiness, i.e., has no terms, Prob(0) is the body of evidence supporting the claim 0 is inhabited. But since 0 is uninhabited by definition, any evidence for 0 would immediately lead to contradication; thus, Prob(0) is also uninhabited. Additional elimination rules could be introduced to reflect other ways to reason with evidence, e.g., a relation for judging relative strength of evidence (see Section 2.6). To streamline the discussion here, I restrict attention to the fragment described by the rules above. These rules complete the righthand side of the analogy in (1), warranting the interpretation a : A :: evid A (a) : Prob(A) proof : truth :: evidence : probability.

8 8 HARRY CRANE The next few sections establish some formal consequences of these rules which make precise the pre-formal interpretation of Prob(A) as a body of evidence and the judgments of the form a : Prob(A) as conjectures about the truth of A. To help the exposition, I defer formal proof of these results to Section Carriers of probability. By the introduction rule (3), evidence can be derived from any proof, and thus to every a : A there corresponds a piece of evidence evid A (a) : Prob(A). But because judgments about probability are conjectural, the interpretation of the probability type in terms of evidence is viable only if the logic permits the judgment a : Prob(A) to be made without definitive proof of A. In other words, the formal calculus should be consistent with but should not require (9) (evid A (x) = Prob(A) a). a:prob(a) x:a To every piece of evidence for A (i.e., a : Prob(A)) there exists a proof of A (i.e., x : A) that is compatible with that evidence (i.e., p : evid A (x) = a). If, for example, (9) were required to hold, then any conjecture a : Prob(A) would have to correspond to a proof, thus defeating the purpose of the established formalism as a logic for handling evidence. But while it is possible that a conjecture a : Prob(A) may be valid without any x : A for which evid A (x) = a, the formalism is consistent with this stringent correspondence between Prob(A) and A: (( ) ) (10) (evid A (x) = Prob(A) a) 0 0. a:prob(a) x:a It cannot be ruled out that every conjecture (i.e., a : Prob(A)) corresponds to a proof (i.e., x : A) through evid A : A Prob(A). According to (10), the logic is compatible with judgments of someone who refuses to conjecture without having definite proof. The observation in (10) goes hand in hand with the intended interpretation of the inhabitants of Prob(A) as carriers of evidence. For if (evid A (x) = Prob(A) a) 0 x:a were consistent for some A and a : Prob(A), then the interpretation of a as evidence for A would be called into question. Since (evid A (x) = Prob(A) a) 0 x:a rules out that a corresponds to some proof of A, the interpretation of a as evidence supporting the conjecture that A is provable becomes obscured. So even though the logic is consistent with probability judgments which do not necessarily correspond to a direct proof, in order for a probability judgment (a : Prob(A)) to qualify as a credible statement about evidence in favor of A, bona fide evidence a : Prob(A)

9 LOGIC OF PROBABILITY AND CONJECTURE 9 must at least suggest that a corresponds to a proof of A: ( ) (11) Prob (evid A (x) = Prob(A) a). x:a a:prob(a) Any piece of evidence for A (i.e., a : Prob(A)) gives rise to evidence that there exists a proof of A (i.e., x : A) that is compatible with that evidence (i.e., p : evid A (x) = a) Structure of probability. The structure of probability induced by the formal rules (2)-(8) can be summarized neatly for free-standing concepts (i.e., non-dependent types). Suppose A, B : Concept is such that B is provable whenever A is, i.e., A B is inhabited. Informally, since the truth of A implies the truth of B (i.e., A B) and evidence for A hints at the truth of A, then evidence for A should also hint at the truth of B. Formally, this follows by applying the elimination rule (4) to any f : A B. In particular, define C λa.b : A Concept in (4) 5 so that for any f : A B and any context Γ one can derive 6 Γ, a : A f(a) : C(a) B. Then by (4) and (6), we have imp f : Prob(A) Prob(B) such that imp f (evid A (a)) evid B (f(a)). When combined with (5) and (7), we obtain the following commutative diagram for A, B, C : Concept. g f f A B C g d evid A e evid B evid A inf d evid B inf e evid C Prob(A) Prob(B) Prob(C) imp f imp g (12) imp g imp f = imp g f 5 Here I have used λ-abstraction to define the function C : A Concept which assigns each a to B. In general the notation λx.y : X Y is a function that assigns each x : X to some y : Y. 6 Given a : A and f : A B, we can apply f to a to obtain f(a) : B.

10 10 HARRY CRANE (13) (14) imp f evid A evid B f : A Prob(B) inf d evid A d evid A : A B imp d evida = imp infd evid A = inf evidb inf d imp e evidb = imp infe evidb = inf evidc inf e. Note that for general expressions x and x of type A, I write x x : A to denote judgmental equality and x = A x to denote propositional identity in MLTT. Propositional identity x = A x is shorthand for the type Id(x, x, A) in MLTT, whose terms are proofs that x and x are identical. When the type is clear from context, I often omit it, writing x = x for propositional identity Combining evidence. The rules of MLTT together with the rules for the probability type induce a logic for combining evidence of different assertions and deriving new conjectures from old. For example, as carriers of evidence for A and B, the terms of Prob(A B) ought to give rise to evidence for A and evidence for B individually. That is, when considering the conjecture x : Prob(A B) for A and B, one can disregard the relevance of x to B (respectively, A) and derive a conjecture for A (resp. B) on its own: (15) splitprob A,B : Prob(A B) Prob(A) Prob(B). Evidence for A and B can be split into separate pieces of evidence for A and B individually. Similarly, when in possession of evidence for A or evidence for B, one can derive evidence for A or B : (16) combprob A,B : Prob(A) + Prob(B) Prob(A + B). Evidence for A or B can be derived from evidence for A or evidence for B. Together (15) and (16) give the hierarchy (17) Prob(A B) Prob(A) Prob(B) Prob(A)+Prob(B) Prob(A+B). The implications in (17) do not, in general, go in reverse. One may not, for example, feel compelled to combine two pieces of evidence, one for A and one for B, into a single conjecture for A and B jointly, as it might not be clear whether the specific pieces of evidence, say, a : Prob(A) and b : Prob(B), are compatible as evidence for A and B. Similarly, having evidence for A or B need not be sufficient for deriving evidence for either of the two individually. Indeed, for a given proposition A, one might postulate the law of excluded middle LEM A : A + A without specifying which of A or A holds. Asserting LEM A allows the derivation evid A+ A (LEM A ) : Prob(A + A) by (3), but without further evidence as to which of A or A holds the logical calculus does not justify a conjecture in A or A individually. These observations illustrate the proof relevant character of MLTT: e.g., to conjecture A and B, it is not enough to

11 LOGIC OF PROBABILITY AND CONJECTURE 11 simply have evidence for A and evidence for B; the two pieces of evidence must also be compatible with one another. The relations shown in (12), (15), and (16) for non-dependent types A and B extend to relations about universal and existential statements for dependent types B : A Concept. (18) Prob( B(a)) Prob(B(a)). a:a a:a From evidence that B holds for every proof of A, derive evidence of B(a) from any particular proof a : A. (19) Prob(B(a)) Prob( B(a)). a:a a:a From any proof of A (i.e., a : A) for which there is evidence for B (i.e., b : Prob(B(a))), derive evidence that B holds for some proof of A (i.e., Prob( a:a B(a))) Logic for handling evidence. The opening discussion of Section 1 raises the question of how a conjecture for B can be justified from (i) a conjecture for A and (ii) proof of A B. In our formalism, this corresponds to exhibiting a term of type Prob(A) (A B) Prob(B), which we have already shown through the commutative diagram in (12). Other similar inference rules for the probability type can be derived from the rules (2)-(8) by noting the distinction between A B in MLTT and classical logic. In classical logic, A B is defined as the material conditional A B, read as if A then B. By the law of excluded middle this is equivalent to ( A B) (A B), yielding logical equivalence among the statements A B A B (A B). But in the constructive logic of MLTT, the above three statements have different meanings and are related by the hierarchy (20) ( A + B) (A B) (A B), which in turn elicits a corresponding hierarchy among the corresponding probability statements; see (27) Evidence under A + B. Working from left to right in (20), assume first that there is evidence for A and proof of B or not A (i.e., A + B). By the elimination rule for the coproduct type A + B, we reason by case analysis. If B is already known, then B can trivially be derived, regardless of the evidence for A. And by the implication rule (4) and 0-rule (8), A A 0 implies Prob(A) 0, meaning that the evidence for A can be used to derive a contradiction, from which anything follows. Together this gives an inhabitant of (21) Prob(A) ( A + B) B. From a conjecture in A and proof of B or not A, derive a proof of B.

12 12 HARRY CRANE Notice as a special case that taking B A in (21) gives Prob(A) (A + A) A, so that, in particular, evidence for A and LEM A : A + A is enough to construct a proof of A. Thus, from evidence of A one can derive truth of A deductively by postulating LEM A : A + A. Though this seems counterintuitive at first, it is clarified by considering the meaning of the judgment LEM A : A + A in the logic of MLTT. (In MLTT, LEM A : A + A is a proof that A or A holds. By the introduction rule for coproducts, such a proof corresponds either to a proof of A or a proof of A. If the former, then A is true. If the latter, then the evidence for A contradicts the proof of not A, and from a contradiction anything follows.) On the other hand, from proof of A and a conjecture B or not A, one derives evidence for B: (22) A Prob( A + B) Prob(B) Evidence under A B. The structure of evidence summarized in (12) implies that evidence for B can be derived from evidence for A and proof that A implies B, i.e., from a : Prob(A) and f : A B derive imp f (a) : Prob(B). In fact, this can be done so that the evidence for A is compatible with the derived evidence for B, justifying a conjecture in A and B jointly: (23) Prob(A) (A B) Prob(A B) Given evidence for A and proof that A implies B, conjecture A and B. Also by (4), any verification of A and evidence that A implies B combine into evidence for A and B : (24) A Prob(A B) Prob(A B) Evidence under (A B). When equipped with proof that A and not B is not the case (i.e., (A B)), evidence for A must suggest that B is not the case (i.e., B) since the evidence for A hints that A is true while the proof of (A B) implies that A and B cannot both be true: (25) Prob(A) (A B) Prob(A B). Evidence for A and proof of (A B) combine to give evidence for A B. (Recall that, in general, B and B are not identical in MLTT, because MLTT does not require the law of excluded middle.) Similarly, from proof of A and evidence for (A B), one can derive evidence for B since knowing A and having evidence that A and B cannot both hold gives evidence against B: (26) A Prob( (A B)) Prob(A B).

13 LOGIC OF PROBABILITY AND CONJECTURE 13 Comparing the statements in (21), (23), and (25) and ignoring the appearance of A in their conclusion 7 gives the following commutative diagram, which agrees with the hierarchy in (20). (27) A + B Prob(A) ( A + B) B A B Prob(A) (A B) Prob(B) (A B) Prob(A) (A B) Prob( B) 2.6. Grades of evidence. We have so far discussed the probability type as a way of representing evidence at level one, i.e., evidence of a proposition. Unlike the conventional numerical approach to probability as a measure of evidence, the formalism presented here provides no immediate way to compare different pieces of evidence in terms of which is stronger. In the same way that different proofs of A cannot be compared on the basis of which better establishes the truth of A both establish the truth of A, but in (possibly) different ways there is no aspect of the formal system which allows for one to judge, for example, that a : Prob(A) is stronger evidence for A than a : Prob(A), or that a makes A more probable than a does. There are two possible ways to incorporate such a notion of evidential strength into this formalism. One is to extend upon the rules (2)-(8) by adding a relation A : Prob(A) Prob(A) Bool for each A : Concept along with rules for A that agree with the interpretation of A (a, a ) as a is stronger evidence for A than a. A second possibility requires no additional rules, but instead follows by iterating the probability type constructor Prob : Concept Concept to obtain an inductive hierarchy of different grades of evidence, beginning with truth (A), then evidence of truth (Prob(A)), evidence of evidence (Prob(Prob(A))), evidence of evidence of evidence (Prob(Prob(Prob(A)))), and so on. For each A : Concept, the formalism captures these different grades of evidence by the inductive definition Prob n (A) : Concept Prob 0 (A) : A Prob n+1 (A) : Prob(Prob n (A)), so that Prob n (A) consists of the nth level evidence of A. The theorems expressed throughout Section 2.5 can be extended to these higher probability types in a 7 For example, from the conclusion Prob(A B) in (26), we can apply (15) to get splitprob A, B : Prob(A B) Prob(A) Prob( B), which we compose with the projection map pr B : Prob(A) Prob( B) Prob( B), x, y y, to obtain Prob( B).

14 14 HARRY CRANE straightforward way. For example, for m, n 0, we can extend (23) to Prob m (A) Prob n (A B) Prob m+n (B). Both of these possible extensions are interesting for future examination, but are not discussed here due to space limitations; see [Cra18] for further discussion. 3. Homotopy Probability Theory So far the logic of probability described above has been purely syntactic, expressed as a logic for reasoning about concepts in MLTT. Though Martin-Löf s meaning explanation provides an interpretation of this syntax in terms of proofs and evidence for propositions, we can gain additional insights by interpreting the syntax of MLTT into homotopy type theory (HoTT). In HoTT, the types in MLTT are interpreted as homotopy types (i.e., topological spaces up to homotopy equivalence), and the calculus is empowered by the resulting univalence axiom, by which two types A, B : Concept are regarded as identical (i.e., A = Concept B) if their associated homotopy types are homotopy equivalent. To emphasize the interpretation in HoTT with univalence, we write A : U (instead of A : Concept) to indicate that A is a homotopy type in a univalent universe U (i.e., a universe of types for which the univalence axiom holds). With A B denoting that A, B : U are homotopy equivalent 8 and A = U B signifying that A and B are identical as homotopy types in U, the univalence axiom states, roughly, that for all A, B : U (28) (A B) (A = U B) equivalence is equivalent to identity. Formally, this is accomplished by constructing the canonical map stating that identity implies equivalence, and asserting as an axiom, idtoequiv A,B : (A = U B) (A B), ua : A,B:U isequiv(idtoequiv A,B ), so that idtoequiv A,B is an equivalence between A and B for all A, B : U. 9 The univalence axiom is a powerful and intriguing proposal in Voevovdsky s Univalent Foundations program [APW13, PW12, Uni13]. As it is impossible to discuss the many interesting aspects of HoTT and univalence in this short presentation, I 8 A B is formally defined as the type f:a B isequiv(f), where isequiv(f) : ( ) f g id B h f id A, g:b A h:b A for id C λc.c : C C for any C : U. 9 Following the convention of [Uni13], I write ua(p) : A = U B to indicate the image of p : A B under ua.

15 LOGIC OF PROBABILITY AND CONJECTURE 15 provide here only a cursory overview of how the familiar probabilistic concepts of independence, conditional probability, and additivity can be conceived in the proposed type theoretic version of probability. I refer the reader to [Awo14, Awo16, APW13, Tse16, Tse17, Shu17, Uni13] for further details about HoTT Identical concepts have identical probabilities. It is intuitive that identical concepts ought to have identical probabilities, as can be proven using the induction rule for identity types in MLTT without appealing to univalence: for all A, B : Concept and a, a : A, (29) (30) (a = A a ) (evid A (a) = Prob(A) evid A (a )) (A = Concept B) (Prob(A) = Concept Prob(B)). In MLTT, however, there is no mechanism for proving, e.g., A B = Concept B A. (In MLTT, we can only prove that A B and B A are isomorphic, i.e., A B B A, but we need the univalence axiom to derive A B = U B A from this isomorphism.) With the univalence axiom, we have, for all A, B : U, (31) (A B) (Prob(A) Prob(B)), from which several obvious statements follow as corollaries, including Prob(A B) Prob(B A) Prob(A + B) Prob(B + A). The univalence axiom has additional consequences for more nuanced aspects of the probability type, such as conditional probability, independence, and additivity, which warrant a much more in depth discussion than the brief introduction below Conditional probability. In practice, it is common to form a judgment, such as A and B is probable, by combining new evidence for B with old evidence for A. Formally, we define the conditional probability of B given a : Prob(A) as the dependent type Prob(B ) : Prob(A) Concept given for each a : Prob(A) by (32) Prob(B a) : (imp pra (x) = Prob(A) a). x:prob(a B) and Conditional evidence for B given evidence for A (i.e., a : Prob(A)) consists of evidence for A and B (i.e., x : Prob(A B)) along with proof that x is compatible with a (i.e., p : imp pra (x) = a). In (32), pr A : A B A, a, b a, is the canonical projection map and imp pra : Prob(A B) Prob(A) is the map constructed by applying the implication rule (4) to pr A. According to (32), the inhabitants of Prob(B a) correspond to conditional conjectures, i.e., a conjecture in B that is conditional on the conjecture a : Prob(A). Such a conjecture can be asserted just in case there is evidence x : Prob(A B) for A and B along with proof that x is compatible with a. A conditional conjecture in B given a : Prob(A) is thus stronger than a conjecture in A and B alone because the conditional probability requires that x : Prob(A B) is compatible with a specific conjecture a : Prob(A). This may at first seem counterintuitive since it appears

16 16 HARRY CRANE that the previous evidence for A has already done half the work in establishing the conjecture in A and B. But, at the same time, a : Prob(A) constrains what can serve as evidence for the conditional conjecture in B, because the conditional conjecture is required to be compatible with a : Prob(A). By analogy to the classical law of total probability in the probability calculus, 10 we observe a similar equivalence between Prob(A B) and the total space of all conditional probabilities Prob(B a) over all a : Prob(A), (33) Prob(A B) Prob(B a). a:prob(a) Having evidence for A and B is equivalent to having a piece of evidence for A (i.e., a : Prob(A)) along with conditional evidence for B that is compatible with a. For any A, B : U, the equivalence (33) is established by the conditionalization map cond B A : Prob(A B) Prob(B a) (34) a:prob(a) cond B A (x) : imp pra (x), x, refl imppra (x), which decomposes evidence x : Prob(A B) for A and B into evidence for A (i.e., imp pra (x) : Prob(A)) and conditional evidence for B given imp pra (x) (i.e., x, refl imppra (x) : Prob(B imp pra (x))). I prove (33) in Section Independence. Two concepts can be regarded as independent whenever their associated bodies of evidence are unrelated to one another. In other words, two assertions are independent if a conjecture about one is irrelevant to a conjecture about the other, expressed formally as (35) Prob(A B) = Concept Prob(A) Prob(B). Evidence for A (resp. B) serves neither to corroborate nor refute evidence for B (resp. A). I note in passing the similarity between (35) and the definition of independence in the ordinary probability calculus, Pr(A B) = Pr(A) Pr(B), with A and B regarded as propositions and interpreted as multiplication. Under univalence, with concepts interpreted as spaces in a universe U, (35) is equivalent to (36) Prob(A B) Prob(A) Prob(B), which must be witnessed by a homotopy equivalence between Prob(A B) and Prob(A) Prob(B). From Section 2.4, there is a canonical mapping splitprob A,B : Prob(A B) Prob(A) Prob(B) 10 In the standard (numerical) probability calculus, the law of total probability states that Pr(A B) = k j=1 Pr(B A j)pr(a j ) for any propositions A, B and a partition of A into mutually exclusive propositions A A 1 A k.

17 LOGIC OF PROBABILITY AND CONJECTURE 17 as defined in (15), but there is no canonical mapping Prob(A) Prob(B) Prob(A B). By understanding independence to mean that evidence for A is irrelevant to evidence for B, and vice versa, we define the independence type of A and B by (37) indep(a, B) : isequiv(splitprob A,B ) Conditional independence. Combining the definitions in Sections 3.2 and 3.3, we define conditional independence by replacing the probabilities in (35) with conditional probabilities: for A, B : Concept, we say that A and B are conditionally independent given C : Concept if (Prob(A B c) = Concept Prob(A c) Prob(B c)). c:prob(c) Interpreting MLTT into HoTT, we formally define the conditional independence type of A and B given C by indep(a, B C) : isequiv(condsplit A,B C (c)), for condsplit A,B C : condsplit A,B C : c:prob(c) c:prob(c) Prob(A B c) Prob(A c) Prob(B c) λc.λ x, p. imp pra (x), comp prc,pr A C p, imp prb (x), comp prc,pr B C p, where, for general f : A B and g : B C, comp g,f : imp g imp f = imp g f is the proof of the propositional identity for composition reflected in (12), and for general x, y, z : X, r s : x = z is the concatenation of the paths determined by r : x = y, and s : y = z in the homotopic interpretation Additivity. I conclude with a brief discussion of additivity, which figures prominently in the axioms of conventional probability theory but whose analog is absent from the evidence-based theory presented above. In the ordinary quantitative theory of probability, the additivity axiom says that (38) Pr(A B) = Pr(A) + Pr(B) for any mutually exclusive propositions A and B. If these probabilities are interpreted as a measure of the amount of evidence supporting A and B, then (38) says that the amount of evidence supporting A or B equals the amount supporting A plus the amount supporting B. In the type theoretic ( proof relevant ) setting, with Prob(A) and Prob(B) interpreted as the bodies of evidence supporting A and B, respectively, we express the analog to (38) as (39) Prob(A + B) = Concept Prob(A) + Prob(B),

18 18 HARRY CRANE with + interpreted now as the coproduct in type theory. In (39), the lefthand side is the body of evidence for A or B while the righthand side is the disjoint union of the body of evidence for A and the body of evidence for B. The discussion in Section 2.4 showed that evidence for A or evidence for B gives evidence for A or B, i.e., (40) combprob A,B : Prob(A) + Prob(B) Prob(A + B), but in general having evidence for A or B is not enough to determine which of the two there is evidence for. These observations provide a link between our conception of probability as a body of evidence and the Dempster Shafer axioms of belief functions Bel( ) [Dem67,Sha76], which instead of (38) require the weaker condition (41) Bel(A B) Bel(A) + Bel(B). The inequality in (41) reflects the possibility that the amount of evidence favoring A B might strictly exceed the sum of evidence for A and B individually. Note that, by interpreting as when evidence is regarded as a quantity, the implication in (40) agrees with the inequality in (41). The theory of evidence presented here is thus consistent with the Shaferian mathematical theory of evidence [Sha76]. It is interesting to consider the implications of assuming the additivity condition (39) when interpreted in HoTT. In this case, (39) becomes Prob(A + B) Prob(A) + Prob(B), and one could postulate (perhaps as an axiom) that the canonical map combprob A,B in (40) is an equivalence, isequiv(combprob A,B ). But this is beyond the scope of our discussion here. 4. Concluding remarks I have proposed a type-theoretic formalization of probability in which probability statements are defined as primitive judgments about evidence. As the concepts of probability and evidence have been intermingled for millenia, cf. [GZP + 89, Fra15], the formalism presented here is perhaps more historically accurate than the current mathematical orthodoxy for probability. Indeed, it was not until relatively recently in history that probability took its present numerical form [Por96, Hac75]. Also, since judgments of the form a is evidence for A arise much more commonly and naturally than precise quantitative probability assignments (i.e., degrees of belief), this framework is arguably better for modeling the way in which people routinely reason with evidence in legal proceedings, scientific investigation, mathematical conjecture, and everyday decision making. Finally, I have posed mathematical conjecture as the backdrop in order to anchor the exposition in something concrete without delving too far into the details of the given application. I discuss many more historical, philosophical, and conceptual aspects of this work in [Cra18].

19 LOGIC OF PROBABILITY AND CONJECTURE Appendix: Technical Proofs Proof of (11). We apply the elimination rule (4) to construct a witness λa.imp d (a) : Prob(C(a)), for the type family and d : x:a C(evid A (x)) defined by a:prob(a) C : Prob(A) Concept C(a) : x:a(imp pra (x) = Prob(A) a) (42) d(x) : x, refl evida (x) : x:a(evid A (x) = Prob(A) evid A (x)). Proof of (10). Given a : Prob(A) and f : x:a(evid A (x) = Prob(A) a) 0, we can derive f(y) : 0 for each y : x:a(evid A (x) = Prob(A) a). By the implication rule (4), we immediately have ( ) imp f : Prob (evid A (x) = Prob(A) a) Prob(0) 0 x:a imp f (evid(y)) : evid 0 (f(y)), y : A (x) = Prob(A) a). x:a(evid Finally, let d be as defined in (42), so that by (11), we have ( ) λa.imp d (a) : Prob (evid A (x) = Prob(A) a). x:a We conclude by constructing λa.λf.imp f (imp d (a)) : a:prob(a) a:prob(a)( x:a (evid A (x) = Prob(A) a) 0) 0. Proof of (12), (13), and (14). Several of the commutativity relations in (12) follow directly from the rules (2)-(8) of the probability type. For example, by (4) and (6), we immediately have imp f evid A evid B f : A Prob(B) and inf d evid A d evid A : A B, and analogously for g : B C and e evid B : B C in (12). By the first judgmental equality, we thus have comp g,f : imp g imp f = imp g f by first proving (43) prod a:prob(a) (imp g f (a) = Prob(C) (imp g imp f )(a)) and then applying the axiom of function extensionality. To prove (43), we apply the second elimination and computation rules of the probability type ((5) and (7)) as

20 20 HARRY CRANE follows. First define For every x : A, we have C : Prob(A) Concept C(a) : imp g f (a) = Prob(C) (imp g imp f )(a). imp g f (evid A (x)) evid C (g(f(x))) and (imp g imp f )(evid A (x)) imp g (imp f (evid A (x))) imp g (evid B (f(x))) evid C (g(f(x))), so that d(evid A (x)) refl evidc (g(f(x))) : C(evid A (x)) depends on x only through evid A (x). By (5), we have inf d : C(a), a:prob(a) as desired. Commutativity of the other relations in (12) follow by similar applications of the eliminations rules for Prob. To show the first equality in (13), we use both computation rules (6) and (7) with as follows. For x : A, we have C : Prob(A) Concept C(a) : imp d evida (a) = imp infd evid A (a) imp d evida (evid A (x)) evid B (d(evid A (x))) : A Prob(B) imp infd evid A (evid A (x)) evid B (inf d (evid A (x))) evid B (d(evid A (x))) : A Prob(B), so that and r(evid A (x)) refl evidb (d(evid A (x))) : C(evid A (x)) inf r : a:prob(a) imp d evida (a) = imp infd evid A (a) by (7). For the second equality, we argue similarly by noting that for every x : A inf evidb inf d (evid A (x)) evid B (inf d (evid A (x))) evid(d(evid A (x))) : A Prob(B) by (7). Proof of (15). For A, B : Concept let pr A : A B A pr A ( a, b ) : a and pr B : A B B pr B ( a, b ) : b

21 LOGIC OF PROBABILITY AND CONJECTURE 21 be the projection maps. By (12) we have imp pra : Prob(A B) Prob(A) and imp prb : Prob(A B) Prob(B), from which we construct λx. imp pra (x), imp prb (x) : Prob(A B) Prob(A) Prob(B). Proof of (16). For A, B : Concept let inl : A A + B and inr : B A + B be the left and right injections, respectively. By (12) (cf. (4)) we have from which we construct imp inl : Prob(A) Prob(A + B) imp inr : Prob(B) Prob(A + B), and h : Prob(A) + Prob(B) Prob(A + B) h(inl(a)) : imp inl (a), h(inr(b)) : imp inr (b), a : Prob(A), b : Prob(B). Proof of (18). Let B : A Concept be a dependent type. Fix a : A and define C : Prob( y:a B(y)) Concept as the non-dependent type C(x) : B(a). We construct λf.f(a) : y:a B(y) B(a) so that the elimination rule (4) implies We may thus construct λx.imp λf.f(a) (x) : Prob( y:a B(y)) Prob(B(a)). λx.λa.imp λf.f(a) (x) : Prob( B(y)) Prob(B(a)). y:a a:a Proof of (19). Let B : A Concept be a dependent type. For each a : A define C a : Prob(B(a)) Concept as the non-dependent type C a (x) : y:a B(y). From any b : B(a) we construct a, b : C a (evid B(a) (b)), so that the implication rule (4) implies λx.imp λb:b(a). a,b (x) : Prob(B(a)) Prob( y:a B(y)). We then define h : Prob(B(a)) Prob( B(a)) a:a a:a h( a, x ) : imp λb:b(a). a,b (x).

22 22 HARRY CRANE Proof of (21). Fix A, B : Concept and note first that from any f : A A 0 the elimination rule (4) implies imp f : Prob(A) 0. Arguing by case analysis for the coproduct type, we thus construct h : Prob(A) ( A + B) B h( a, inl(f) ) : efq B (imp f (a)), a : Prob(A), f : A 0, h( a, inr(b) ) : b, a : Prob(A), b : B, where efq B : 0 B is ex falso quodlibet for B. Proof of (22). For A, B : Concept and a : A, we define d a : A + B B by the elimination rule for A + B: d a (inl(f)) : efq B (f(a)), f : A 0, d a (inr(b)) : b, b : B. By the elimination rule for the probability type (4), we construct imp da : Prob( A + B) Prob(B), from which we conclude by defining λa.λx.imp da (x) : A Prob( A + B) Prob(B). Proof of (23). For A, B : Concept and f : A B, we construct We then define h f : Prob(A) Prob(A B) h f (a) : imp λx. x,f(x) :A (A B) (a). λa.λf.h f (a) : Prob(A) (A B) Prob(A B). Proof of (24). For A, B : Concept and a : A, we define d a imp λf. a,f(a) :(A B) (A B) : Prob(A B) Prob(A B) by the elimination rule (4). We then construct λa.λx.d a (x) : A Prob(A B) Prob(A B). Proof of (25). For A, B : Concept, f : A (B 0) 0, and a : A, we define f a : λb.f(a, b) : (B 0) 0. Thus, for every a : A we have f a : B (B 0) 0 and λa. a, f a : A (A B). The elimination rule for the probability type (4) gives imp λa. a,fa From the judgmental equality : Prob(A) Prob(A B). A (B 0) 0 (A B),

23 LOGIC OF PROBABILITY AND CONJECTURE 23 we define λx.λf.imp λa. a,fa (x) : Prob(A) (A B) Prob(A B). Proof of (26). For A, B : Concept, a : A, and f : A (B 0) 0, we define f a : λb.f(a, b) : (B 0) 0 as in the proof of (25). We then define d a λf. a, f a : (A B) (A B) so that imp da : Prob( (A B)) Prob(A B). The proof is completed by λa.λx.imp da (x) : A Prob( (A B)) Prob(A B). Proof of (27). The following commutes: Prob(A) ( A + B) α B β Prob(A) (A B) ζ evid B Prob(B) (44) γ Prob(A) (A B) δ ɛ Prob( B) Define α, β, γ, δ, ɛ as follows. (For f : A C and g : B C, I write ind f,g : A + B C for the function defined by case analysis.) λa.α L (a) λa.λg. efq B (imp g (a)) : Prob(A) A B λa.α R (a) λa.λb.b : Prob(A) B B α λa.λz.ind αl (a),α R (a)(z) : Prob(A) ( A + B) B λa.β L (a) λa.λg. a, λx. efq B (g(x)) : Prob(A) A Prob(A) (A B) λa.β R (a) λa.λb. a, λx.b : Prob(A) B Prob(A) (A B) β λa.λz.ind βl (a),β R (a)(z) : Prob(A) ( A + B) Prob(A) (A B) γ λa.λf. a, λx.λg.g(f(x)) : Prob(A) (A B) Prob(A) (A B) δ λa.λg.imp g (a) : Prob(A) (A B) Prob( B) ɛ λb.imp λy.λg.g(y):b B 0 (b) : Prob(B) Prob( B) ζ λa.λf.imp f (a) : Prob(A) (A B) Prob(B). We first show that the upper square commutes by repeated application of the elimination rule for the product, coproduct, and probability types. For the upper half of the square, evid B α : Prob(A) ( A + B) Prob(B) is defined by case

24 24 HARRY CRANE analysis: (a, inl(g)) evid B (efq B (imp g (a)) (a, inr(b)) evid B (b). The lower half ζ β is also defined by case analysis: (a, inl(g)) imp λx. efqb (g(x)) (a) (a, inr(b)) imp λx.b (a). Now, to show that evid B α = ζ β, we must produce an inhabitant of p : (evid B α)(z) = (ζ β)(z). z:prob(a) ( A+B) By the elimination rule for product and coproduct types, we can construct such an inhabitant p by considering z = (a, inl(g)) and z = (a, inr(b)) for a : Prob(A), g : A, and b : B, and defining p 1 : (evid B (efq B (imp g (a))) = imp λx. efqb (g(x)) (a)) p 2 : a:prob(a) g: A a:prob(a) b:b (imp λx.b (a) = evid B (b)). The conclude evid B α = ζ β by the axiom of function extensionality (e.g., Axiom in [Uni13]). For p 1, we appeal to the second elimination rule for the probability type (the rule of inference (7)) to compute imp λx. efqb (g(x)) (evid A(x)) evid B (efq B (g(x))), x : A. Now, given g : A, x : A, and a : Prob(A), we have q(a, g) efq impg (a)=g(a) (imp g (a)) : imp g (a) = g(x). The proof p 1 follows by continuity of functions in type theory: p 1 λa.λg. ap evidb efq (q(a, g)) : (evid B (efq B B (imp g (a))) = evid B (efq B (g(x)))), a:prob(a) g: A where ap evidb efq B (q(a, g)) is the application of evid B efq B to the path q(a, g), as defined in Lemma in [Uni13]. For p 2, we observe that imp λx.b (a) evid B (b) so that p 2 : λa.λb.refl evidb (b). The conclusion follows by the elimination rules for Prob(A) ( A + B) and A + B. To show that the bottom square commutes, we have to prove that ɛ ζ = δ γ holds in Prob(A) (A B) Prob( B). For the upper half, we have λa.λf.imp λy:b.λg: B.g(y):0 (imp f (a)) : Prob(A) (A B) Prob( B), which for x : A and f : A B satisfies imp λy:b.λg: B.g(y):0 (imp f (evid A (x))) imp λy:b.λg: B.g(y):0 (evid B (f(x))) evid B (λg : B.g(f(x))).

Homotopy Probability Theory in the Univalent Foundations

Homotopy Probability Theory in the Univalent Foundations Homotopy Probability Theory in the Univalent Foundations Harry Crane Department of Statistics Rutgers April 11, 2018 Harry Crane (Rutgers) Homotopy Probability Theory Drexel: April 11, 2018 1 / 33 Motivating

More information

The Fundamental Principle of Data Science

The Fundamental Principle of Data Science The Fundamental Principle of Data Science Harry Crane Department of Statistics Rutgers May 7, 2018 Web : www.harrycrane.com Project : researchers.one Contact : @HarryDCrane Harry Crane (Rutgers) Foundations

More information

Propositions and Proofs

Propositions and Proofs Chapter 2 Propositions and Proofs The goal of this chapter is to develop the two principal notions of logic, namely propositions and proofs There is no universal agreement about the proper foundations

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

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

Homotopy Type Theory Lecture Notes

Homotopy Type Theory Lecture Notes 15-819 Homotopy Type Theory Lecture Notes Nathan Fulton October 9 and 11, 2013 1 Contents These notes summarize and extend two lectures from Bob Harper s Homotopy Type Theory course. The cumulative hierarchy

More information

Type Theory and Univalent Foundation

Type Theory and Univalent Foundation Thierry Coquand Clermont-Ferrand, October 17, 2013 This talk Revisit some questions discussed by Russell at the beginning of Type Theory -Russell s Paradox (1901) -Theory of Descriptions (1905) -Theory

More information

Supplementary Material for MTH 299 Online Edition

Supplementary Material for MTH 299 Online Edition Supplementary Material for MTH 299 Online Edition Abstract This document contains supplementary material, such as definitions, explanations, examples, etc., to complement that of the text, How to Think

More information

CHAPTER 11. Introduction to Intuitionistic Logic

CHAPTER 11. Introduction to Intuitionistic Logic CHAPTER 11 Introduction to Intuitionistic Logic Intuitionistic logic has developed as a result of certain philosophical views on the foundation of mathematics, known as intuitionism. Intuitionism was originated

More information

Homotopy Type Theory

Homotopy Type Theory Homotopy Type Theory Jeremy Avigad Department of Philosophy and Department of Mathematical Sciences Carnegie Mellon University February 2016 Homotopy Type Theory HoTT relies on a novel homotopy-theoretic

More information

Introduction to type theory and homotopy theory

Introduction to type theory and homotopy theory Introduction to type theory and homotopy theory Michael Shulman January 24, 2012 1 / 47 Homotopy theory Homotopy type theory types have a homotopy theory Intensional type theory New perspectives on extensional

More information

1 / A bird s-eye view of type theory. 2 A bird s-eye view of homotopy theory. 3 Path spaces and identity types. 4 Homotopy type theory

1 / A bird s-eye view of type theory. 2 A bird s-eye view of homotopy theory. 3 Path spaces and identity types. 4 Homotopy type theory Introduction to type theory and homotopy theory Michael Shulman January 24, 2012 Homotopy theory Homotopy type theory types have a homotopy theory New perspectives on extensional vs. intensional Intensional

More information

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes These notes form a brief summary of what has been covered during the lectures. All the definitions must be memorized and understood. Statements

More information

Lecture Notes on Sequent Calculus

Lecture Notes on Sequent Calculus Lecture Notes on Sequent Calculus 15-816: Modal Logic Frank Pfenning Lecture 8 February 9, 2010 1 Introduction In this lecture we present the sequent calculus and its theory. The sequent calculus was originally

More information

Higher Inductive types

Higher Inductive types Egbert Rijke Bas Spitters Radboud University Nijmegen May 7th, 2013 Introduction Violating UIP Recall that in Martin-Löf type theory, every type A has an associated identity type = A : A A U. We do not

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

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

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

Incompatibility Paradoxes

Incompatibility Paradoxes Chapter 22 Incompatibility Paradoxes 22.1 Simultaneous Values There is never any difficulty in supposing that a classical mechanical system possesses, at a particular instant of time, precise values of

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

Introduction to Metalogic

Introduction to Metalogic Philosophy 135 Spring 2008 Tony Martin Introduction to Metalogic 1 The semantics of sentential logic. The language L of sentential logic. Symbols of L: Remarks: (i) sentence letters p 0, p 1, p 2,... (ii)

More information

First-Degree Entailment

First-Degree Entailment March 5, 2013 Relevance Logics Relevance logics are non-classical logics that try to avoid the paradoxes of material and strict implication: p (q p) p (p q) (p q) (q r) (p p) q p (q q) p (q q) Counterintuitive?

More information

The equivalence axiom and univalent models of type theory.

The equivalence axiom and univalent models of type theory. The equivalence axiom and univalent models of type theory. (Talk at CMU on February 4, 2010) By Vladimir Voevodsky Abstract I will show how to define, in any type system with dependent sums, products and

More information

Introduction to Topology

Introduction to Topology Introduction to Topology Randall R. Holmes Auburn University Typeset by AMS-TEX Chapter 1. Metric Spaces 1. Definition and Examples. As the course progresses we will need to review some basic notions about

More information

Lecture Notes on Constructive Logic: Overview

Lecture Notes on Constructive Logic: Overview Lecture Notes on Constructive Logic: Overview 15-317: Constructive Logic Frank Pfenning Lecture 1 August 25, 2009 1 Introduction According to Wikipedia, logic is the study of the principles of valid inferences

More information

Mathematical Reasoning & Proofs

Mathematical Reasoning & Proofs Mathematical Reasoning & Proofs MAT 1362 Fall 2018 Alistair Savage Department of Mathematics and Statistics University of Ottawa This work is licensed under a Creative Commons Attribution-ShareAlike 4.0

More information

Categories, Proofs and Programs

Categories, Proofs and Programs Categories, Proofs and Programs Samson Abramsky and Nikos Tzevelekos Lecture 4: Curry-Howard Correspondence and Cartesian Closed Categories In A Nutshell Logic Computation 555555555555555555 5 Categories

More information

CHAPTER 0: BACKGROUND (SPRING 2009 DRAFT)

CHAPTER 0: BACKGROUND (SPRING 2009 DRAFT) CHAPTER 0: BACKGROUND (SPRING 2009 DRAFT) MATH 378, CSUSM. SPRING 2009. AITKEN This chapter reviews some of the background concepts needed for Math 378. This chapter is new to the course (added Spring

More information

Denotational Semantics

Denotational Semantics 5 Denotational Semantics In the operational approach, we were interested in how a program is executed. This is contrary to the denotational approach, where we are merely interested in the effect of executing

More information

Peano Arithmetic. CSC 438F/2404F Notes (S. Cook) Fall, Goals Now

Peano Arithmetic. CSC 438F/2404F Notes (S. Cook) Fall, Goals Now CSC 438F/2404F Notes (S. Cook) Fall, 2008 Peano Arithmetic Goals Now 1) We will introduce a standard set of axioms for the language L A. The theory generated by these axioms is denoted PA and called Peano

More information

Russell s logicism. Jeff Speaks. September 26, 2007

Russell s logicism. Jeff Speaks. September 26, 2007 Russell s logicism Jeff Speaks September 26, 2007 1 Russell s definition of number............................ 2 2 The idea of reducing one theory to another.................... 4 2.1 Axioms and theories.............................

More information

Philosophy 148 Announcements & Such

Philosophy 148 Announcements & Such Branden Fitelson Philosophy 148 Lecture 1 Philosophy 148 Announcements & Such Overall, people did very well on the mid-term (µ = 90, σ = 16). HW #2 graded will be posted very soon. Raul won t be able to

More information

Meta-logic derivation rules

Meta-logic derivation rules Meta-logic derivation rules Hans Halvorson February 19, 2013 Recall that the goal of this course is to learn how to prove things about (as opposed to by means of ) classical first-order logic. So, we will

More information

Implementing Proof Systems for the Intuitionistic Propositional Logic

Implementing Proof Systems for the Intuitionistic Propositional Logic Implementing Proof Systems for the Intuitionistic Propositional Logic Veronica Zammit Supervisor: Dr. Adrian Francalanza Faculty of ICT University of Malta May 27, 2011 Submitted in partial fulfillment

More information

Introduction to Metalogic

Introduction to Metalogic Introduction to Metalogic Hans Halvorson September 21, 2016 Logical grammar Definition. A propositional signature Σ is a collection of items, which we call propositional constants. Sometimes these propositional

More information

Harvard School of Engineering and Applied Sciences CS 152: Programming Languages

Harvard School of Engineering and Applied Sciences CS 152: Programming Languages Harvard School of Engineering and Applied Sciences CS 152: Programming Languages Lecture 17 Tuesday, April 2, 2013 1 There is a strong connection between types in programming languages and propositions

More information

An Intuitively Complete Analysis of Gödel s Incompleteness

An Intuitively Complete Analysis of Gödel s Incompleteness An Intuitively Complete Analysis of Gödel s Incompleteness JASON W. STEINMETZ (Self-funded) A detailed and rigorous analysis of Gödel s proof of his first incompleteness theorem is presented. The purpose

More information

Computer Proof Assistants and Univalent Foundations of Mathematics

Computer Proof Assistants and Univalent Foundations of Mathematics Nov. 16, 2014, CMA2014, Kuwait. Computer Proof Assistants and Univalent Foundations of Mathematics by Vladimir Voevodsky from the Institute for Advanced Study in Princeton, NJ. Kepler s Conjecture. In

More information

Structural Foundations for Abstract Mathematics

Structural Foundations for Abstract Mathematics May 5, 2013 What no foundation can give us: Certainty What foundations need not give us: Ontological reduction What set theory gives us: Common language in which all mathematics can be encoded:,,,... Dispute

More information

3 The language of proof

3 The language of proof 3 The language of proof After working through this section, you should be able to: (a) understand what is asserted by various types of mathematical statements, in particular implications and equivalences;

More information

A Meaning Explanation for HoTT

A Meaning Explanation for HoTT A Meaning Explanation for HoTT Dimitris Tsementzis February 15, 2017 Abstract The Univalent Foundations (UF) offer a new picture of the foundations of mathematics largely independent from set theory. In

More information

Lecture 6: Finite Fields

Lecture 6: Finite Fields CCS Discrete Math I Professor: Padraic Bartlett Lecture 6: Finite Fields Week 6 UCSB 2014 It ain t what they call you, it s what you answer to. W. C. Fields 1 Fields In the next two weeks, we re going

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

Propositions and Proofs

Propositions and Proofs Propositions and Proofs Gert Smolka, Saarland University April 25, 2018 Proposition are logical statements whose truth or falsity can be established with proofs. Coq s type theory provides us with a language

More information

CS Lecture 19: Logic To Truth through Proof. Prof. Clarkson Fall Today s music: Theme from Sherlock

CS Lecture 19: Logic To Truth through Proof. Prof. Clarkson Fall Today s music: Theme from Sherlock CS 3110 Lecture 19: Logic To Truth through Proof Prof. Clarkson Fall 2014 Today s music: Theme from Sherlock Review Current topic: How to reason about correctness of code Last week: informal arguments

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

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic The Importance of Being Formal Martin Henz February 5, 2014 Propositional Logic 1 Motivation In traditional logic, terms represent sets, and therefore, propositions are limited to stating facts on sets

More information

Gödel s Incompleteness Theorems

Gödel s Incompleteness Theorems Seminar Report Gödel s Incompleteness Theorems Ahmet Aspir Mark Nardi 28.02.2018 Supervisor: Dr. Georg Moser Abstract Gödel s incompleteness theorems are very fundamental for mathematics and computational

More information

Lecture Notes on Combinatory Modal Logic

Lecture Notes on Combinatory Modal Logic Lecture Notes on Combinatory Modal Logic 15-816: Modal Logic Frank Pfenning Lecture 9 February 16, 2010 1 Introduction The connection between proofs and program so far has been through a proof term assignment

More information

This is logically equivalent to the conjunction of the positive assertion Minimal Arithmetic and Representability

This is logically equivalent to the conjunction of the positive assertion Minimal Arithmetic and Representability 16.2. MINIMAL ARITHMETIC AND REPRESENTABILITY 207 If T is a consistent theory in the language of arithmetic, we say a set S is defined in T by D(x) if for all n, if n is in S, then D(n) is a theorem of

More information

Logic Part II: Intuitionistic Logic and Natural Deduction

Logic Part II: Intuitionistic Logic and Natural Deduction Yesterday Remember yesterday? classical logic: reasoning about truth of formulas propositional logic: atomic sentences, composed by connectives validity and satisability can be decided by truth tables

More information

Equational Logic. Chapter Syntax Terms and Term Algebras

Equational Logic. Chapter Syntax Terms and Term Algebras Chapter 2 Equational Logic 2.1 Syntax 2.1.1 Terms and Term Algebras The natural logic of algebra is equational logic, whose propositions are universally quantified identities between terms built up from

More information

Natural deduction for truth-functional logic

Natural deduction for truth-functional logic Natural deduction for truth-functional logic Phil 160 - Boston University Why natural deduction? After all, we just found this nice method of truth-tables, which can be used to determine the validity or

More information

A Meaning Explanation for HoTT

A Meaning Explanation for HoTT A Meaning Explanation for HoTT Dimitris Tsementzis March 12, 2018 Abstract In the Univalent Foundations of mathematics spatial notions like point and path are primitive, rather than derived, and all of

More information

Lecture Notes on Linear Logic

Lecture Notes on Linear Logic Lecture Notes on Linear Logic 15-816: Modal Logic Frank Pfenning Lecture 23 April 20, 2010 1 Introduction In this lecture we will introduce linear logic [?] in its judgmental formulation [?,?]. Linear

More information

MATH2206 Prob Stat/20.Jan Weekly Review 1-2

MATH2206 Prob Stat/20.Jan Weekly Review 1-2 MATH2206 Prob Stat/20.Jan.2017 Weekly Review 1-2 This week I explained the idea behind the formula of the well-known statistic standard deviation so that it is clear now why it is a measure of dispersion

More information

THE WEDGE SUM AND THE SMASH PRODUCT IN HOMOTOPY TYPE THEORY

THE WEDGE SUM AND THE SMASH PRODUCT IN HOMOTOPY TYPE THEORY THE WEDGE SUM AND THE SMASH PRODUCT IN HOMOTOPY TYPE THEORY MASTER THESIS MATHEMATICAL INSTITUTE LMU MUNICH ANDREAS FRANZ THESIS SUPERVISOR: DR. IOSIF PETRAKIS Abstract. Martin-Löf s intensional type theory

More information

Homotopy and Directed Type Theory: a Sample

Homotopy and Directed Type Theory: a Sample Homotopy and Directed Type Theory: a Sample Dan Doel October 24, 2011 Type Theory Overview Judgments Γ ctx Γ A type Γ M : A Families Γ, x : A B(x) type Inference Γ 1 J 1 Γ 2 J 2 Type Theory Overview Π

More information

Equality and dependent type theory. CIRM, May 31

Equality and dependent type theory. CIRM, May 31 CIRM, May 31 The Axiom of Univalence, a type-theoretic view point In type theory, we reduce proof-checking to type-checking Hence we want type-checking to be decidable This holds as soon as we have the

More information

Propositional Logic. CS 3234: Logic and Formal Systems. Martin Henz and Aquinas Hobor. August 26, Generated on Tuesday 31 August, 2010, 16:54

Propositional Logic. CS 3234: Logic and Formal Systems. Martin Henz and Aquinas Hobor. August 26, Generated on Tuesday 31 August, 2010, 16:54 Propositional Logic CS 3234: Logic and Formal Systems Martin Henz and Aquinas Hobor August 26, 2010 Generated on Tuesday 31 August, 2010, 16:54 1 Motivation In traditional logic, terms represent sets,

More information

cse371/mat371 LOGIC Professor Anita Wasilewska Fall 2018

cse371/mat371 LOGIC Professor Anita Wasilewska Fall 2018 cse371/mat371 LOGIC Professor Anita Wasilewska Fall 2018 Chapter 7 Introduction to Intuitionistic and Modal Logics CHAPTER 7 SLIDES Slides Set 1 Chapter 7 Introduction to Intuitionistic and Modal Logics

More information

The semantics of propositional logic

The semantics of propositional logic The semantics of propositional logic Readings: Sections 1.3 and 1.4 of Huth and Ryan. In this module, we will nail down the formal definition of a logical formula, and describe the semantics of propositional

More information

CHAPTER 3: THE INTEGERS Z

CHAPTER 3: THE INTEGERS Z CHAPTER 3: THE INTEGERS Z MATH 378, CSUSM. SPRING 2009. AITKEN 1. Introduction The natural numbers are designed for measuring the size of finite sets, but what if you want to compare the sizes of two sets?

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

Proof Theoretical Studies on Semilattice Relevant Logics

Proof Theoretical Studies on Semilattice Relevant Logics Proof Theoretical Studies on Semilattice Relevant Logics Ryo Kashima Department of Mathematical and Computing Sciences Tokyo Institute of Technology Ookayama, Meguro, Tokyo 152-8552, Japan. e-mail: kashima@is.titech.ac.jp

More information

Introduction to Logic and Axiomatic Set Theory

Introduction to Logic and Axiomatic Set Theory Introduction to Logic and Axiomatic Set Theory 1 Introduction In mathematics, we seek absolute rigor in our arguments, and a solid foundation for all of the structures we consider. Here, we will see some

More information

2. Introduction to commutative rings (continued)

2. Introduction to commutative rings (continued) 2. Introduction to commutative rings (continued) 2.1. New examples of commutative rings. Recall that in the first lecture we defined the notions of commutative rings and field and gave some examples of

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

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

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

TR : Tableaux for the Logic of Proofs

TR : Tableaux for the Logic of Proofs City University of New York (CUNY) CUNY Academic Works Computer Science Technical Reports Graduate Center 2004 TR-2004001: Tableaux for the Logic of Proofs Bryan Renne Follow this and additional works

More information

Chapter 2. Mathematical Reasoning. 2.1 Mathematical Models

Chapter 2. Mathematical Reasoning. 2.1 Mathematical Models Contents Mathematical Reasoning 3.1 Mathematical Models........................... 3. Mathematical Proof............................ 4..1 Structure of Proofs........................ 4.. Direct Method..........................

More information

Přednáška 12. Důkazové kalkuly Kalkul Hilbertova typu. 11/29/2006 Hilbertův kalkul 1

Přednáška 12. Důkazové kalkuly Kalkul Hilbertova typu. 11/29/2006 Hilbertův kalkul 1 Přednáška 12 Důkazové kalkuly Kalkul Hilbertova typu 11/29/2006 Hilbertův kalkul 1 Formal systems, Proof calculi A proof calculus (of a theory) is given by: A. a language B. a set of axioms C. a set of

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

Theorem. For every positive integer n, the sum of the positive integers from 1 to n is n(n+1)

Theorem. For every positive integer n, the sum of the positive integers from 1 to n is n(n+1) Week 1: Logic Lecture 1, 8/1 (Sections 1.1 and 1.3) Examples of theorems and proofs Theorem (Pythagoras). Let ABC be a right triangle, with legs of lengths a and b, and hypotenuse of length c. Then a +

More information

Computational Tasks and Models

Computational Tasks and Models 1 Computational Tasks and Models Overview: We assume that the reader is familiar with computing devices but may associate the notion of computation with specific incarnations of it. Our first goal is to

More information

A Little Deductive Logic

A Little Deductive Logic A Little Deductive Logic In propositional or sentential deductive logic, we begin by specifying that we will use capital letters (like A, B, C, D, and so on) to stand in for sentences, and we assume that

More information

Topic 7: Using identity types

Topic 7: Using identity types Toic 7: Using identity tyes June 10, 2014 Now we would like to learn how to use identity tyes and how to do some actual mathematics with them. By now we have essentially introduced all inference rules

More information

On Conditional Independence in Evidence Theory

On Conditional Independence in Evidence Theory 6th International Symposium on Imprecise Probability: Theories and Applications, Durham, United Kingdom, 2009 On Conditional Independence in Evidence Theory Jiřina Vejnarová Institute of Information Theory

More information

0.Axioms for the Integers 1

0.Axioms for the Integers 1 0.Axioms for the Integers 1 Number theory is the study of the arithmetical properties of the integers. You have been doing arithmetic with integers since you were a young child, but these mathematical

More information

Formal Logic and Deduction Systems

Formal Logic and Deduction Systems Formal Logic and Deduction Systems Software Formal Verification Maria João Frade Departmento de Informática Universidade do Minho 2008/2009 Maria João Frade (DI-UM) Formal Logic and Deduction Systems MFES

More information

Draft of February 2019 please do not cite without permission. A new modal liar 1 T. Parent

Draft of February 2019 please do not cite without permission. A new modal liar 1 T. Parent Draft of February 2019 please do not cite without permission 1. Introduction A new modal liar 1 T. Parent Standardly, necessarily is treated in modal logic as an operator on propositions (much like ~ ).

More information

A Little Deductive Logic

A Little Deductive Logic A Little Deductive Logic In propositional or sentential deductive logic, we begin by specifying that we will use capital letters (like A, B, C, D, and so on) to stand in for sentences, and we assume that

More information

Contribution of Problems

Contribution of Problems Exam topics 1. Basic structures: sets, lists, functions (a) Sets { }: write all elements, or define by condition (b) Set operations: A B, A B, A\B, A c (c) Lists ( ): Cartesian product A B (d) Functions

More information

Lecture Notes: Axiomatic Semantics and Hoare-style Verification

Lecture Notes: Axiomatic Semantics and Hoare-style Verification Lecture Notes: Axiomatic Semantics and Hoare-style Verification 17-355/17-665/17-819O: Program Analysis (Spring 2018) Claire Le Goues and Jonathan Aldrich clegoues@cs.cmu.edu, aldrich@cs.cmu.edu It has

More information

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Lecture Notes 1 Basic Concepts of Mathematics MATH 352 Lecture Notes 1 Basic Concepts of Mathematics MATH 352 Ivan Avramidi New Mexico Institute of Mining and Technology Socorro, NM 87801 June 3, 2004 Author: Ivan Avramidi; File: absmath.tex; Date: June 11,

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

Comment on Leitgeb s Stability Theory of Belief

Comment on Leitgeb s Stability Theory of Belief Comment on Leitgeb s Stability Theory of Belief Hanti Lin Kevin T. Kelly Carnegie Mellon University {hantil, kk3n}@andrew.cmu.edu Hannes Leitgeb s stability theory of belief provides three synchronic constraints

More information

Introduction to Logic

Introduction to Logic Introduction to Logic 1 What is Logic? The word logic comes from the Greek logos, which can be translated as reason. Logic as a discipline is about studying the fundamental principles of how to reason

More information

The following techniques for methods of proofs are discussed in our text: - Vacuous proof - Trivial proof

The following techniques for methods of proofs are discussed in our text: - Vacuous proof - Trivial proof Ch. 1.6 Introduction to Proofs The following techniques for methods of proofs are discussed in our text - Vacuous proof - Trivial proof - Direct proof - Indirect proof (our book calls this by contraposition)

More information

A MODEL-THEORETIC PROOF OF HILBERT S NULLSTELLENSATZ

A MODEL-THEORETIC PROOF OF HILBERT S NULLSTELLENSATZ A MODEL-THEORETIC PROOF OF HILBERT S NULLSTELLENSATZ NICOLAS FORD Abstract. The goal of this paper is to present a proof of the Nullstellensatz using tools from a branch of logic called model theory. In

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

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas. 1 Chapter 1 Propositional Logic Mathematical logic studies correct thinking, correct deductions of statements from other statements. Let us make it more precise. A fundamental property of a statement is

More information

CS522 - Programming Language Semantics

CS522 - Programming Language Semantics 1 CS522 - Programming Language Semantics Simply Typed Lambda Calculus Grigore Roşu Department of Computer Science University of Illinois at Urbana-Champaign 2 We now discuss a non-trivial extension of

More information

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010)

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010) http://math.sun.ac.za/amsc/sam Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics 2009-2010 Lecture notes in progress (27 March 2010) Contents 2009 Semester I: Elements 5 1. Cartesian product

More information

Logic and Propositional Calculus

Logic and Propositional Calculus CHAPTER 4 Logic and Propositional Calculus 4.1 INTRODUCTION Many algorithms and proofs use logical expressions such as: IF p THEN q or If p 1 AND p 2, THEN q 1 OR q 2 Therefore it is necessary to know

More information

Canonical Calculi: Invertibility, Axiom expansion and (Non)-determinism

Canonical Calculi: Invertibility, Axiom expansion and (Non)-determinism Canonical Calculi: Invertibility, Axiom expansion and (Non)-determinism A. Avron 1, A. Ciabattoni 2, and A. Zamansky 1 1 Tel-Aviv University 2 Vienna University of Technology Abstract. We apply the semantic

More information

Axiomatic set theory. Chapter Why axiomatic set theory?

Axiomatic set theory. Chapter Why axiomatic set theory? Chapter 1 Axiomatic set theory 1.1 Why axiomatic set theory? Essentially all mathematical theories deal with sets in one way or another. In most cases, however, the use of set theory is limited to its

More information

CHAPTER 0 PRELIMINARY MATERIAL. Paul Vojta. University of California, Berkeley. 18 February 1998

CHAPTER 0 PRELIMINARY MATERIAL. Paul Vojta. University of California, Berkeley. 18 February 1998 CHAPTER 0 PRELIMINARY MATERIAL Paul Vojta University of California, Berkeley 18 February 1998 This chapter gives some preliminary material on number theory and algebraic geometry. Section 1 gives basic

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