Whilst mathematicians assume classical reasoning principles by default they often context switch when working, restricting themselves to various forms of subclassical reasoning. This pattern is especially common amongst logicians and set theorists, but workaday mathematicians also commonly do this too, witnessed by narrative notes accompanying a proof -- "the following proof is constructive", or "the following proof does not use choice", for example. Yet, current proof assistants provide poor support for capturing these narrative notes formally, an observation that is especially true of systems based on Gordon's HOL, a classical higher-order logic. Consequently, HOL and its many implementations seem ironically more committed to classical reasoning than mainstream mathematicians are themselves, limiting the mathematical content that one may easily formalise. To facilitate these context switches, we propose that mathematicians mentally employ a simple tainting system when temporarily working subclassically -- an idea not currently explored in proof assistants. We introduce a series of modest but far-reaching changes to HOL, extending the standard two-place Natural Deduction relation to incorporate a taint-label, taken from a particular lattice, and which describes or limits the "amount" of classical reasoning used within a proof. Taint can be seen either as a simple typing system on HOL proofs, or as a form of static analysis on proof trees, and partitions our logic into various fragments of differing expressivity, sitting side-by-side. Results may pass from a "less classical" fragment into a "more classical" fragment of the logic without modification, but not vice versa, with the flow of results between worlds controlled by an inference rule akin to a subtyping or subsumption rule.
翻译:虽然数学数学家以默认的方式假设了古典推理原则,但他们在工作时往往会切换背景,局限于不同形式的小古典推理。因此,HOL及其许多执行过程似乎具有讽刺意味,更倾向于经典推理,而不是主流数学家本身,这限制了数学内容,而这种内容容易正规化。为了便利这些背景开关,我们建议数学家在精神上使用一个简单的污点系统,当它暂时在低级工作时,这种想法目前没有在证据助理中探讨。我们对HOL进行了一系列适度但意义深远的修改,将标准的两极分化关系扩展至包含一个固定的标签,从一个特定的固定的数学学家本身开始,限制数学内容,为了便利这些背景开关,我们建议数学家在精神上使用一个简单的污点系统—— 一种在证据助理中没有探讨过的想法。我们对HOL进行了一系列微小但意义深远的修改,将标准的两极分化关系扩展为“从某种固定的逻辑到一种固定的逻辑,从一种特定的固定的逻辑流到一种不固定的逻辑, 将“从一种固定的逻辑的逻辑的流到一种可变的逻辑的逻辑, 用来将“从一种压的逻辑的推算的推算的推算”的推算或限制到一种“在一种不同的推算中,在一种不同的推算中,在一种不同的推算中,在一种不同的推算中, 一种压的推算中,在一种不同的推算中,在一种压的推算中,在一种不同的推算中,在一种不同的推算中,在一种不同的推算中,在一种不同的推算。