Skip to content

Conversation

@fgdorais
Copy link
Collaborator

@fgdorais fgdorais commented Jan 7, 2026

Experimental WIP.

@fgdorais fgdorais added the WIP work in progress label Jan 7, 2026
@leanprover-community-bot
Copy link
Collaborator

Mathlib CI status (docs):

@414owen
Copy link

414owen commented Jan 11, 2026

Hi @fgdorais
There's probably a reason why this isn't so, but wouldn't a length-indexed list obviate the need for a nonempty list, and be more general?
NonEmpty a could be modelled as IList (succ n) a, for some n.
You'd equally be able to express "a list with at least two elements", etc.

I'm also wondering whether we're going to see Semigroup, Functor, Applicative, and Monad instances for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

builds-mathlib WIP work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants