Comments (5)
I've also wondered about this from time to time, and I think it's mainly a swings and roundabouts issues. As you say, one of advantages is that you can import Structures
while fixing the equality. This a feature that we use relatively widely in the library.
I agree with @JacquesCarette's points as well that this may be a language design question.
If no one objects, then I might add this to the hypothetical-rewrite
milestone.
from agda-stdlib.
This is yet another form of the eternal bundled / unbundled question. The correct answer is: don't choose, they are equivalent. Pragmatically, that remains a non-answer because, in Agda, this equivalence can only be witnessed tediously on a case-by-case basis.
Unfortunately, I have no idea what the actual ergonomics of each choice is. This would need a great big (costly) experiment, and it doesn't seem to me that we can decide this just as a thought experiment.
In theory, I personally like to group things together more. But that's at the "gut feel" level rather than at the "let's make this the design NOW" level.
from agda-stdlib.
Well put, and so I guess I defer to your wise insight. Sigh... That said, if there were an agency willing to fund the costly experiment, ... or indeed, whether your remark is enough to encourage a zealot to pursue it for its own sake anyway... ;-) (best not, but the devil on my shoulder, etc.)
And... I don't think I was proposing it as THE design, but as with Algebra.*.Biased
, as an alternative means to an end...
from agda-stdlib.
Well look at that, a hypothetical-rewrite
milestone - very nice.
Hmm, I'd be tempted to start a page on the Wiki also collecting language changes that we library writers would really like to see.
from agda-stdlib.
One argument against punting this to the indefinite future with hypothetical-rewrite
: the issue(s) arising from #2251 and #2268 : if we add derived operations to the Raw
bundle (which makes sense from the point of view of them being 'raw' operations), then they don't get inherited in the IsStructure
definition, only in the Bundle
d version. But if we index the Structure.IsX
on the RawX
bundle, then we get them 'for free'.
Similarly (a related, but distinct, issue): Algebra.Properties.X
expects a Bundle
d X
, instead of (more simply?) an instance of IsX
... is this the 'correct' factorisation of the dependencies?
And the second: consistency/uniformity. We index homomorphisms between Structures.IsX
and Bundles.X
via their underlying RawX
bundles, so 'on morphisms' we observe one discipline, but 'on objects' another... which seems an anomaly worth correcting.
from agda-stdlib.
Related Issues (20)
- Redundant `zero` field in `Algebra.Structures.Biased.IsRing*`? HOT 7
- [DRY] defining concrete instances of `RawX` bundles HOT 5
- Is `Data.Integer.Base.signAbs` unnecessarily strict?
- A 'better' (less strict) `Data.List.Base.tails`? HOT 1
- Missing derived operations in `Algebra.Structures.IsGroup`/`Algebra.Bundles.Raw.RawGroup`
- Add `Algebra.Bundles.SuccessorSet` and related records
- [DRY] why is `_≉_` defined both for `Algebra.Bundles.Raw.RawX` bundles, and via `Setoid` instances, for `Algebra.Bundles.X`? HOT 1
- Build failure for `README.Data.Fin.Substitution.UntypedLambda` HOT 4
- Standardise names for qualified module imports HOT 3
- Mechanize the Algebra hierarchy HOT 10
- Adding new reasoning combinators HOT 2
- CI check for changelog markdown syntax HOT 2
- CHANGELOG for 1.7.3 missing on master HOT 1
- _≡⟨⟩_ not working anymore on stdlib 2.0 HOT 5
- Update `Function.Endomorphism.*` to avoid use of deprecated `Function.Equality`
- Legacy HTML pages HOT 1
- Find better new symbol for `;` (relational composition)
- Add `List.Base.build`/Church encodings of `Data` types
- A distribution tarball beyond github's autogenerated one?
- Add certain proofs for ``_∤_`` HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from agda-stdlib.