Some preparatory proofs for proving sorting+permutation is equality #2724 #2725
Some preparatory proofs for proving sorting+permutation is equality #2724 #2725MatthewDaggitt merged 7 commits intomasterfrom
Conversation
src/Data/List/Relation/Binary/Permutation/Setoid/Properties.agda
Outdated
Show resolved
Hide resolved
|
Having looked at this, and its followup, in particular lemma
If so, then I think this PR and its followup may be simplifiable via the already existing UPDATED: on closer examination, maybe this is what you have! |
jamesmckinna
left a comment
There was a problem hiding this comment.
Some nitpicks.
Happy to approve, but I too have been sniped by this... would love to be able to simplify if at all possible!
| _≰_ : ∀ {n} → Rel (Fin n) 0ℓ | ||
| i ≰ j = ¬ (i ≤ j) | ||
|
|
||
| _≮_ : ∀ {n} → Rel (Fin n) 0ℓ | ||
| i ≮ j = ¬ (i < j) |
There was a problem hiding this comment.
Unsure. If we do so then we should do everywhere in all numeric data modules, consistently. Feel free to open an issue?
src/Data/List/Relation/Binary/Permutation/Setoid/Properties.agda
Outdated
Show resolved
Hide resolved
src/Data/List/Relation/Binary/Permutation/Setoid/Properties.agda
Outdated
Show resolved
Hide resolved
Co-authored-by: jamesmckinna <31931406+jamesmckinna@users.noreply.github.com>
Yes, I think so. If it can be simplified then I'm all for that 👍 |
|
I'll try to review properly this week, but for now, I've just fixed two things that slipped through the net... |
I've been sniped by #2723. This is a preparatory PR for the full proof that sorting two lists that are permutations of each other result in equal lists.