Skip to content

feat: add initial definitions for complexity classes#192

Draft
BoltonBailey wants to merge 11 commits into
leanprover:mainfrom
BoltonBailey:complexity-classes
Draft

feat: add initial definitions for complexity classes#192
BoltonBailey wants to merge 11 commits into
leanprover:mainfrom
BoltonBailey:complexity-classes

Conversation

@BoltonBailey

@BoltonBailey BoltonBailey commented Dec 1, 2025

Copy link
Copy Markdown
Contributor

This is a draft PR for adding some complexity class definitions to CSLib.

This includes


@BoltonBailey
BoltonBailey marked this pull request as draft December 1, 2025 04:36
Comment thread Cslib/Complexity/Class.lean Outdated
Comment thread Cslib/Complexity/Class.lean Outdated
@ctchou

ctchou commented Dec 10, 2025

Copy link
Copy Markdown
Collaborator

Reading ORGANISATION.md, it seems to me that Encoding.lean should be placed under Cslib/Foundations/ and Class.lean under Cslib/Computability/.

Comment thread Cslib/Computability/Languages/ComplexityClass.lean Outdated
@BoltonBailey

Copy link
Copy Markdown
Contributor Author

A few people seem to be commenting on/reviewing this PR, so be aware: I think some of these sorries are going to involve further development of TM2ComputableInPolyTime, so I don't expect to finish them soon, and I don't plan to move this PR out of draft mode until that's done.

benbrastmckie added a commit to benbrastmckie/cslib that referenced this pull request Jun 21, 2026
Archived: leanprover#236 (completed), leanprover#244 (abandoned), leanprover#253 (completed), leanprover#254 (completed)
Orphan tracked: leanprover#192 (archive/state.json entry added)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…tape

Add simp lemmas describing how `mapSome` and `cons` interact with `head`/`tail`
and the empty tape, used for reasoning about a left-to-right tape scan:
`mapSome_head`, `mapSome_tail`, `cons_some_mapSome`, `cons_head?_mapSome`,
`cons_none_empty`, `mapSome_nil`, `empty_head`, `empty_tail`.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants