Skip to content

feat: Time Complexity of List.Length#486

Open
cjrl wants to merge 5 commits into
leanprover:mainfrom
cjrl:list-length-time
Open

feat: Time Complexity of List.Length#486
cjrl wants to merge 5 commits into
leanprover:mainfrom
cjrl:list-length-time

Conversation

@cjrl

@cjrl cjrl commented Apr 12, 2026

Copy link
Copy Markdown

Following the contribution guide it seems that a useful place to contribute is with TimeM implementations for data structure algorithms.

As a starting point I proved the very basic result List.length's time complexity is linear in the length of List. As far as I could tell this result was not in CSLib yet.

I followed the structure of the merge sort file.

@ctchou

ctchou commented Apr 12, 2026

Copy link
Copy Markdown
Collaborator

I think the files of this PR should be put under Cslib/Algorithms/Lean, perhaps in a ListLength subdirectory.

@cjrl

cjrl commented Apr 12, 2026

Copy link
Copy Markdown
Author

@ctchou Thanks, have moved to the Cslib/Algorithms/Lean/ListLength folder.

@ctchou ctchou changed the title feat(Foundations/Data/List) Time Complexity of List.Length feat: Time Complexity of List.Length Apr 12, 2026
@ctchou

ctchou commented Apr 12, 2026

Copy link
Copy Markdown
Collaborator

I change the title of this PR to remove the out-dated pathname.

Comment thread Cslib/Algorithms/Lean/ListLength/Basic.lean Outdated
benbrastmckie added a commit to benbrastmckie/cslib that referenced this pull request Jul 18, 2026
Refactor leanprover#662 modal Proposition to {atom,bot,imp,and,or,box,diamond}
(bot+imp+and+or primitive, not derived) to match the fork metalogic's
primitive-bot/imp basis and leanprover#648's propositional core. Follow-up from
leanprover#486; user-directed.

Session: sess_1783891828_7982f5
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.

4 participants