Skip to content
Snippets Groups Projects

Another try at removing strings.length

Merged Michael Sammler requested to merge ci/msammler/length into master
3 unresolved threads

See discussion in !129 (merged) The idea of this version is to have two notations, one which shadows the bad definition Strings.length and the other which shadows the bad Notation List.length, which is bad because it is parsing only.

Edited by Michael Sammler

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
9 9 Export ListNotations.
10 10 From Coq.Program Require Export Basics Syntax.
11 11
12 (** TODO: This hack should be removed once we drop support for Coq 8.10. It is
13 needed for the transitive export/import bug that is fixed in Coq 8.11. *)
14 Notation length := Datatypes.length.
  • Ralf Jung
    • Another alternative is to patch this issue in Iris. Pretty much all of Iris exports String anyway.

      Then, when we drop support for Coq versions prior to 8.11 in a couple of years we can remove all hacks.

      Edited by Robbert Krebbers
    • I am not sure what that Iris patch would look like, but sure.

    • Oh wait, you mean fix it by reexporting string there? Well, not great, but better than doing it here.

      Or can this also be fixed by avoiding string better in Iris?

    • Note that if !144 (merged) actually works in Iris, RefinedC, and friends, that would be preferred and my suggestion is void.

      Or can this also be fixed by avoiding string better in Iris?

      No idea, all of this is black magic... :(

    • I think fixing it in stdpp is the least brittle solution. I think we could also solve this problem by carefully arranging all exports in Iris, but that seems very brittle.

    • Please register or sign in to reply
  • added 1 commit

    Compare with previous version

  • Since I checked pretty printing of some samples in reverse dependencies, I'm going to merge. Thanks all.

  • mentioned in commit b4103098

  • Please register or sign in to reply
    Loading