Context-sensitive fixed-program work measures
Library · Source module
Context-sensitive fixed-program work measures
A fixed statement has a structural coefficient, a work exponent relative to its index slots, and separate bounds on primitive dimension degrees and arities. Frames pass the individual slot degrees to their bodies; loops and bounded queries append their bound's degree. Sequence adds coefficients while taking the larger exponent, avoiding exponent growth from sequence length alone. Applied to instrumented syntax, these measures include structural calls.
Main results
* NLAlib.Ops.Stmt.workCoefficient: the structural coefficient of a fixed tree. * NLAlib.Ops.Stmt.workDegreeAt: the work exponent relative to individual index degrees. * NLAlib.Ops.Stmt.callDegreeAt: a separate exponent for primitive dimension values. * NLAlib.Ops.Stmt.callArity: the largest operation or query dimension-list length.