-
Notifications
You must be signed in to change notification settings - Fork 13
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
Other PDF cleanup items: Fig 5 (Token algebras) #298
Conversation
Address an item in issue #289. - [X] align the `field` keywords in the `TokenAlgebra` record type. - [X] say what `PolicyID` is for.
src/Ledger/TokenAlgebra.lagda
Outdated
@@ -53,5 +54,6 @@ record TokenAlgebra : Set₁ where | |||
sumᵛ : List Value → Value | |||
sumᵛ = foldr _+ᵛ_ (inject 0) | |||
\end{code} | |||
\caption{Token algebras, used for multi-assets} | |||
\end{AgdaAlign} | |||
\caption{Token algebras, used for multi-assets; \AgdaBound{PolicyId} specifies a type (e.g., with natural numbers) used to represent policy identifiers.} |
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.
We already have a pattern for this, see the figure right below (Definitions used in Addresses). Maybe that pattern isn't that great (if you don't like it, make an issue to change it everywhere), but this should still follow it otherwise it's confusing (is PolicyID
not an abstract type?).
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.
Okay, I'll check out the existing pattern and conform.
PolicyID : Type
is a parameter passed into this (the TokenAlgebra
) module (so, yeah, I suppose it would be considered an "abstract type").
Also change `\begin{figure*}[h]` to `\begin{figure*}[h!]` in `Address.lagda` so that the figure appears on the same page as the section header, rather than a mostly blank page under the header, preceding the figure.
@WhatisRT I think this PR is good to go now. |
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.
LGTM
Description
Address items in issue #289.
field
keywords in theTokenAlgebra
record type.PolicyID
is for.[h!]
to figure environment so the figure does not appear above the section heading ("4 Token algebras").Checklist