Skip to content

μ-Bialgebras#362

Merged
JacquesCarette merged 36 commits intoagda:masterfrom
cxandru:mu-bialgebras
Feb 1, 2023
Merged

μ-Bialgebras#362
JacquesCarette merged 36 commits intoagda:masterfrom
cxandru:mu-bialgebras

Conversation

@cxandru
Copy link
Contributor

@cxandru cxandru commented Nov 22, 2022

I've defined bialgebras for functors. I needed to factor out some definitions in Algebra and Coalgebra, but the changes don't break any existing code. For more details see the commit message of f8a6027

Notes: Defintion is "manual", i.e. not via lifting. To allow this we
needed to factor out some definitions. For Algebras (for Coalgebras equivalently):
F-Algebra -> F-Algebra-on
F-Algebra-Morphism -> is-F-Algebra-Morphism

Further notes:
• We did _not_ define "just" (T,F)-Bialgebras as without a distributive law μ
to relate them there is not much structure.
• For us μ is just a nat trans (T∘F)⇒(F∘T), so not the notion of a
distributive law in a monadic context.
A Functor F : C → C can be lifted to F' : Alg(T) → Alg(T) given T and
a distributive law μ for T∘F.
Have lots of intermediate terms foo_i, bar_i here. This is akin to Coq
code riddled with `Check`s.
@Taneb
Copy link
Member

Taneb commented Nov 25, 2022

We don't currently have any modules with a non-ascii character in the name. Is it OK to add one in this case?

@JacquesCarette
Copy link
Collaborator

Good point. I think that's asking for trouble, we shouldn't have file names with unicode in them. Internal modules is fine, but not "file-modules".

Copy link
Collaborator

@JacquesCarette JacquesCarette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry to be so picky (and slow). This is a very nice piece of work! Might as well really polish it up.

Added anonymous module which meant having to indent all previous code
– not ideal, but oh well.
First step in Bialg(μ,F,T)≅Coalgs(LiftAlgs(F))≅Algs(LiftCoalgs(T))
Copy link
Collaborator

@JacquesCarette JacquesCarette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking really good. Is it "ready"?

@cxandru cxandru marked this pull request as draft January 11, 2023 14:28
@cxandru
Copy link
Contributor Author

cxandru commented Jan 11, 2023

This is looking really good. Is it "ready"?

Almost! I'm currently implementing a final interesting lemma, that initial objects in T-Algs induce initial objs in μ-F-T-Bialgebras (dually, final F-Coalgs are also final in μ-F-T-Bialgebras). I also replied to some of your review comments with questions

@JacquesCarette
Copy link
Collaborator

JacquesCarette commented Jan 11, 2023

(link to personal Trello board deleted - it was misconfigured, and wasn't supposed to post on here)

this because we need to open a different `Category` module for the
final proof
This before adding `lift(Initial|Terminal)`
Needed to redo the definition of `LiftCoalgebras`, to use conversion
functions to transport only the _proofs_ from `LiftAlgebras`
Also x-ref documentation comment across modules
@cxandru cxandru marked this pull request as ready for review January 19, 2023 16:12
@cxandru
Copy link
Contributor Author

cxandru commented Jan 19, 2023

I added some last nice things to round off this MR (see commit descriptions). After review everything should be ready to merge!

@JacquesCarette
Copy link
Collaborator

Thanks - at POPL right now, so might not get to do the review until I'm back home. We'll see.

@cxandru
Copy link
Contributor Author

cxandru commented Jan 19, 2023

Thanks - at POPL right now, so might not get to do the review until I'm back home. We'll see.

yes, I saw on Mastodon. No rush!

Copy link
Collaborator

@JacquesCarette JacquesCarette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!

@JacquesCarette JacquesCarette merged commit 82e0067 into agda:master Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants