agda-stdlib icon indicating copy to clipboard operation
agda-stdlib copied to clipboard

Implement ≤-total in terms of _≤?_

Open Taneb opened this issue 1 year ago • 10 comments

Fixes #2436

Taneb avatar Jul 19 '24 08:07 Taneb

You'll need a CHANGELOG entry as it's a breaking change for people who are relying on ≤-total's reduction behaviour on open terms.

gallais avatar Jul 19 '24 09:07 gallais

That's a good point, I'll add a changelog after #2439 gets merged

Taneb avatar Jul 19 '24 09:07 Taneb

I'll wait to do a proper review once the CHANGELOG is in place.

JacquesCarette avatar Jul 27 '24 09:07 JacquesCarette

How does this PR contribute to (positively or negatively...) the issues about 'concrete' orderings raised in issue #1179 ? It seems as though both are trying to tackle a pervasive problem; this PR, locally, with the bigger issue at a (more) global level.

jamesmckinna avatar Aug 26 '24 10:08 jamesmckinna

@jamesmckinna they're related, but I don't think either of them solve or get in the way of the other

Taneb avatar Aug 30 '24 11:08 Taneb

Happy to merge once there's a second 'approve' review from one of the other maintainers... and a CHANGELOG entry ;-)

jamesmckinna avatar Aug 30 '24 12:08 jamesmckinna

I think when you resolve the merge conflict in CHANGELOG, you'll see that your note on this being a non-backwards compatible change has been added to the v2.1 version, and you should bring the whole of that file up-to-date with the current master/v2.2 version...?

jamesmckinna avatar Sep 01 '24 11:09 jamesmckinna

The question is do we view this as a backwards compatible breaking change? If it was just a change in behaviour then I would say yes and bump it to v3.0. If however, we argue that this is in fact a performance bug then the maybe we can justify adding it to v2.2?

MatthewDaggitt avatar Sep 03 '24 01:09 MatthewDaggitt

@MatthewDaggitt while I would like it in sooner, of course, the position that has the better argument is that we don't make any performance guarantees at all (our readme says more or less this right near the beginning). Based on that, it probably ought wait for 3.0

Taneb avatar Sep 05 '24 06:09 Taneb

@MatthewDaggitt while I would like it in sooner, of course, the position that has the better argument is that we don't make any performance guarantees at all (our readme says more or less this right near the beginning). Based on that, it probably ought wait for 3.0

Well, if you were to make that sacrifice, that would ease the path to a v2.2 release following #2473 ...

jamesmckinna avatar Sep 07 '24 10:09 jamesmckinna

Any objections to this being merged now?

Taneb avatar Jan 30 '25 09:01 Taneb

Any objections to this being merged now?

Against our most recent discussion on the topic, we still do have a (placeholder?) non-breaking v2.3 milestone open, whereas breaking issues/PRs are typically being considered as v3.0? So maybe, ready though it may be, we can hold off merging for a bit? or is this mission critical to another project?

jamesmckinna avatar Jan 30 '25 14:01 jamesmckinna

Do we really wish to regard relying on reduction behaviour of proofs as 'breaking'? I completely agree that, given how Agda (MLTT, really) works, lots of proofs inevitably rely on the reduction behaviour of the terms they speak about. But lifting that up a level seems a bit too far? Do we have many theorems about properties of properties?

I suspect that this change would, in fact, not affect anyone. ['suspect' indicates lower confidence that 'bet' as I'm not a big gambler.]

JacquesCarette avatar Feb 04 '25 15:02 JacquesCarette

@JacquesCarette let me clarify my position:

  • my understanding was that we had agreed that this was breaking, but I am happy if we row back on such a judgment
  • my intention in the above was to draw attention to PRs which are clearly non-breaking/v2.3, in contrast to those which might better/best be judged v3.0...

If everyone is happy, I'd merge this for v2.3, but would advise, for belt-and-braces, that there be a "non-backwards-compatible" entry in CHANGELOG to record what's happening?

jamesmckinna avatar Feb 04 '25 19:02 jamesmckinna

Or else, that we abandon the distinction v2.3/v3.0, and fast-forward to admit all the breaking changes? (We may have agreed that at the last maintainers' meeting, but for whatever reason, I'm dragging my heels...)

jamesmckinna avatar Feb 04 '25 19:02 jamesmckinna

There was still ambiguity at the end of the last meeting as to exactly what we'll do next (v2.3/v3.0). Yes, I agree that the CHANGELOG should warn about this being potentially breaking, but I'd go ahead with it (in a v2.3) anyways. I think that's also what @gallais 's thumbs up says.

JacquesCarette avatar Feb 08 '25 15:02 JacquesCarette