-
Notifications
You must be signed in to change notification settings - Fork 262
[ refactor ] make Relation.Binary.Morphism.Definitions obsolete
#2922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
025cb2d
bf032cb
38634be
a0adeb6
337b722
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,8 +16,6 @@ open import Algebra.Bundles.Raw using | |
| ; RawRingWithoutOne; RawRing) | ||
| open import Algebra.Morphism.Structures | ||
| open import Level using (Level; suc; _⊔_) | ||
| --open import Relation.Binary.Morphism using (IsRelHomomorphism) | ||
| --open import Relation.Binary.Morphism.Bundles using (SetoidHomomorphism) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Delete?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blast, I thought that I had caught these two.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wait, won't this PR do the deletion when merged?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And yes, they are commented out (never mind unused) on |
||
|
|
||
| private | ||
| variable | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,16 @@ | ||
| ------------------------------------------------------------------------ | ||
| -- The Agda standard library | ||
| -- | ||
| -- Basic definitions for morphisms between algebraic structures | ||
| -- Issue #2875: this is a stub module, retained solely for compatibility | ||
| ------------------------------------------------------------------------ | ||
|
|
||
| {-# OPTIONS --cubical-compatible --safe #-} | ||
|
|
||
| open import Relation.Binary.Core | ||
|
|
||
| module Relation.Binary.Morphism.Definitions | ||
| {a} (A : Set a) -- The domain of the morphism | ||
| {b} (B : Set b) -- The codomain of the morphism | ||
| where | ||
|
|
||
| open import Level using (Level) | ||
|
|
||
| private | ||
| variable | ||
| ℓ₁ ℓ₂ : Level | ||
|
|
||
| ------------------------------------------------------------------------ | ||
| -- Morphism definition in Function.Core | ||
|
|
||
|
|
@@ -28,5 +20,6 @@ open import Function.Core public | |
| ------------------------------------------------------------------------ | ||
| -- Basic definitions | ||
|
|
||
| Homomorphic₂ : Rel A ℓ₁ → Rel B ℓ₂ → (A → B) → Set _ | ||
| Homomorphic₂ _∼₁_ _∼₂_ ⟦_⟧ = ∀ {x y} → x ∼₁ y → ⟦ x ⟧ ∼₂ ⟦ y ⟧ | ||
| open import Function.Definitions public | ||
| using () | ||
| renaming (Congruent to Homomorphic₂) | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be deprecated then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, see my comment on the module. I'd be happy to, if we no longer have external clients requesting this.
But now I think about it, let's just deprecate anyway?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried a middle course, deprecating the two names, but not the whole module, but now, against expectations, a warning is raised whenever
Function.Definitions.Congruentis used... ???UPDATED: seemingly fixed now, but let's see what
make testdoes remotely...