{"contenttype":"result","language":"en","availableLanguages":"en","rcn":"648543","id":"742178_PS","title":"Periodic Reporting for period 4 - ALEXANDRIA (Large-Scale Formal Proof for the Working Mathematician)","teaser":"Mathematics lies at the heart of science and technology, affecting our daily lives in everything from aircraft to finance. However, as the world of mathematics becomes ever more abstract and complex, questions of correctness become pressing. Proofs can be 100s of pages long...","description":"periodic","summary":"Mathematics lies at the heart of science and technology, affecting our daily lives in everything from aircraft to finance. However, as the world of mathematics becomes ever more abstract and complex, questions of correctness become pressing. Proofs can be 100s of pages long and even the greatest minds make serious errors.\n\nOur solution is to involve interactive theorem provers (specifically, Isabelle\/HOL): we encode the rules of logic in software, eliminating human error. But can it work? What about the effort needed to convince the software of \u0022mathematically obvious\u0022 facts? Can we encompass the immense world of mathematics within the rigid framework of a formal logic? How do we manage\u2014and search\u2014the huge libraries of mathematics already codified? And these libraries are still incomplete.\n\nWe\u2014mathematicians and computer scientists working together\u2014addressed these issues through several parallel approaches. One was to consolidate and extend the Isabelle\/HOL libraries for analysis, algebra, etc. Another was to do pilot studies in the formalisation of a wide variety of mathematical topics, concerning infinite series, quantum computing, number theory and much more, including recent results. Yet another focused on verified techniques for doing algebraic computations, such as root isolation.\n\nALEXANDRIA aimed to create a proof environment and methodology useful to working mathematicians, utilising the best technology available across computer science and focused on the management and use of large-scale mathematical knowledge, both theorems and algorithms. The project objectives included\n\n\u2022 The formalisation of core mathematical knowledge\n\u2022 Codification of core mathematical algorithms, including proofs of their correctness\n\u2022 Tools for searching and applying this knowledge, based on AI and language models\n\u2022 Linking this knowledge to the mathematics literature\n\nBy the end we discovered that we could indeed make it work, in every study we tried. Our software of choice, Isabelle\/HOL, allowed us to write proofs that were formal yet human readable, and with reasonable effort.","workPerformed":"At the start, the two mathematicians on the team selected small topics to formalise. This allowed them to familiarise themselves with the advantages and limitations of Isabelle\/HOL and to plan their next steps. They formalised results on advanced mathematical topics, including quantum computation and irrationality and transcendence criteria for infinite series. We found several errors in mathematics papers.\n\nWe worked heavily on consolidating and reorganising our libraries and formalised mathematics, producing a user manual identifying the the main topics in the Analysis library\u0027s 150K proof lines and 95 formal theories. Substantial amounts of new material was added to the libraries, covering advanced analysis and algebra: many tens of thousands of lines of formal proofs.\n\nThe proposal included the speculative aim of using AI to support users. We developed a tool to perform intelligent search in our mathematical libraries through natural language queries, achieved by indexing all four million lines of Isabelle\u0027s Archive of Formal Proofs. We also wanted something like GitHub\u0027s Copilot, which could make suggestions based on material found in existing proofs. We needed time to realise these ideas concretely, but towards the end, the project achieved impressive results involving the use of AI to generate proofs, e.g. automatic formalisation (that is, translating normal mathematical text into our formalism). \n\nVerified Computer Algebra is another project focus. Computers have long been able to perform algebraic manipulations, but much of this software is not trustworthy. We developed advanced, formally verified algorithms for root-finding and other operations on polynomials. \n\nAs the project progressed, we tackled more and more ambitious pieces of mathematics, and all fairly recent (within the past half century). Separate projects on irrational convergent theories, ordinal partitions and Grothendieck schemes ended up taking over half of a special issue announced by the journal Experimental Mathematics. We tackled advanced topics in extremal graph theory, block designs, additive combinatorics and higher-order category theory, all relevant to today\u0027s mathematics.\n\nThe theorems we formalised include include Szemer\u00e9di\u0027s regularity lemma, Roth\u0027s theorem on arithmetic progressions, Lucas\u2019s theorem, Fisher\u0027s inequality, the Pl\u00fcnnecke-Ruzsa inequality, Kneser\u0027s theorem, the Cauchy\u2013Davenport theorem, Khovanskii\u0027s theorem, Balog\u2013Szemer\u00e9di\u2013Gowers theorem and much more. \n\n\u2022 Our main conclusion is that there is no clear limit to what sort of mathematics can be formalised. We have formalised material across the mathematical landscape: combinatorics, analysis, number theory, Ramsey theory. By the end we had formalised the work of some of the greatest mathematicians of our day\u2014Erd\u0151s, Gowers, Roth, Szemer\u00e9di\u2014and uncovered numerous small errors.\n\n\u2022 Another key conclusion: Isabelle\/HOL relies on a relatively simple formalism, higher-order logic, thought by some to be unsuitable. This view is now disproved. And the simple formalism has strong advantages: (1) fewer technical quirks to entrap users, (2) better automation, hence better productivity, and (3) legible formal proofs, in which the original mathematical ideas remain visible. \n\nThe project developed methodologies that could be applied by mathematicians today, although a major effort of persuasion remains. For that, members of the team have taken on numerous speaking engagements. We launched a seminar series in the Cambridge mathematics department and have delivered lectures in universities and at high-profile conferences.\n\nThe project produced 63 outputs, including 13 journal articles, 15 conference papers (including super selective AI conferences), 2 book chapters, and 32 contributions to Isabelle\u0027s Archive of Formal Proofs, with more coming.\n\nDissemination is also taking place over the Internet: the project webpage (https:\/\/www.cl.cam.ac.uk\/~lp15\/Grants\/Alexandria\/) includes a comprehensive list of accomplishments, and the PI\u0027s blog (https:\/\/lawrencecpaulson.github.io) discusses aspects of the underlying ideas for a more general mathematical audience.","finalResults":"We have achieved the first ever formalisations of many results, across the spectrum of mathematical topics. We are the first to formalise the existence of an algebraic closure for an arbitrary field, the first to formalise additive combinatorics, block design theory, ordinal partition theory and many other other advanced topics. We proved the appropriateness of Isabelle\/HOL as a software tool for mathematicians, we introducing new methodologies for working with large hierarchies of definitions, as in Grothendieck schemes. \n\nOur work on AI and language models, e.g. to automatically formalise mathematical material, defines the state of the art. We can soon expect to see a new class of user support based on the ability to find relevant material, both theorems and reusable fragments of proofs. The next step is the evaluation and refinement of our search engine in a broader user setup. Our intelligent search efforts required the development of considerable infrastructure (i.e., information extraction), which benefits the broad machine learning aspects of the project.","periodNumber":"4","periodFrom":"2022-03-01","periodTo":"2023-08-31","reportTypeDescription":"Periodic Reporting for period 4","identifiers":{"reportId":"273522"},"sourceUpdateDate":"2024-05-06 04:43:59","contentCreationDate":"2020-12-11 19:15:37","contentUpdateDate":"2024-07-08 09:33:06","lastUpdateDate":"2024-07-23 08:54:22","relations":{"categories":[{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"pubsum","title":"Report Summary","description":"Result: Publishable summary (FP7 SESAM) and Summary for publication (H2020 SyGMa)","displayCode":"\/Report Summary","attributes":{"classification":"collection","type":"belongsTo"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"corda","title":"CORDA","description":"RTD research data warehouse","displayCode":"\/CORDA","attributes":{"classification":"source","type":"isProvidedBy"}}],"associations":[{"availableLanguages":"en","rcn":"210556","id":"742178","acronym":"ALEXANDRIA","title":"Large-Scale Formal Proof for the Working Mathematician","relations":{"categories":[{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"project","title":"Project","description":"Project factsheets","displayCode":"\/Project","attributes":{"classification":"collection","type":"belongsTo"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"\/23\/47\/299\/939","title":"natural language processing","displayCode":"\/natural sciences\/computer and information sciences\/data science\/natural language processing","attributes":{"classification":"euroSciVoc","type":"isInFieldOfScience"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"\/23\/51\/359\/1073","title":"algebra","displayCode":"\/natural sciences\/mathematics\/pure mathematics\/algebra","attributes":{"classification":"euroSciVoc","type":"isInFieldOfScience"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"\/23\/47\/297\/933","title":"machine learning","displayCode":"\/natural sciences\/computer and information sciences\/artificial intelligence\/machine learning","attributes":{"classification":"euroSciVoc","type":"isInFieldOfScience"}},{"language":"en","availableLanguages":"en","code":"ERC-ADG","title":"Advanced Grant","description":"Advanced Grant","displayCode":"\/Advanced Grant","attributes":{"classification":"projectFundingSchemeCategory","type":"relatedProjectFundingSchemeCategory"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"corda","title":"CORDA","description":"RTD research data warehouse","displayCode":"\/CORDA","attributes":{"classification":"source","type":"isProvidedBy"}}],"associations":[{"availableLanguages":"de,en,es,fr,it,pl","rcn":"664099","id":"H2020-EU.1.1.","code":"H2020-EU.1.1.","frameworkProgramme":"H2020","pga":"H2020-EU.1.1.","title":"EXCELLENT SCIENCE - European Research Council (ERC)","shortTitle":"European Research Council (ERC)","parent":{"rcn":"664091\/664087\/664086","code":"H2020-EU.1.\/H2020-EC\/H2020"},"relations":{"categories":[{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"legalbasis","title":"Legal Basis","description":"Programme: Legal basis for research funding","displayCode":"\/Legal Basis","attributes":{"classification":"collection","type":"belongsTo"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"editorial","title":"CORDIS Editorial","description":"Written by CORDIS","displayCode":"\/CORDIS Editorial","attributes":{"classification":"source","type":"isProvidedBy"}}]},"contenttype":"programme","attributes":{"source":"corda","type":"relatedLegalBasis","uniqueProgrammePart":"true"}},{"availableLanguages":"en","rcn":"701737","id":"H2020_ERC-2016-ADG","code":"ERC-2016-ADG","frameworkProgramme":"H2020","title":"ERC Advanced Grant","parent":{"rcn":"20200","code":"H2020-Topics"},"relations":{"categories":[{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"topic","title":"Topic","description":"Programme: Part of the Commission work programme implementing legal basis","displayCode":"\/Topic","attributes":{"classification":"collection","type":"belongsTo"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"corda","title":"CORDA","description":"RTD research data warehouse","displayCode":"\/CORDA","attributes":{"classification":"source","type":"isProvidedBy"}}]},"contenttype":"programme","attributes":{"source":"corda","type":"relatedTopic"}}]},"contenttype":"project","attributes":{"source":"corda","type":"relatedProject"}},{"language":"en","availableLanguages":"en,any","uri":"\/docs\/results\/h2020\/742\/742178_PS\/library-imports1.png","alternativeText":"graph of theory library imports, to drive machine learning","mimetype":"image\/png","size":"304128","contenttype":"webItem","attributes":{"source":"corda","type":"relatedResultAttachment"}},{"language":"en","availableLanguages":"en,any","uri":"\/docs\/results\/h2020\/742\/742178_PS\/schemes.png","alternativeText":"A landmark development: Grothendieck Schemes","mimetype":"image\/png","size":"218112","contenttype":"webItem","attributes":{"source":"corda","type":"relatedResultAttachment"}},{"language":"en","availableLanguages":"en,any","uri":"\/docs\/results\/h2020\/742\/742178_PS\/factgraph1.png","alternativeText":"graph of fact relationships, to drive machine learning","mimetype":"image\/png","size":"266240","contenttype":"webItem","attributes":{"source":"corda","type":"relatedResultAttachment"}},{"language":"en","availableLanguages":"en","defaultLanguage":"en","id":"b99e25d4a65a3cd766bbea4fc304c6cf","archivedDate":"2025-06-20 00:00:00","physUrl":"https:\/\/www.cl.cam.ac.uk\/","status":"legacy","contenttype":"webLink","attributes":{"represents":"project","source":"corda","type":"relatedWebsite"}}]},"modelVersion":"132","icaVersion":"20.0.0-48f81e07"}