AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
TITLE: Partial Sum Ontology
VERSION: 4.0
SOURCE_URL: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/sequence-and-series-entities/partial-sum-ontology.html
AUTHORS: Mark Higgins — Sky (Recursive AI)
PROJECT: Kireth Semantic Library
SOURCE_ALIGNMENT: Independent mathematical reconstruction; page text not verified.
1. ONTOLOGY IDENTITY
ENTITY: PartialSum
TYPE: MathematicalEntity > SequenceAndSeriesEntity > FiniteSum
DEFINITION: The sum of a specified initial finite segment of the terms of a sequence.
NOTATION: S_n = sum_{k=m}^{n} a_k, for integer n >= m.
DOMAIN: real or complex sequences, or more generally additive algebraic structures.
2. TYPED ENTITIES
Sequence(a): ordered family of terms a_k.
Index(k): integer identifying a sequence term.
LowerIndex(m): initial index.
UpperIndex(n): terminal index, n >= m.
Term(a_k): sequence element.
PartialSum(S_n): finite aggregate of terms a_m,...,a_n.
PartialSumSequence((S_n)): sequence generated by cumulative finite sums.
InfiniteSeries(sum_{k=m}^infinity a_k): formal infinite summation evaluated via limits of partial sums.
SeriesLimit(L): finite limit of (S_n), when it exists.
Remainder(R_n): L-S_n for a convergent series.
3. RELATIONSHIPS
PartialSum IS_A FiniteSum.
PartialSum DERIVED_FROM Sequence.
PartialSum HAS_LOWER_INDEX m.
PartialSum HAS_UPPER_INDEX n.
PartialSum AGGREGATES Terms(a_m,...,a_n).
PartialSumSequence GENERATED_BY Sequence.
InfiniteSeries CONVERGES_IFF PartialSumSequence converges to a finite limit.
Remainder DEPENDS_ON SeriesLimit AND PartialSum.
4. FORMAL CONSTRUCTION
INPUT: sequence (a_k), integer m, integer n >= m.
OPERATION: S_n := a_m + a_{m+1} + ... + a_n.
OUTPUT: S_n and, for all n >= m, partial-sum sequence (S_n).
BASE: S_m = a_m.
RECURRENCE: S_n = S_{n-1} + a_n for n > m.
RECOVERY: a_n = S_n - S_{n-1} for n > m; a_m = S_m.
LINEARITY: partial_sum(alpha*a + beta*b, n) = alpha*S_n(a) + beta*S_n(b).
BLOCK ADDITIVITY: sum_{k=m}^{n} a_k = sum_{k=m}^{r} a_k + sum_{k=r+1}^{n} a_k for m <= r < n.
5. CONVERGENCE SEMANTICS
CONVERGES: exists finite L such that for every epsilon > 0 there exists N with |S_n-L| < epsilon for all n >= N.
DIVERGES: no finite L satisfies the convergence definition.
CAUCHY CRITERION (REAL/COMPLEX): for every epsilon > 0 exists N such that |S_p-S_q| < epsilon for all p,q >= N.
TAIL FORM: |sum_{k=q+1}^{p} a_k| < epsilon for p > q >= N.
NECESSARY CONDITION: convergence of (S_n) implies a_n -> 0.
NON-SUFFICIENCY: a_n -> 0 does not imply convergence of (S_n).
ABSOLUTE CONVERGENCE: convergence of sum |a_k| implies convergence of sum a_k for real/complex series.
CONDITIONAL CONVERGENCE: sum a_k converges while sum |a_k| diverges.
6. INFERENCE RULES
R01 IF valid sequence and m <= n THEN S_n is a well-defined finite sum (for additive terms).
R02 IF n=m THEN S_n=a_m.
R03 IF n>m THEN S_n=S_{n-1}+a_n.
R04 IF n>m THEN a_n=S_n-S_{n-1}.
R05 IF a_k >= 0 for every k THEN S_n is nondecreasing.
R06 IF a_k <= 0 for every k THEN S_n is nonincreasing.
R07 IF S_n is nondecreasing and bounded above (real case) THEN S_n converges.
R08 IF S_n is nonincreasing and bounded below (real case) THEN S_n converges.
R09 IF S_n converges to L THEN sum a_k = L.
R10 IF S_n has no finite limit THEN sum a_k diverges.
R11 IF sum a_k converges THEN a_n -> 0.
R12 IF a_n does not tend to zero THEN sum a_k diverges.
R13 IF sum |a_k| converges (real/complex) THEN sum a_k converges.
R14 IF S_n -> L THEN remainder R_n=L-S_n -> 0.
R15 IF S_n -> L and T_n -> M THEN alpha*S_n+beta*T_n -> alpha*L+beta*M.
R16 IF sum a_k converges THEN every finite index shift changes the total by the removed/added finite terms, not convergence status.
R17 IF two sequences agree from some index onward THEN their series have the same convergence status.
R18 IF partial sums are unbounded THEN the series diverges.
R19 IF partial sums oscillate without approaching a finite limit THEN the series diverges.
R20 IF a_k >= 0 and S_n is unbounded THEN S_n -> +infinity (extended sense, not finite convergence).
7. CANONICAL EXAMPLES
E01 Arithmetic: a_k=k, k>=1; S_n=n(n+1)/2; diverges to +infinity.
E02 Geometric: a_k=r^k, k>=0; S_n=(1-r^{n+1})/(1-r) for r != 1; S_n=n+1 for r=1.
E03 Geometric convergence: |r|<1 implies S_n -> 1/(1-r).
E04 Harmonic: a_k=1/k, k>=1; S_n=sum_{k=1}^{n}1/k; diverges despite a_k->0.
E05 Telescoping: a_k=1/k-1/(k+1), k>=1; S_n=1-1/(n+1); limit 1.
E06 Alternating geometric: a_k=(-1)^k, k>=0; S_n alternates 1 and 0; no limit.
E07 Alternating harmonic: a_k=(-1)^{k+1}/k, k>=1; S_n converges to ln(2), not absolutely.
E08 Zero sequence: a_k=0; S_n=0; limit 0.
8. VALIDATION CONSTRAINTS
V01 Require integer index bounds and n>=m.
V02 Verify term addition is defined in the selected algebraic domain.
V03 Do not identify a finite partial sum with the infinite-series limit.
V04 Distinguish boundedness of S_n from convergence: bounded oscillation can diverge.
V05 Distinguish extended divergence to infinity from convergence to a finite real number.
V06 Never infer convergence solely from a_n -> 0.
V07 For complex terms, do not apply order-based monotonicity rules.
V08 Record index origin; sum starting at k=0 differs from sum starting at k=1.
V09 Remainder requires an established finite series limit.
V10 State convergence theorems with their required domain assumptions.
9. SEMANTIC_EQUIVALENCE
partial sum == finite prefix sum (when prefix begins at declared lower index).
cumulative sum == partial-sum sequence (for the same indexing convention).
Nth partial sum == S_n.
series convergence == convergence of its partial-sum sequence (finite limit).
NOT_EQUIVALENT: partial sum != series sum in general.
NOT_EQUIVALENT: sequence of terms != sequence of partial sums.
NOT_EQUIVALENT: bounded partial sums != convergent partial sums.
10. KNOWLEDGE GRAPH TRIPLES
(PartialSum, rdf:type, FiniteSum)
(PartialSum, derivedFrom, Sequence)
(PartialSum, aggregates, SequenceTerm)
(PartialSum, indexedBy, UpperIndex)
(PartialSumSequence, generatedBy, Sequence)
(InfiniteSeries, definedThrough, LimitOfPartialSums)
(ConvergentSeries, hasFiniteLimit, SeriesLimit)
(Remainder, equals, SeriesLimitMinusPartialSum)
(PartialSum, relatedTo, FiniteSeries)
(PartialSum, relatedTo, InfiniteSeries)
11. FLOW EXECUTION
FLOW_ID: MathematicalEntities.SequenceAndSeries.PartialSum.v4
INPUT_SCHEMA: {terms: Sequence, start_index: Integer, end_index: Integer, domain: AdditiveDomain}
PRECONDITION: end_index >= start_index; all requested terms defined.
STEP_1: Validate indexing and term domain.
STEP_2: Construct S_n as finite indexed sum.
STEP_3: Derive recurrence and optional closed form.
STEP_4: Build partial-sum sequence where requested.
STEP_5: Assess finite-limit convergence using a justified test.
STEP_6: Emit formulas, proofs or counterexamples with assumptions.
OUTPUT_SCHEMA: {partial_sum: -Expression, recurrence: -Expression, convergence_status: Optional[Status], limit: Optional[Value], evidence: List}
ERROR_STATES: invalid_index; undefined_term; incompatible_addition; insufficient_convergence_evidence.
12. CONFIDENCE
DEFINITION_CONFIDENCE: high (standard mathematical definition).
RULE_CONFIDENCE: high subject to explicitly stated assumptions.
SOURCE_PAGE_MATCH_CONFIDENCE: unverified; original page not consulted.
UNCERTAINTY_POLICY: mark undecidable/untested convergence as unknown rather than assume convergence or divergence.
13. FLOW_HASH
FLOW_HASH_METHOD: SHA-256 of canonical UTF-8 flow text after agreed normalisation.
FLOW_HASH_VALUE: TO_BE_COMPUTED_BY_PUBLISHING_PIPELINE.
HASH_SCOPE: content and version; do not fabricate a hash.
14. UPDATE_MODEL
VERSION: 4.0
UPDATE_TRIGGER: corrected mathematics, new ontology links, changed schema or source-page alignment.
UPDATE_RULE: increment revision; record changes; recalculate Flow Hash.
PROVENANCE: Kireth Semantic Library; independently authored ontology model.
15. AI_CONSUMPTION
ENTITY_RESOLUTION: recognise partial sum, finite prefix sum, S_n and cumulative sum in context.
REASONING_ORDER: validate indices -> derive finite sum -> inspect sequence of partial sums -> determine convergence only with proof.
SAFETY_GUARDS: preserve assumptions; avoid false converse implications; distinguish numerical approximations from proofs.
OUTPUT_REQUIREMENTS: include index convention, exact or symbolic expression, convergence status and rationale when requested.
INTEROPERABILITY: link Sequence, Series, FiniteSeries, InfiniteSeries, ConvergentSequence, DivergentSequence, PowerSeries, TaylorSeries and FourierSeries ontologies.
END FLOW ALGEBRA