stage |
One version of a stage, with its declarations, graphs and bindings. |
ElaboratedStage |
ElaboratedStage('cons', specified) |
stage/elaborated.py, ElaboratedStage |
stage.name |
name is the authored stage name and metadata its authored annotations. |
str |
'cons' |
stage/elaborated.py, ElaboratedStage.name |
stage.metadata |
The authored @ annotations other than the stage name, in file order. |
Metadata |
none |
stage/elaborated.py, ElaboratedStage.metadata |
stage.definitions |
The version's read-only definitions table, from each identity to its record in file order. |
Definitions |
Definitions('cons', 35 records) |
stage/elaborated.py, ElaboratedStage.definitions |
stage.initial |
The two initial diagrams of a version, stage.initial: backward and forward answer the diagrams, and a block is read by its block id as a key of the diagram that holds it, stage.initial.backward["policy"]. |
Initial |
InitialDiagrams('cons', backward, forward) |
stage/elaborated.py, ElaboratedStage.initial |
stage.bindings |
This version's calibration and settings mappings, each None until bound and read-only afterwards, blocks, the rows a solution method's lines add at the operative level, by the builder each opens, and families, the record of each representation family the version's typing entries name, by its word, as the record stood when the version was made, so that a later registration or unregistration leaves the meaning of the version as it was. |
Bindings |
calibration ρ = 6.0 … |
stage/elaborated.py, ElaboratedStage.bindings |
stage.provenance |
How this stage version was built, retained in a read-only entries mapping: source path or origin, text, digest, trellis position, binding sources and package and grammar versions. |
Provenance |
origin applications/portfolio-choice/declaration/stages/cons/cons.bl … |
stage/elaborated.py, ElaboratedStage.provenance |
stage.view() |
The stage inventory as a printed sheet: its perches, fields, blocks, definitions, graphs, bindings and directions. |
Sheet |
BELLMAN-SYM / STAGE cons [VERSION = SPECIFIED] … |
stage/elaborated.py, ElaboratedStage.view |
stage.list() |
The blocks of the two initial diagrams under initial, each with its kind and direction, and the builders under builder, each by its block identifier with the pair of perches it joins and its direction word, the listing that builder.list() answers. |
SectionedListing |
initial … |
stage/elaborated.py, ElaboratedStage.list |
stage.methods |
The components typed at the places of this version, by place, as a read-only mapping, methods["policy"]: the method word with its arguments, the grid and the handler the typing entries at the place give it. |
BoundMethods |
arvl_to_dcsn !deterministic … |
stage/elaborated.py, ElaboratedStage.methods |
stage.par |
The parameters of this version, a read-only mapping from each parameter's name, as the file declares it, to its record, par["ρ"], whose value is the number a calibration binds. |
Parameters |
name set value describes … |
stage/elaborated.py, ElaboratedStage.par |
stage.settings |
The settings bound to this version, a read-only mapping from each setting's name to its record, settings["n_a"], with its configured value and the methods that read it; empty before configure. |
Settings |
name set value read at by grid … |
stage/elaborated.py, ElaboratedStage.settings |
stage.builder |
The builders by the pair of perches each joins, stage.builder["cntn", "dcsn"], with the two builders graphs at bwd and fwd and the policy builder at policy. |
BuilderPairs |
Builders('cons', 5 by their perches) |
stage/elaborated.py, ElaboratedStage.builder |
stage.declared |
The declared builders, the operators the blocks of the stage file denote as elaboration builds them, with the interface of stage.builder: stage.declared.policy, stage.declared["cntn", "dcsn"], stage.declared.bwd. |
BuilderPairs |
Builders('cons', 5 by their perches) |
stage/elaborated.py, ElaboratedStage.declared |
stage.arvl |
The arrival perch: stage.arvl.builder.fwd is the forward builder from arrival. |
PerchHandle |
Perch('cons', 'arvl') |
stage/elaborated.py, ElaboratedStage.arvl |
stage.dcsn |
The decision perch: stage.dcsn.builder.bwd is the backward decision builder, stage.dcsn.builder.policy the policy builder. |
PerchHandle |
Perch('cons', 'dcsn') |
stage/elaborated.py, ElaboratedStage.dcsn |
stage.cntn |
The continuation perch, the last of the stage: no edge of the stage leaves it, so its builder refuses both directions with the reason. |
PerchHandle |
Perch('cons', 'cntn') |
stage/elaborated.py, ElaboratedStage.cntn |
stage.fields() |
The sort of every field wire by identity, in first-listing order, followed by declared shocks not listed in a header, then the multipliers the block bodies declare, which no header lists either. |
Fields |
cons:arvl:m ≺ arvl state in Xm … |
stage/stage_answers.py, fields |
stage.obligations() |
The stage's conditions, in first-appearance order, with their sentences, statuses and evidence. |
Obligations |
arithmetic-definedness ¬(1 − ρ = 0) [established] … |
stage/stage_answers.py, obligations |
stage.diagnostics() |
Nine answers about the completeness of the stage, read from its block headers, lines and stored graphs, as a read-only mapping, and a tenth on a stage whose lines read a derivative of a value it writes, derivative_missing. |
Diagnostics |
complete_signature True … |
stage/stage_answers.py, diagnostics |
stage.check_inputs(values) |
Check complete continuation data and return the undecided conditions. |
tuple |
check_inputs({"V[>]": abs}): (Condition(condition='continuation-input', entries=(Identity(kind='field', … |
stage/input_requirements.py, check_inputs |
stage.denote() |
The stage's backward and forward builders-graph denotations, under those two direction names. |
StageDenotation |
STAGE cons … |
stage/denotations.py, denote |
stage.encoding() |
The definitions, stored graph hierarchy, bindings, provenance and conditions of this version as a fresh JSON-compatible mapping. |
StageEncoding |
{ … |
stage/encoding.py, encoding |
stage.places() |
The places of the stage as read-only address and kind rows, the listing stage.places() prints, bound as the method places of the stage. |
Rows |
address kind … |
stage/places.py, places |
stage.methodize(additions) |
The stage itself with the additions read into it: the stage file's tree with each addition attached, in the order given, elaborated anew and held by the stage, so that the components of its signatures, the rows a solution method's lines add at the operative level and the lines an addition appends are those the union of the files gives. |
ElaboratedStage |
methodize("applications/portfolio-choice/declaration/stages/cons/methods.bl"): ElaboratedStage('cons', specified) |
stage/binding_verbs.py, methodize |
stage.calibrate(calibration_source) |
The stage itself, with values for all declared parameters. |
ElaboratedStage |
calibrate("applications/portfolio-choice/declaration/calibration/portfolio.yml"): ElaboratedStage('cons', specified) |
stage/binding_verbs.py, calibrate |
stage.configure(settings_source) |
The stage itself, with settings bound. |
ElaboratedStage |
configure("applications/portfolio-choice/declaration/settings/cons.yml"): ElaboratedStage('cons', specified) |
stage/binding_verbs.py, configure |
stage.definitions[identity] |
One entry of the definitions table: a name the stage file declares, once, in file order. |
Definition |
["cons:g:dcsn_to_cntn"]: Definition('cons:g:dcsn_to_cntn', law of motion) |
stage/pieces.py, Definitions.__getitem__ |
stage.definitions.list() |
The identities grouped by definition kind, in table order, displayed with each declaration's map or relation and cited rule. |
DefinitionsListing |
BELLMAN-SYM / STAGE cons / DEFINITIONS [RECORDS = 35] … |
stage/pieces.py, Definitions.list |
stage.definitions.denote(identity) |
One definition's denotation: its positioned declaration, denoted objects and cited rules, descriptions, conditions and bindings. |
DefinitionCard |
denote("cons:g:dcsn_to_cntn"): STAGE cons / LAW OF MOTION dcsn_to_cntn … |
stage/pieces.py, Definitions.denote |
stage.initial.backward |
The backward initial diagram. |
GraphHandle |
InitialDiagram('cons', 'backward') |
stage/pieces.py, Initial.backward |
stage.initial.forward |
The forward initial diagram. |
GraphHandle |
InitialDiagram('cons', 'forward') |
stage/pieces.py, Initial.forward |
stage.initial.level |
The level of the graphs this collection holds, initial. |
str |
'initial' |
stage/pieces.py, Graphs.level |
stage.initial.list() |
The names of the blocks in the two directions, each with its kind and direction. |
NamedListing |
cntn_to_dcsn block, backward … |
stage/pieces.py, Graphs.list |
stage.initial.methods |
The read-only methods mapping for pieces within both directions, empty before methodization. |
BoundMethods |
arvl_to_dcsn !deterministic … |
stage/pieces.py, Graphs.methods |
stage.initial.backward.level |
One graph of a version, identified by level, direction and grain. |
str |
'initial' |
stage/pieces.py, GraphHandle.level |
stage.initial.backward.direction |
One graph of a version, identified by level, direction and grain. |
str |
'backward' |
stage/pieces.py, GraphHandle.direction |
stage.initial.backward.grain |
One graph of a version, identified by level, direction and grain. |
str |
'builder' |
stage/pieces.py, GraphHandle.grain |
stage.initial.backward.graph |
The DisCoPy hypergraph at this level, direction and grain. |
BellmanHypergraph |
bellman.native.hypergraphs.BellmanHypergraph(dom=frobenius.Ty(Sort('cons:cn… |
stage/pieces.py, GraphHandle.graph |
stage.initial.backward.list() |
The graph's pieces in order of application, each under its whole name, with the kind column, what it produces and its number: a builder its position among the builders, a primitive its position among the primitives of its own builder. |
Listing |
cntn_to_dcsn block → V … |
stage/pieces.py, GraphHandle.list |
stage.initial.backward.primitives |
The same graph with all sub-builders opened and compatible primitive operations merged. |
GraphHandle |
InitialDiagram('cons', 'backward', primitives) |
stage/pieces.py, GraphHandle.primitives |
stage.initial.backward.sub_builders |
The same graph at the authored decomposition, with each !node retained as a sub-builder. |
GraphHandle |
InitialDiagram('cons', 'backward', sub_builders) |
stage/pieces.py, GraphHandle.sub_builders |
stage.initial.backward.diagram() |
The drawing of this graph, separately for each direction. |
Drawing |
Drawing of 7 boxes |
stage/pieces.py, GraphHandle.diagram |
stage.initial.backward.signature() |
The typed inputs and outputs of this graph. |
Signature |
in V≻ : {V≻} … |
stage/pieces.py, GraphHandle.signature |
stage.initial.backward.denote() |
The graph's mathematical record. |
AuthoredCard |
STAGE cons / BACKWARD INITIAL DIAGRAM … |
stage/pieces.py, GraphHandle.denote |
stage.initial.backward.obligations() |
Conditions owned by this graph's builders together with those of the whole stage, retaining their statuses and evidence. |
Obligations |
arithmetic-definedness ¬(1 − ρ = 0) [established] … |
stage/pieces.py, GraphHandle.obligations |
stage.initial.backward.methods |
The bindings at pieces within this graph and the authored lines they represent, as a read-only mapping. |
BoundMethods |
cntn_to_dcsn.evaluate !Linear !Cartesian(m_d=(m_min, m_max, n_m)) "cons-por… |
stage/pieces.py, GraphHandle.methods |
stage.initial.backward[key] |
One box of this graph by its whole name, stage.builder.bwd.primitives["cntn_to_dcsn:Aggregation"]. |
BubbleHandle |
["cntn_to_dcsn"]: Block('cons', 'cntn_to_dcsn') |
stage/pieces.py, GraphHandle.__getitem__ |
stage.builder["arvl", "dcsn"] |
The builder that joins the ordered pair of perches (source, target). |
BubbleHandle |
Builder('cons', 'arvl_to_dcsn') |
stage/pieces.py, BuilderPairs.__getitem__ |
stage.builder["dcsn", "cntn"] |
The builder that joins the ordered pair of perches (source, target). |
BubbleHandle |
Builder('cons', 'dcsn_to_cntn') |
stage/pieces.py, BuilderPairs.__getitem__ |
stage.builder["cntn", "dcsn"] |
The builder that joins the ordered pair of perches (source, target). |
BubbleHandle |
Builder('cons', 'cntn_to_dcsn') |
stage/pieces.py, BuilderPairs.__getitem__ |
stage.builder["dcsn", "arvl"] |
The builder that joins the ordered pair of perches (source, target). |
BubbleHandle |
Builder('cons', 'dcsn_to_arvl') |
stage/pieces.py, BuilderPairs.__getitem__ |
stage.builder.policy |
The policy builder: the backward builder that writes the controls. |
BubbleHandle |
Builder('cons', 'policy') |
stage/pieces.py, BuilderPairs.policy |
stage.builder.bwd |
The backward builders graph, on value functions. |
GraphHandle |
BuildersGraph('cons', 'backward') |
stage/pieces.py, BuilderPairs.bwd |
stage.builder.fwd |
The forward builders graph, on measures. |
GraphHandle |
BuildersGraph('cons', 'forward') |
stage/pieces.py, BuilderPairs.fwd |
stage.builder.list() |
One line per builder, forward pairs first, whose key is the block identifier, by which the builder is read from its graph, stage.builder.bwd[identifier] or stage.builder.fwd[identifier], and whose value is the pair, printed source → target, by which it is read from the mapping, stage.builder[pair], or for the policy builder its key, policy, with the direction word. |
NamedListing |
arvl_to_dcsn arvl → dcsn, fwd … |
stage/pieces.py, BuilderPairs.list |
stage.builder.view() |
The listing printed, one line per builder. |
str |
arvl_to_dcsn arvl → dcsn, fwd … |
stage/pieces.py, BuilderPairs.view |
stage.builder.methods |
The read-only methods mapping for the pieces within both builders graphs, empty before methodization; a graph the construction refused holds none. |
BoundMethods |
cntn_to_dcsn.evaluate !Linear !Cartesian(m_d=(m_min, m_max, n_m)) "cons-por… |
stage/pieces.py, BuilderPairs.methods |
stage.arvl.builder |
The builders of the edge that leaves this perch, fwd and bwd, and at decision policy. |
PerchBuilders |
PerchBuilders('cons', 'arvl') |
stage/pieces.py, PerchHandle.builder |
stage.arvl.builder.fwd |
The forward builder of the edge that leaves this perch, which maps the measure at this perch to the measure at the next perch. |
BubbleHandle |
Builder('cons', 'arvl_to_dcsn') |
stage/pieces.py, PerchBuilders.fwd |
stage.arvl.builder.bwd |
The backward builder of the edge that leaves this perch, which constructs the value functions at this perch from those at the next perch. |
BubbleHandle |
Builder('cons', 'dcsn_to_arvl') |
stage/pieces.py, PerchBuilders.bwd |
stage.arvl.builder.policy |
The policy builder, at the decision perch alone: stage.builder.policy. |
— |
refused on stage.arvl.builder: AttributeError: stage 'cons': the policy builder stands at the decision per… |
stage/pieces.py, PerchBuilders.policy |
stage.arvl.builder.list() |
The paths of this perch, each with the key of stage.builder it reads: two at arrival, three at decision with policy, and none at continuation. |
NamedListing |
stage.arvl.builder.fwd arvl → dcsn … |
stage/pieces.py, PerchBuilders.list |
stage.dcsn.builder |
The builders of the edge that leaves this perch, fwd and bwd, and at decision policy. |
PerchBuilders |
PerchBuilders('cons', 'dcsn') |
stage/pieces.py, PerchHandle.builder |
stage.dcsn.builder.fwd |
The forward builder of the edge that leaves this perch, which maps the measure at this perch to the measure at the next perch. |
BubbleHandle |
Builder('cons', 'dcsn_to_cntn') |
stage/pieces.py, PerchBuilders.fwd |
stage.dcsn.builder.bwd |
The backward builder of the edge that leaves this perch, which constructs the value functions at this perch from those at the next perch. |
BubbleHandle |
Builder('cons', 'cntn_to_dcsn') |
stage/pieces.py, PerchBuilders.bwd |
stage.dcsn.builder.policy |
The policy builder, at the decision perch alone: stage.builder.policy. |
BubbleHandle |
Builder('cons', 'policy') |
stage/pieces.py, PerchBuilders.policy |
stage.dcsn.builder.list() |
The paths of this perch, each with the key of stage.builder it reads: two at arrival, three at decision with policy, and none at continuation. |
NamedListing |
stage.dcsn.builder.fwd dcsn → cntn … |
stage/pieces.py, PerchBuilders.list |
stage.cntn.builder |
The builders of the edge that leaves this perch, fwd and bwd, and at decision policy. |
PerchBuilders |
PerchBuilders('cons', 'cntn') |
stage/pieces.py, PerchHandle.builder |
stage.cntn.builder.fwd |
The forward builder of the edge that leaves this perch, which maps the measure at this perch to the measure at the next perch. |
— |
refused on stage.cntn.builder: AttributeError: stage 'cons': the forward pass leaves the stage at continua… |
stage/pieces.py, PerchBuilders.fwd |
stage.cntn.builder.bwd |
The backward builder of the edge that leaves this perch, which constructs the value functions at this perch from those at the next perch. |
— |
refused on stage.cntn.builder: AttributeError: stage 'cons': no value is built at continuation, so `stage.… |
stage/pieces.py, PerchBuilders.bwd |
stage.cntn.builder.policy |
The policy builder, at the decision perch alone: stage.builder.policy. |
— |
refused on stage.cntn.builder: AttributeError: stage 'cons': the policy builder stands at the decision per… |
stage/pieces.py, PerchBuilders.policy |
stage.cntn.builder.list() |
The paths of this perch, each with the key of stage.builder it reads: two at arrival, three at decision with policy, and none at continuation. |
NamedListing |
none |
stage/pieces.py, PerchBuilders.list |
stage.builder.bwd.level |
One graph of a version, identified by level, direction and grain. |
str |
'builders' |
stage/pieces.py, GraphHandle.level |
stage.builder.bwd.direction |
One graph of a version, identified by level, direction and grain. |
str |
'backward' |
stage/pieces.py, GraphHandle.direction |
stage.builder.bwd.grain |
One graph of a version, identified by level, direction and grain. |
str |
'builder' |
stage/pieces.py, GraphHandle.grain |
stage.builder.bwd.graph |
The DisCoPy hypergraph at this level, direction and grain. |
BellmanHypergraph |
bellman.native.hypergraphs.BellmanHypergraph(dom=frobenius.Ty(Sort('cons:fu… |
stage/pieces.py, GraphHandle.graph |
stage.builder.bwd.list() |
The graph's pieces in order of application, each under its whole name, with the kind column, what it produces and its number: a builder its position among the builders, a primitive its position among the primitives of its own builder. |
Listing |
1 cntn_to_dcsn builder → 𝑉 … |
stage/pieces.py, GraphHandle.list |
stage.builder.bwd.primitives |
The same graph with all sub-builders opened and compatible primitive operations merged. |
GraphHandle |
BuildersGraph('cons', 'backward', primitives) |
stage/pieces.py, GraphHandle.primitives |
stage.builder.bwd.sub_builders |
The same graph at the authored decomposition, with each !node retained as a sub-builder. |
GraphHandle |
BuildersGraph('cons', 'backward', sub_builders) |
stage/pieces.py, GraphHandle.sub_builders |
stage.builder.bwd.diagram() |
The drawing of this graph, separately for each direction. |
Drawing |
Drawing of 13 boxes |
stage/pieces.py, GraphHandle.diagram |
stage.builder.bwd.signature() |
The typed inputs and outputs of this graph. |
Signature |
in 𝑉≻ : Xa → [−∞, ∞) … |
stage/pieces.py, GraphHandle.signature |
stage.builder.bwd.denote() |
The graph's mathematical record. |
Composite |
STAGE cons / BACKWARD BUILDERS … |
stage/pieces.py, GraphHandle.denote |
stage.builder.bwd.obligations() |
Conditions owned by this graph's builders together with those of the whole stage, retaining their statuses and evidence. |
Obligations |
arithmetic-definedness ¬(1 − ρ = 0) [established] … |
stage/pieces.py, GraphHandle.obligations |
stage.builder.bwd.methods |
The bindings at pieces within this graph and the authored lines they represent, as a read-only mapping. |
BoundMethods |
cntn_to_dcsn.evaluate !Linear !Cartesian(m_d=(m_min, m_max, n_m)) "cons-por… |
stage/pieces.py, GraphHandle.methods |
stage.builder.bwd[key] |
One box of this graph by its whole name, stage.builder.bwd.primitives["cntn_to_dcsn:Aggregation"]. |
BubbleHandle |
["cntn_to_dcsn"]: Builder('cons', 'cntn_to_dcsn') |
stage/pieces.py, GraphHandle.__getitem__ |
stage.builder.fwd.level |
One graph of a version, identified by level, direction and grain. |
str |
'builders' |
stage/pieces.py, GraphHandle.level |
stage.builder.fwd.direction |
One graph of a version, identified by level, direction and grain. |
str |
'forward' |
stage/pieces.py, GraphHandle.direction |
stage.builder.fwd.grain |
One graph of a version, identified by level, direction and grain. |
str |
'builder' |
stage/pieces.py, GraphHandle.grain |
stage.builder.fwd.graph |
The DisCoPy hypergraph at this level, direction and grain. |
BellmanHypergraph |
bellman.native.hypergraphs.BellmanHypergraph(dom=frobenius.Ty(Sort('cons:me… |
stage/pieces.py, GraphHandle.graph |
stage.builder.fwd.list() |
The graph's pieces in order of application, each under its whole name, with the kind column, what it produces and its number: a builder its position among the builders, a primitive its position among the primitives of its own builder. |
Listing |
1 arvl_to_dcsn builder → μ … |
stage/pieces.py, GraphHandle.list |
stage.builder.fwd.primitives |
The same graph with all sub-builders opened and compatible primitive operations merged. |
GraphHandle |
BuildersGraph('cons', 'forward', primitives) |
stage/pieces.py, GraphHandle.primitives |
stage.builder.fwd.sub_builders |
The same graph at the authored decomposition, with each !node retained as a sub-builder. |
GraphHandle |
BuildersGraph('cons', 'forward', sub_builders) |
stage/pieces.py, GraphHandle.sub_builders |
stage.builder.fwd.diagram() |
The drawing of this graph, separately for each direction. |
Drawing |
Drawing of 4 boxes |
stage/pieces.py, GraphHandle.diagram |
stage.builder.fwd.signature() |
The typed inputs and outputs of this graph. |
Signature |
in μ≺ : finite measure on Xm × ℝ₊ … |
stage/pieces.py, GraphHandle.signature |
stage.builder.fwd.denote() |
The graph's mathematical record. |
Composite |
STAGE cons / FORWARD BUILDERS … |
stage/pieces.py, GraphHandle.denote |
stage.builder.fwd.obligations() |
Conditions owned by this graph's builders together with those of the whole stage, retaining their statuses and evidence. |
Obligations |
arithmetic-definedness ¬(1 − ρ = 0) [established] … |
stage/pieces.py, GraphHandle.obligations |
stage.builder.fwd.methods |
The bindings at pieces within this graph and the authored lines they represent, as a read-only mapping. |
BoundMethods |
arvl_to_dcsn !deterministic … |
stage/pieces.py, GraphHandle.methods |
stage.builder.fwd[key] |
One box of this graph by its whole name, stage.builder.bwd.primitives["cntn_to_dcsn:Aggregation"]. |
BubbleHandle |
["dcsn_to_cntn"]: Builder('cons', 'dcsn_to_cntn') |
stage/pieces.py, GraphHandle.__getitem__ |
stage.builder["cntn", "dcsn"].box |
version is its stage version; box is the DisCoPy bubble. |
Builder |
bellman.native.hypergraphs.Builder(frobenius.Diagram(inside=(rigid.Layer(fr… |
stage/pieces.py, BubbleHandle.box |
stage.builder["cntn", "dcsn"].list() |
The tree of the interior's pieces in order of application, each under the key that reaches it from this handle, with the kind column and what it produces: a builder's or a sub-builder's primitives numbered as the operations block of its card numbers them, a sub-builder's row unnumbered with its primitives under it; primitives.list() opens the sub-builders and lists the primitives alone with the same numbers; a block's lines, the !doc line among them, unnumbered. |
Listing |
1 Pullback primitive … |
stage/pieces.py, BubbleHandle.list |
stage.builder["cntn", "dcsn"].denote() |
This piece's mathematical record, with typed wires and contained pieces. |
Composite |
STAGE cons / BACKWARD BUILDER cntn → dcsn (cntn_to_dcsn) … |
stage/pieces.py, BubbleHandle.denote |
stage.builder["cntn", "dcsn"].primitives |
This piece with every sub-builder opened and compatible primitive operations merged. |
BubbleHandle |
Builder('cons', 'cntn_to_dcsn', primitives) |
stage/pieces.py, BubbleHandle.primitives |
stage.builder["cntn", "dcsn"].sub_builders |
This piece at its authored sub-builder decomposition. |
BubbleHandle |
Builder('cons', 'cntn_to_dcsn', sub_builders) |
stage/pieces.py, BubbleHandle.sub_builders |
stage.builder["cntn", "dcsn"].diagram() |
The drawing of this piece's interior. |
Drawing |
Drawing of 3 boxes |
stage/pieces.py, BubbleHandle.diagram |
stage.builder["cntn", "dcsn"].signature() |
The typed inputs and outputs of this piece. |
Signature |
in 𝑉≻ : Xa → [−∞, ∞) … |
stage/pieces.py, BubbleHandle.signature |
stage.builder["cntn", "dcsn"].kernels() |
The kernels of this builder as one BuilderKernels record, from which a numerical operator is constructed with no stage in hand: for each primitive operator in order of application, the function its compile_kernel() answers with the names of its arguments and its outputs, the parameters it reads with the values the calibration binds, the wires it reads and writes and its printed kernel, and for a row with no explicit function its printed relation in place of a function; then the builder's parameters with their values and the sets its pieces are read on. |
BuilderKernels |
kernels of cntn_to_dcsn: 𝑉≻ → 𝑉 … |
stage/pieces.py, BubbleHandle.kernels |
stage.builder["dcsn", "cntn"].state_choice_measure() |
The joint measure of state and choice for a forward decision builder. |
Lambda |
mu … |
stage/pieces.py, BubbleHandle.state_choice_measure |
stage.builder["cntn", "dcsn"].obligations() |
The stage's authored conditions and type checks concerning this piece. |
Obligations |
aggregation-admissibility V(m_d) ∈ [−∞, ∞) … |
stage/pieces.py, BubbleHandle.obligations |
stage.builder["cntn", "dcsn"].methods |
Bindings at this piece, inside it, and at the authored lines of the block it is built from. |
BoundMethods |
cntn_to_dcsn.evaluate !Linear !Cartesian(m_d=(m_min, m_max, n_m)) "cons-por… |
stage/pieces.py, BubbleHandle.methods |
stage.builder["cntn", "dcsn"][key] |
One box inside it by name, the kind compared without regard to case; a tuple of keys walks one level down per element. |
BoxHandle |
["pullback"]: Operator('cons', 'cntn_to_dcsn:Pullback') |
stage/pieces.py, BubbleHandle.__getitem__ |
stage.builder["cntn", "dcsn"]["pullback"].box |
version is its stage version and box the retained DisCoPy box. |
Box |
frobenius.Box('cntn_to_dcsn:Pullback', frobenius.Ty(Sort('cons:function:cnt… |
stage/pieces.py, BoxHandle.box |
stage.builder["cntn", "dcsn"]["pullback"].list() |
The pieces below this box: none, since a primitive operator or an authored line has no interior, so the listing prints none; the same verb at every level. |
Listing |
none |
stage/pieces.py, BoxHandle.list |
stage.builder["cntn", "dcsn"]["pullback"].denote() |
This box's mathematical record and card: an operator's mapping, typed wires, kernel and conditions, or an authored line's positioned statement, tags, control and methods. |
OperatorCard |
STAGE cons / BACKWARD BUILDER cntn → dcsn (cntn_to_dcsn) / Pullback … |
stage/pieces.py, BoxHandle.denote |
stage.builder["cntn", "dcsn"]["pullback"].kernel() |
The kernel applied by this operator, with its defining records in origins. |
Kernel |
𝑔 of dcsn_to_cntn: 𝑔(m_d, c) = m_d - c |
stage/pieces.py, BoxHandle.kernel |
stage.builder["cntn", "dcsn"]["pullback"].compile_kernel() |
The kernel as one plain Python function, the text kernel().python executed, on a symbolic or a calibrated version: its arguments are the kernel's own and then the parameters it reads, whose values kernel().parameter_values holds. |
function |
<function g_dcsn_to_cntn> |
stage/pieces.py, BoxHandle.compile_kernel |
stage.builder["cntn", "dcsn"]["pullback"].signature() |
The typed inputs and outputs of this box. |
Signature |
in 𝑉≻ : Xa → [−∞, ∞) … |
stage/pieces.py, BoxHandle.signature |
stage.builder["cntn", "dcsn"]["pullback"].obligations() |
The conditions this box owns. |
Obligations |
none |
stage/pieces.py, BoxHandle.obligations |
stage.builder["cntn", "dcsn"]["pullback"].methods |
The read-only bindings at this box and the authored lines it represents. |
BoundMethods |
none |
stage/pieces.py, BoxHandle.methods |
stage.initial.backward["cntn_to_dcsn"][key] |
One box inside it by name, the kind compared without regard to case; a tuple of keys walks one level down per element. |
BoxHandle |
["value"]: Line('cons', 'cntn_to_dcsn.value') |
stage/pieces.py, BubbleHandle.__getitem__ |
stage.initial.backward["cntn_to_dcsn"]["value"].box |
version is its stage version and box the retained DisCoPy box. |
Box |
frobenius.Box('cntn_to_dcsn.value', frobenius.Ty(Sort('cons:cntn:V', 'field… |
stage/pieces.py, BoxHandle.box |
stage.initial.backward["cntn_to_dcsn"]["value"].list() |
The pieces below this box: none, since a primitive operator or an authored line has no interior, so the listing prints none; the same verb at every level. |
Listing |
none |
stage/pieces.py, BoxHandle.list |
stage.initial.backward["cntn_to_dcsn"]["value"].denote() |
This box's mathematical record and card: an operator's mapping, typed wires, kernel and conditions, or an authored line's positioned statement, tags, control and methods. |
AuthoredCard |
STAGE cons / BACKWARD BLOCK cntn_to_dcsn / value … |
stage/pieces.py, BoxHandle.denote |
stage.initial.backward["cntn_to_dcsn"]["value"].kernel() |
The kernel applied by this operator, with its defining records in origins. |
— |
refused on stage.initial.backward["cntn_to_dcsn"]["value"]: ConstructionError: applications/portfolio-choice/declaration/stages/cons/co… |
stage/pieces.py, BoxHandle.kernel |
stage.initial.backward["cntn_to_dcsn"]["value"].compile_kernel() |
The kernel as one plain Python function, the text kernel().python executed, on a symbolic or a calibrated version: its arguments are the kernel's own and then the parameters it reads, whose values kernel().parameter_values holds. |
— |
refused on stage.initial.backward["cntn_to_dcsn"]["value"]: ConstructionError: applications/portfolio-choice/declaration/stages/cons/co… |
stage/pieces.py, BoxHandle.compile_kernel |
stage.initial.backward["cntn_to_dcsn"]["value"].signature() |
The typed inputs and outputs of this box. |
Signature |
in V≻ : {V≻} … |
stage/pieces.py, BoxHandle.signature |
stage.initial.backward["cntn_to_dcsn"]["value"].obligations() |
The conditions this box owns. |
Obligations |
none |
stage/pieces.py, BoxHandle.obligations |
stage.initial.backward["cntn_to_dcsn"]["value"].methods |
The read-only bindings at this box and the authored lines it represents. |
BoundMethods |
none |
stage/pieces.py, BoxHandle.methods |
stage.initial.backward["policy", "objective"].definition |
One entry of the definitions table: a name the stage file declares, once, in file order. |
Definition |
Definition('policy.objective', line) |
stage/pieces.py, LineHandle.definition |
stage.initial.backward["policy", "objective"].denote() |
The authored relation, positioned statement and annotations of this line, as the same record a line with a box answers. |
AuthoredCard |
STAGE port / POLICY BLOCK policy / objective … |
stage/pieces.py, LineHandle.denote |
stage.initial.backward["policy", "objective"].methods |
The read-only methods mapping at this line. |
BoundMethods |
none |
stage/pieces.py, LineHandle.methods |
stage.par[name] |
One parameter of a version, stage.par["ρ"]: its name as the file declares it, its declared set domain, a retained term or None where no declaration names one, its value, the number a calibration binds or the word unbound, and the author's description describes. |
Parameter |
["ρ"]: ρ = 6.0 : [1, inf) |
stage/pieces.py, Parameters.__getitem__ |
stage.par.<name> |
The value alone of one parameter, read by its name as an attribute, stage.par.ρ: the value of the record stage.par["ρ"], the number a calibration binds. |
float |
.ρ: 6.0 |
stage/pieces.py, Parameters.__getattr__ |
stage.par.list() |
The parameters as a table, one row each with name, domain, value, describes and definition: the declared set, printed under set, the bound value or the word unbound, and the definition of a derived parameter, printed under set after the set and :=. |
Rows |
name set value describes … |
stage/pieces.py, Parameters.list |
stage.par.view() |
The table of the parameters as printed text. |
str |
name set value describes … |
stage/pieces.py, Parameters.view |
stage.settings[name] |
One setting of a version, stage.settings["n_a"]: its name; its domain, the set its declaration in the methods file names, None for a setting no file declares; its configured value, or unbound where no configuration has valued it; and readers, the triples of the place that reads it, the method word there and the outer word of the grid typed at that place where the grid reads the setting, as a bound or a count of one of its factors or as its declared points, ("policy", "!egm", "!Cartesian"), the word empty otherwise, ("dcsn_to_arvl.E_ψ_ξ", "!gauss_hermite", ""); readers is empty for a setting no component names. |
Setting |
["n_a"]: n_a = 800 : ℕ, read at policy by !egm for its grid !Cartesian |
stage/pieces.py, Settings.__getitem__ |
stage.settings.<name> |
The value alone of one setting, read by its name as an attribute, stage.settings.n_a: the value of the record stage.settings["n_a"], the configured value. |
int |
.n_a: 800 |
stage/pieces.py, Settings.__getattr__ |
stage.settings.list() |
The settings as a table, one row for each method that reads a setting, with name, the declared set under set, value, read at, by and grid, the outer word of the place's grid where the grid reads the setting, as a bound or a count of one of its factors or as the declared points of !Points; a setting no method reads has one row with the last three empty. |
Rows |
name set value read at by grid … |
stage/pieces.py, Settings.list |
stage.settings.view() |
The table of the settings as printed text. |
str |
name set value read at by grid … |
stage/pieces.py, Settings.view |
stage.methods[place] |
The components typed at one place of a stage: method, the method component, the Word of the typing entry <place>.method : !egm(tol=tol_v) with its keyword arguments; grid, the grid component, the one outer grid term of <place>.grid : !Cartesian(a=(a_min, a_max, n_a)), !Points(nodes=P) or !Fibred(base=…, fibre=…), a Cartesian, a PointGrid or a Fibred; and handler, the program the binding <place>.handler : "cons-port:egm" names, which realizes the operator and is no classifier. |
Components |
["policy"]: !egm !Cartesian(a=(a_min, a_max, n_a)) "cons-port:egm" |
stage/pieces.py, BoundMethods.__getitem__ |