Skip to content

removed theorem nonempty_length_gt_one #5

Merged
marekpetrik merged 6 commits into
formalproofs:mainfrom
emily-chandran:main
Oct 23, 2025
Merged

removed theorem nonempty_length_gt_one #5
marekpetrik merged 6 commits into
formalproofs:mainfrom
emily-chandran:main

Conversation

@emily-chandran

Copy link
Copy Markdown
Collaborator

theorem List.length_pos_iff

I found the theorem in mathlib that shows that 0<L.Length that is called List.length_pos_iff

I then tried to change the theorem that used it!

The mathlib theorem doesn't do exactly what you did in your theorem, but with a few extra lines of code you can get around it!

@emily-chandran

Copy link
Copy Markdown
Collaborator Author

You can ignore all of the commits, except the last one (remove nonempty_length_gt_one, fixed length_gt_zer
[97327b7])

@marekpetrik marekpetrik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is good!

@marekpetrik

Copy link
Copy Markdown
Member

Can you please add a TODO comment to the theorem to try to shorten the proof

@marekpetrik
marekpetrik merged commit 361f6dc into formalproofs:main Oct 23, 2025
1 check passed
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.

2 participants