Repository navigation
Conversation
`from_region: { alias: region }` has the labels, dtype and order of
`region` under a second name, so an entry can be over one set twice, as
TIMES' IRE_FLO is over two regions. The alias has the map
`from_region[region]` from each label to itself, and prints as the
primed index of `region` over the same set.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018B3nA1xxh6NMJN6mrYY34Q
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018B3nA1xxh6NMJN6mrYY34Q
Documentation build overview
48 files changed ·
|
A reduction over a dimension primed its dummy once per enclosing use,
so inside an entry over an alias of that dimension it took the alias's
own index and printed `w_{g',g'}`. The dummy now primes past every index
another dimension prints with.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018B3nA1xxh6NMJN6mrYY34Q
`exchanged` sums over `bus` inside a sum over its alias `from_bus`, so the golden model reaches the line that primes a dummy past the alias. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018B3nA1xxh6NMJN6mrYY34Q
This was referenced Nov 16, 2026
The TIMES trade example states IRE_FLO with an alias for the region and the commodity, over the links that top_ire lists: no invented trade_link label, no workaround callout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018B3nA1xxh6NMJN6mrYY34Q
…ion-alias # Conflicts: # docs/examples/times/trade.md # examples/symbols/trade.yaml # examples/times/trade.yaml
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
The following content was generated by AI.
What this changes
A dimension may be an alias of another: the same labels under a second name, so an entry is over one set twice. Closes #969 gap 1. The three sparse-set drafts, A (#1016), B (#1018) and C (#1017, whose role form it replaces), stack on it; they are closed as evidence for #1019.
TIMES (
examples/times/trade.yaml): the inventedtrade_linkand the workaround callout of #1021 are gone.Why
ALIAS(REG,R)ininitsys.mod,IRE_FLO(REG,…,R,…); TIMES' GAMS math could port to mathspec (11 gaps identified requiring a workaround) #969 lists about 10 parameter families like itfrom_region[region]is a map of a dimensionMethod, gate output, choices, not done
DimensionSpec.alias,Dimension.aliason the program; the program repeats the target'sdtype,one_of,ordered<alias>[<target>]is implied insubject_tables; the data supplies no table for an aliasr', a second aliasr''), same set symbol; legend row "an alias ofregion"; the identity read prints as the primed index, not as a function; markdown, LaTeX, Typstw_{g',g'}; fixed in29973cd, the dummy primes past every index another dimension prints with; failing test first, golden caseexchangedadded (84ba347)dtype:/one_of:/ordered:besidealias:; an undeclared target; itself; an alias of an alias; the implied map declared again (tests/test_alias.py)from_bus,flow_angle,exchanged;notation.mdregenerated9bc9fe7,96c1002): the TIMES trade example and its page rewritten with aliases,TOP_IREwith its process; its symbol table dropstrade_linkalias:; reading through it stays an explicitat(…, by=from_region[region]); an alias never narrows the labels (a subset is its own dimension with a map, as TIMES' vintage against period)96c1002:pixi run ci: lint, test (4244 passed, 1 skipped),docs-buildpass;compile-texfails here, its TeX bundle cannot be downloaded in this sandbox🤖 Generated with Claude Code
https://claude.ai/code/session_018B3nA1xxh6NMJN6mrYY34Q