GithubHelp home page GithubHelp logo

iehality / lean4-logic Goto Github PK

View Code? Open in Web Editor NEW
57.0 5.0 4.0 2.26 MB

Lean4 Logic Formalization

Home Page: https://formalizedformallogic.github.io/Book/

License: Apache License 2.0

Lean 100.00%
lean4 logic incompleteness

lean4-logic's Introduction

lean4-logic's People

Contributors

hmonroe avatar iehality avatar sno2wman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

lean4-logic's Issues

Other Definitions of Formalized Consistency

一般に「理論 $T$ の無矛盾性」を表す文 $\mathrm{Con}_T$$\mathrm{Con}_T \equiv \lnot \mathrm{Pr}_T(\ulcorner \bot \urcorner)$ として定義して,この定義の元で第2不完全性定理を証明するのが普通であり,DerivableConditions.leanでもそのようにしている.しかし無矛盾性を表現する文,およびそれを成り立たせるための導出可能性条件は他にもいくつかある.前述の無矛盾性はLöbに帰する(らしい)ので $\mathrm{Con}_T^\mathrm{L}$ とする.他の例は

  • Hilbert-Bernaysの無矛盾性 $\mathrm{Con}^\mathrm{HB}_T \equiv \forall x. \lbrack \mathrm{Fml}(x) \land \mathrm{Pr}_T(x) \to \lnot \mathrm{Pr}_T(\dot{\lnot}(x)) \rbrack$

    • 「 任意の論理式 $\varphi$ に対して $T \vdash \varphi$ なら $T \nvdash \lnot \varphi$ 」の形式化
  • Gödelの無矛盾性 $\mathrm{Con}^\mathrm{G}_T \equiv \exists x. \lbrack \mathrm{Fml}(x) \land \lnot \mathrm{Pr}_T(x) \rbrack$

    • $T \nvdash \varphi$ な論理式 $\varphi$ が存在する」の形式化
  • 証明不能な $\Sigma_1$ 文の存在 $\mathrm{Con}^{\Sigma_1}_T \equiv \exists x. \lbrack \mathrm{\Sigma_1 Fml}(x) \land \mathrm{Sent}(x) \land \lnot \mathrm{Pr}_T(x) \rbrack$

ここで $\dot{\lnot}(x))$ は否定を付けた論理式のGödel数 $\ulcorner \varphi \urcorner \mapsto \ulcorner \lnot \varphi \urcorner$ を計算する関数とし, $\mathrm{Fml}(x)$$x$ が何らかの論理式 $\varphi$ のGödel数であることを表現する述語とする. $\mathrm{\Sigma_1 Fml}(x)$$\mathrm{Sent}(x)$ も同様.

$\mathrm{Con}^{\Sigma_1}_T$$\Sigma_1$ 論理式という概念に触れるのでおそらく算術に直接関わりを持たざるを得ないが,
$\mathrm{Con}^\mathrm{HB}_T$$\mathrm{Con}^\mathrm{G}_T$ の範囲なら DerivabileConditions.lean のように型クラスなどで抽象的に扱えないだろうか?
自分は $\mathrm{Fml}(x)$ などの定義や $\dot{\lnot}(x))$ の定義などをどうすればよいかはあまり見当がついておらず,表現能力がどこまであるのかよくわかっていないので,実際には普通に Arithmetizationの範疇かもしれない.

Built-in modal duality is not necessary

現状,LogicSymbol上の要請として◇p = □~□pという同値を導入しているが,直観主義様相論理やKより弱い論理では成立しないものもあるため,これは問題になりうる.そのため公理としてこれを保証する:すなわち𝓢 ⊢ ◇p ⟷ □~□p:こともある.

ただしここまでやる必要性があるかは怪しい.

Formalization (Propositional) Modal Logic

  • Kripke Semantics
  • Hilbert-style Calculus
  • Sequent Calculus
  • Soundness
  • Completeness

様相論理のシーケント計算をTait流で実装している例や文献はほとんど無い気がする.Gentzen流で素朴に実装しても,例えばS5ではカット除去できないことが分かっているので,拡張されたシーケント計算体系を考える必要があると思う.

Unspecifying modal operator in modal axioms

認識論理のように複数(可算無限個)の様相演算子を持つ体系や証明可能性述語などのことを考えると、特定のboxおよびdiaではなく、System上の1項様相演算子が公理Kや公理4の性質を満たす、と定義したほうが汎用的な気がする。

例えば認識論理では[∀ i, Axiom.K (boxes i)]のようにしたり、現在のDerivabilityConditionで行われているD1,D2,D3上の実質的な様相論理の計算を使いまわせたりする気がする。

Fix cache strategy on GitHub Actions

妙に時間がかかっているのでチェックしたところ,leanのバージョンが上がってcacheの位置が変わっており,上手くキャッシュ出来ていない気がする.

Gödel-McKinsey-Tarski Theorem

Modal Companion for S4 and Intuitionistic Propositional Logic, a.k.a. Gödel-McKensey-Tarski Theorem

$$\Gamma \vDash_\mathrm{Int} \varphi \iff \tau(\Gamma) \vDash_{\mathbb{F}(\mathrm{S4})} \tau(\varphi)$$

after #17

Refactoring hilbert style deductions

場当たり的に命名をおこなったものがいくつかあるうえに重複がありそうなのでルールを定めて適当にリファクタリングしたい.

Automatic `lake update`

ローカル環境で更新を試すとそれなりに重く時間のかかる作業になってしまうため,定期的にまたは手動でlake updateをCI上で行い,ビルドが成功するならPRを自動で立てるようなActionがあっても良いかもしれない.

Frame class definability of GL

Löb axiom $\mathbf{L} \equiv \Box(\Box \varphi \to \varphi) \to \Box \varphi$ defines transitive and well-founded frame class.

Improve Deduction automaton

aesopを使って簡単な自動化を入れているが,遅いし上手く行かないことも多く不便

definition of (first-order / propositional) formulas

(first-order / propositional) formulae are defined as Tait-style formula, and it is inconsistent with minimal logic, intuitionistic logic, etc. Perhaps we should modify the definition to that of an ordinary formulae, whose connectives are $\land$, $\lor$, $\to$, $\bot$, $∀$, and $\exists$.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.