Abstract
A typical proof step in mathematical reasoning consists of two parts – a formula to be proven and a list of references used to justify the formula. In addition, computer proof-assistants can use specialized procedures and algorithms to strengthen their computational power to verify the correctness of reasonings.
The Mizar system supports several mechanisms to increase automation of some reasoning steps. One of them is registration of chosen properties of predicates and functors when they are defined. We propose strengthening of the Mizar system by processing another common property used in mathematics – transitivity.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
1 Introduction
The Mizar system [1–3] is a computer system invented for computer-assisted verification of mathematical papers. It consists of three main components: a language – the Mizar language, a bunch of computer programs including Verifier and a repository of formal texts – Mizar Mathematical Library (MML) – written in the language and automatically verified for their logical correctness. The Mizar language is a declarative formal language designed to write mathematical papers readable for humans and effectively processed by computers. The language is highly structured to ensure producing rigorous and semantically unambiguous texts. Apart from rules for writing traditional mathematical items (e.g. definitions, lemmas, theorems, proof steps, etc.) it also provides syntactic constructions to launch distinguished algorithms for processing particular mechanisms (e.g. term identifications, term reductions [4], flexary connectives [5]) increasing computational power of Verifier. The most interesting mechanism, from the point of view of this research, is the possibility of registering various properties of predicates and functors [6] at the stage of defining new notions. The current version of the Mizar system supports registration of reflexivity, irreflexivity, symmetry, asymmetry and connectedness for binary predicates; involutiveness and projectivity for unary operations; and commutativity and idempotence for binary operations. Table 1 presents how registrations of the properties are used in the MML and how they influence on proofs stored in the library. Consecutive columns show numbers of occurrences of each property, numbers of articles in which the properties were declared, numbers of errors occurring after removing registrations of the properties from texts, and numbers of articles with such errors.Footnote 1
In this paper we propose strengthening of the Mizar system by processing of another common property used in mathematics – transitivity. It is described in Sect. 2. In Sect. 3 we present some results of our implementation and describe its potential influence on the MML. In Sect. 4 we indicate several directions of further development of processing properties in Mizar.
2 Transitivity
Transitivity is a very common property of predicates. It is a subject of research in various branches of mathematics. It is used to define, for example, orders, equivalences, etc. Many relations are tested to determine if they are transitive or not. Many mathematical theorems assert the transitivity of various relations.
We propose an enhancement of the Mizar system supporting automatic processing of transitive predicates, where by automatic we mean that some computations during the verification process are executed based on knowledge gathered in the MML which is not explicitly referred to in processed proof steps.Footnote 2 To enable such an automation, when a new predicate is defined, if it is transitive, it should be declared as transitive (just like in the case of other properties supported by the Mizar verifier [6]). Such a declaration has to be done within a definitional block with syntax
The correctness of the definition must be proven according to a special formula expressing the transitivity of the defined predicate. The formula is generated by the system. Having such a definition, whenever Verifier meets a conjunction of formulas \(\pi (a,b)\) and \(\pi (b,c)\) within an inference, the inference is enlarged by automatically generated formula \(\pi (a,c)\) which may help to justify the proof step. For example, when one wants to prove the transitivity of \(\texttt {<=}\) for real numbers, that is the statement \( \texttt {a<=b\, \& \,b<=c implies a<=c}\), Verifier (as a classical disprover) assumes three premises: \(\texttt {a<=b}\), \(\texttt {b<=c}\) and \(\texttt {a>c}\). Then, by transitivity, it knows that \(\texttt {a<=c}\) which contradicts with \(\texttt {a>c}\) and finishes the proof.
3 Experiments
The implemented software was tested on Mizar Version 8.1.02 working with the MML Version 5.36.1267.Footnote 3
An important part of the package is a tool (transdet) which detects theorems stored in the MML, that could be rewritten as registrations of the transitivity of some predicates (we will call such theorems transitivity-like theorems). In the current version of the library 127 such theorems were found in 90 articles. The Library Committee, who is responsible for the management, developing and revisions of the MML, will analyze all cases and decide which of them would be incorporated into the library. In the case of approval, a refactoring of the MML [9] will be required while maintaining licensing its content [10].
To present some examples detected in the MML Footnote 4 let us cite the transitivity of ordering of elements of a semilattice [11]
and the transitivity of being isomorphic groups [12]
An important gain from rewriting detected transitivity-like theorems as declarations of the transitivity of used predicates is decreasing the number of explicit references to the theorems from all proofs collected in the MML. Table 2 presents top 10 most cited such theorems.Footnote 5 These numbers mean that 16855 out of all 629048 (2.7 %) references in the entire library can be removed while ensuring that all proofs remain valid.
The software can be downloaded from http://alioth.uwb.edu.pl/~artur/transitivity.
4 Further Work
A possible direction to continue work is to implement processing of other commonly used in mathematics properties of relations, like, for example, antisymmetry, trichotomy, left- and right- Euclidean. Another topic is to introduce properties which are collections of other properties, like equivalence which is reflexive, symmetric and transitive; or preorder which is reflexive and transitive; etc. Of course, one may declare a relation as reflexive, symmetric and transitive, but it would be probably worth to enrich the Mizar language to make it closer and closer to traditional mathematical vernacular.
In the current stage of the Mizar system, all properties of predicates can be registered for binary predicates only. So, for example, the theorem [13]
is not transformable to a registration of transitivity, since the predicate reduces is ternary, not binary. But it is seen, that if we fix the value of one argument, the predicate can be understood as binary one, and we may think about its transitivity (or other properties of binary predicates). In general, properties dedicated for binary predicates, can be introduced for n-ary predicates, where \(2\le n\), with \(n-2\) fixed arguments.
5 Conclusions
In the paper we presented an extension of the Mizar system by introducing a new word to the Mizar language (transitivity) and new rules for processing transitive predicates. We detected theorems describing the transitivity of various relations gathered in the MML. It can be concluded that our implementation will have strong impact on the shape of many proofs – many explicit references to the theorems can be removed. It may even result in reorganization of proof steps within entire proofs [14].
As the last observation, it can be said that this new feature of the Mizar system was anticipated and expected by Mizar users. Josef Urban, in one of his papers [15], annotated a theorem as followsFootnote 6:
Notes
- 1.
Total numbers are not simply sums of columns, because errors occurring after removing different registrations could occur in the same articles.
- 2.
- 3.
Computations were carried out at the Computer Center of University of Białystok http://uco.uwb.edu.pl.
- 4.
The full list is accessible at http://alioth.uwb.edu.pl/~artur/transitivity/th2trans.txt.
- 5.
The full list of non-zero numbers of references is accessible at http://alioth.uwb.edu.pl/~artur/transitivity/references.txt.
- 6.
References
Trybulec, A.: Mizar. In: Wiedijk, F. (ed.) The Seventeen Provers of the World. LNCS (LNAI), vol. 3600, pp. 20–23. Springer, Heidelberg (2006). doi:10.1007/11542384_4
Bancerek, G., et al.: Mizar: state-of-the-art and beyond. In: Kerber, M., Carette, J., Kaliszyk, C., Rabe, F., Sorge, V. (eds.) CICM 2015. LNCS, vol. 9150, pp. 261–279. Springer, Heidelberg (2015). doi:10.1007/978-3-319-20615-8_17
Grabowski, A., Korniłowicz, A., Naumowicz, A.: Four decades of Mizar. J. Autom. Reason. 55(3), 191–198 (2015). doi:10.1007/s10817-015-9345-1
Korniłowicz, A.: On rewriting rules in Mizar. J. Autom. Reason. 50(2), 203–210 (2013). doi:10.1007/s10817-012-9261-6
Korniłowicz, A.: Flexary connectives in Mizar. Comput. Lang. Syst. Struct. 44, 238–250 (2015). doi:10.1016/j.cl.2015.07.002
Naumowicz, A., Byliński, C.: Improving Mizar texts with properties and requirements. In: Asperti, A., Bancerek, G., Trybulec, A. (eds.) MKM 2004. LNCS, vol. 3119, pp. 290–301. Springer, Heidelberg (2004). doi:10.1007/978-3-540-27818-4_21
Naumowicz, A.: Enhanced processing of adjectives in Mizar. In: Grabowski, A., Naumowicz, A. (eds.) Computer Reconstruction of the Body of Mathematics. Studies in Logic, Grammar and Rhetoric, pp. 89–101. University of Białystok, Białystok (2009)
Korniłowicz, A.: Definitional expansions in Mizar. J. Autom. Reason. 55(3), 257–268 (2015). doi:10.1007/s10817-015-9331-7
Grabowski, A., Schwarzweller, C.: Revisions as an essential tool to maintain mathematical repositories. In: Kauers, M., Kerber, M., Miner, R., Windsteiger, W. (eds.) MKM/CALCULEMUS 2007. LNCS (LNAI), vol. 4573, pp. 235–249. Springer, Heidelberg (2007). doi:10.1007/978-3-540-73086-6_20
Alama, J., Kohlhase, M., Mamane, L., Naumowicz, A., Rudnicki, P., Urban, J.: Licensing the Mizar mathematical library. In: Davenport, J.H., Farmer, W.M., Urban, J., Rabe, F. (eds.) MKM 2011 and Calculemus 2011. LNCS, vol. 6824, pp. 149–163. Springer, Heidelberg (2011). doi:10.1007/978-3-642-22673-1_11
Żukowski, S.: Introduction to lattice theory. Formalized Math. 1(1), 215–222 (1990)
Trybulec, W.A., Trybulec, M.J.: Homomorphisms and isomorphisms of groups. Quotient group. Formalized Math. 2(4), 573–578 (1991)
Bancerek, G.: Reduction relations. Formalized Math. 5(4), 469–478 (1996)
Pąk, K.: Improving legibility of formal proofs based on the close reference principle is NP-hard. J. Autom. Reason. 55(3), 295–306 (2015). doi:10.1007/s10817-015-9337-1
Urban, J.: Order sorted algebras. Formalized Math. 10(3), 179–188 (2002)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2016 Springer International Publishing Switzerland
About this paper
Cite this paper
Korniłowicz, A. (2016). Enhancement of Mizar Texts with Transitivity Property of Predicates. In: Kohlhase, M., Johansson, M., Miller, B., de Moura, L., Tompa, F. (eds) Intelligent Computer Mathematics. CICM 2016. Lecture Notes in Computer Science(), vol 9791. Springer, Cham. https://doi.org/10.1007/978-3-319-42547-4_12
Download citation
DOI: https://doi.org/10.1007/978-3-319-42547-4_12
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-42546-7
Online ISBN: 978-3-319-42547-4
eBook Packages: Computer ScienceComputer Science (R0)