Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • S stdpp
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 86
    • Issues 86
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 10
    • Merge requests 10
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Iris
  • stdpp
  • Merge requests
  • !13

Provide an Infinite typeclass and a generic implementation of Fresh.

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Ghost User requested to merge archived_projects/coq-stdpp:freshstring into master Oct 31, 2017
  • Overview 16
  • Commits 13
  • Pipelines 0
  • Changes 5

This provides a generic implementation of Fresh for infinite types.

In detail, it adds:

  • An Infinite type class. A type T is infinite if there is an injection from nat to T.
  • A generic implementation of Fresh A C for an infinite type A and a finite collection type C, by way of linear search for a fresh element.
  • Instances of Infinite for a handful of types, including positive/natural/integer types and string.
  • A generic Fresh for finite collections of strings. As an implementation detail, the generated strings are all of the form "~n" for some natural number n.
  • Some minor additions (pretty-printer for nat, Fix unfolding lemma for setoids).
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: freshstring