Skip to content

feat: Modal Logic#528

Open
fmontesi wants to merge 9 commits intomainfrom
logic-k
Open

feat: Modal Logic#528
fmontesi wants to merge 9 commits intomainfrom
logic-k

Conversation

@fmontesi
Copy link
Copy Markdown
Collaborator

Adds Modal Logic and the Modal Cube, including all the 15 well-known modal logics (K, D, T, S5, etc.) and their relationships.

The notation that overlaps with propositional logic is consistent with the existing module.

Note for future work (or here, if somebody can see an easy fix that doesn't compromise readability for modal logicians): I'm not very satisfied by the notation for judgements, which includes a ',' so it can lead to some parsing trouble.

@fmontesi fmontesi requested a review from chenson2018 as a code owner April 29, 2026 13:41
@fmontesi fmontesi added the logic label Apr 29, 2026
Copy link
Copy Markdown
Collaborator

@chenson2018 chenson2018 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Starting with just a couple of comments about the additions in Cslib.Foundations.Data.Relation

Comment thread Cslib/Foundations/Data/Relation.lean Outdated
Comment thread Cslib/Foundations/Data/Relation.lean Outdated
Comment thread Cslib/Logics/Modal/Basic.lean Outdated
fmontesi and others added 2 commits April 29, 2026 18:01
Co-authored-by: Chris Henson <46805207+chenson2018@users.noreply.github.com>
Co-authored-by: Chris Henson <46805207+chenson2018@users.noreply.github.com>
Comment thread Cslib/Logics/Modal/Basic.lean
Comment thread Cslib/Logics/Modal/Basic.lean Outdated
Comment thread Cslib/Logics/Modal/Basic.lean Outdated
Comment thread Cslib/Logics/Modal/Cube.lean Outdated

open scoped Proposition

theorem k_leq_d : (K World Atom ≤ D World Atom) := by
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similarly as above, unfolds to

Comment thread Cslib/Logics/Modal/Cube.lean Outdated
Comment thread Cslib/Logics/Modal/Basic.lean Outdated
Comment thread Cslib/Logics/Modal/Basic.lean
Comment thread Cslib/Logics/Modal/Basic.lean Outdated
@fmontesi fmontesi requested a review from chenson2018 May 1, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants