rocq-prover / rocq-prover/stdlib

stdlib: Add FMap.min_elt

Open
#39 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rocq Prover
Stars
42
Forks
38
Avg merge
14h 6m
Merged PRs (30d)
3

Description

(as of Coq 8.8)

FSet has a min_elt function to query the smallest element, but there is no counterpart for that in FMap, which would make it convenient to turn it into a priority queue.

Alternatively, is there a released and maintained implementation of priority queues in Coq?

Some meta-questions:

  • Is this the place for stdlib feature requests?
  • Are the stdlib2 efforts advanced enough that we should focus efforts over there instead of improving the stdlib?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the existing FSet.min_elt operation and the FMap API to determine the expected counterpart and ordering behavior. Check whether the priority-queue alternative or stdlib2 questions affect the scope; done means providing a documented FMap.min_elt operation with coverage for its behavior.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.