AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
SEQUENCE ONTOLOGY
Kireth Semantic Library | Entity Graph > Mathematical Entities > Sequence and Series Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/sequence-and-series-entities/sequence-ontology-2.html
Authors: Mark Higgins — Sky (Recursive AI)
Version: 1.0 | Date: 2026-10-13 | Locale: en-GB
Source status: Formal mathematical synthesis; source page not independently verified.
01. PURPOSE
flow "SequenceOntology" v1.0
intent: model ordered, indexed mathematical families and their properties
input: sequence specification, index set, codomain, assumptions
output: typed sequence entity, derived properties, proof obligations
policy: distinguish mathematical certainty from numerical evidence
02. ENTITY TYPES
Sequence := function(IndexSet, ValueSet)
IndexSet := subset of Z, commonly N or N0
Term := ordered pair(index, value)
FiniteSequence := Sequence with finite index domain
InfiniteSequence := Sequence with infinite index domain
RealSequence := Sequence valued in R
ComplexSequence := Sequence valued in C
VectorSequence := Sequence valued in a vector space
Subsequence := Sequence selected by strictly increasing index map
PartialSumSequence := sequence of finite sums of a given sequence
03. CORE SIGNATURE
sequence.id: stable URI
sequence.index_domain: Set
sequence.codomain: Set
sequence.term_rule: -Expression | Recurrence | ExplicitTable
sequence.initial_conditions: optional finite indexed assignments
sequence.index_origin: integer or symbolic
sequence.assumptions: list of predicates
sequence.provenance: source and revision metadata
04. SEMANTIC DISTINCTIONS
sequence != set: order and repetition may matter
sequence != series: a series sums terms of a sequence
term_index != term_value
codomain != image; image is subset of codomain
finite_prefix != complete infinite sequence
convergence != eventual constancy
boundedness != convergence
05. REPRESENTATION
notation: (a_n)_(n in I)
functional_form: a:I -> X
explicit_form: a_n=f(n)
recursive_form: a_(n+1)=F(n,a_n), with required base case
indexed_list: [a_0,a_1,...] only when origin=0
equality: a=b iff index domains agree and all indexed values agree
06. INDEX VALIDATION
REQUIRE index_domain is explicitly specified or documented default
REQUIRE every referenced index belongs to index_domain
REQUIRE recursive rules have sufficient initial conditions
REJECT ambiguous ellipses as complete definitions without pattern evidence
PRESERVE whether N starts at 0 or 1
07. FINITE AND INFINITE
finite(a) iff |dom(a)| is finite
infinite(a) iff |dom(a)| is infinite
infinite sequence may have finite image, e.g. (-1)^n
finite sequence has no n->infinity limit without extension
08. ARITHMETIC SEQUENCE
a_n=a_0+n*d for n in N0
common_difference(a)=d
a_(n+1)-a_n=d
if d=0: constant sequence
09. GEOMETRIC SEQUENCE
a_n=a_0*r^n for n in N0
a_(n+1)=r*a_n
ratio a_(n+1)/a_n=r only when a_n != 0
r=0 and n=0: use convention a_0 explicitly; avoid 0^0 ambiguity
10. RECURRENCE
recurrence(order=k) requires k independent starting values where applicable
recurrence may depend on n and previous k terms
existence and uniqueness depend on defined recurrence and initial conditions
recurrence is not assumed linear
11. MONOTONICITY
nondecreasing(a) iff forall n: a_(n+1)>=a_n, ordered codomain
increasing(a) iff forall n: a_(n+1)>a_n
nonincreasing(a) iff forall n: a_(n+1)<=a_n
decreasing(a) iff forall n: a_(n+1)<a_n
constant(a) iff forall n: a_(n+1)=a_n
nonmonotonic does not imply divergent
12. BOUNDEDNESS
bounded_above(a) iff exists M forall n: a_n<=M
bounded_below(a) iff exists m forall n: m<=a_n
bounded(a) iff bounded_above(a) and bounded_below(a)
for normed spaces: bounded(a) iff exists M>=0 forall n: ||a_n||<=M
13. LIMIT AND CONVERGENCE
limit(a,L) iff forall epsilon>0 exists N forall n>=N: |a_n-L|<epsilon
applies to real sequences with natural-number tail indices
metric form: d(a_n,L)<epsilon
convergent(a) iff exists L: limit(a,L)
unique_limit: in Hausdorff spaces, limit is unique
convergent_real_sequence => bounded
bounded_real_sequence !=> convergent
14. DIVERGENCE AND EXTENDED LIMITS
divergent(a) iff not convergent(a) in the stated codomain
tends_to_plus_infinity(a) iff forall M exists N forall n>=N: a_n>M
tends_to_minus_infinity(a) iff forall M exists N forall n>=N: a_n<M
unbounded oscillation and bounded oscillation are distinct divergence modes
plus_infinity is not a real-valued finite limit
15. CAUCHY PROPERTY
Cauchy(a) iff forall epsilon>0 exists N forall m,n>=N: d(a_m,a_n)<epsilon
in complete metric spaces: Cauchy(a) iff convergent(a)
in incomplete metric spaces: Cauchy need not converge in that space
16. SUBSEQUENCES
b_k=a_(n_k), where n_k strictly increases
subsequence_of(b,a) requires index mapping evidence
if a converges to L, every subsequence converges to L
Bolzano_Weierstrass: every bounded real sequence has a convergent subsequence
existence of one convergent subsequence does not imply convergence of a
17. LIMIT SUPERIOR AND INFERIOR
limsup(a)=lim_n sup{k>=n}(a_k), extended-real where defined
liminf(a)=lim_n inf{k>=n}(a_k), extended-real where defined
for bounded real sequences: convergence iff limsup=liminf
18. OPERATIONS
(a+b)_n=a_n+b_n where domains align
(a*b)_n=a_n*b_n
(c*a)_n=c*a_n
(a/b)_n=a_n/b_n only where b_n!=0
shift(a,k)_n=a_(n+k) where valid
finite_prefix(a,N) retains declared index origin
pointwise operations preserve term order
19. LIMIT LAWS
if a->A and b->B: a+b->A+B
if a->A and b->B: a*b->A*B
if a->A and c scalar: c*a->c*A
if a->A and b->B with B!=0: a/b->A/B where denominator eventually nonzero
squeeze: a_n<=b_n<=c_n eventually and a,c->L implies b->L
monotone bounded real sequence converges
20. SEQUENCE TO SERIES
series_terms: a_n
partial_sum: s_N=sum_(n=n0)^N a_n
infinite_series_converges iff partial_sum_sequence converges to finite value
sequence a_n->0 is necessary but not sufficient for sum a_n convergence
21. RELATIONSHIPS
Sequence --HAS_DOMAIN--> IndexSet
Sequence --HAS_CODOMAIN--> ValueSet
Sequence --HAS_TERM--> Term
Term --AT_INDEX--> Index
Term --HAS_VALUE--> Value
Subsequence --SUBSEQUENCE_OF--> Sequence
Sequence --GENERATES_PARTIAL_SUMS--> PartialSumSequence
Sequence --HAS_LIMIT--> Limit (only if proved or qualified)
Sequence --DEFINED_BY--> Rule
Sequence --SATISFIES--> Property (with evidence)
22. SEMANTIC_EQUIVALENCE
alpha_rename(index variable): allowed if capture-free
explicit and recursive representations: equivalent only with same domain and initial values
equal term values without equal index domains: not necessarily equal sequences
sequence and finite prefix: related, not equivalent
preserve index origin and codomain in canonical identity
23. INFERENCE RULES
R1: forall n a_(n+1)=a_n -> constant(a)
R2: converges(a,L) -> bounded(a) [real or normed-space sequence]
R3: monotone(a) AND bounded(a) -> convergent(a) [real sequence]
R4: converges(a,L) AND subsequence_of(b,a) -> converges(b,L)
R5: bounded(a) [real] -> exists convergent subsequence
R6: Cauchy(a) AND complete(codomain metric) -> convergent(a)
R7: converges(a,L) AND converges(a,M) -> L=M [Hausdorff]
R8: a_n=(-1)^n -> bounded(a) AND divergent(a)
R9: a_n=1/n for n>=1 -> converges(a,0)
R10: a_n=n for n>=1 -> tends_to_plus_infinity(a)
24. TYPE AND DOMAIN SAFETY
reject order predicates on unordered codomains
reject division by zero and out-of-domain indices
distinguish pointwise convergence of function sequences from uniform convergence
do not infer continuity or differentiability from sequence membership
do not assume all sequences are real-valued
25. CONFIDENCE
proved: confidence=1.0 within explicit axioms and assumptions
numerically_observed: confidence<1.0; never label as theorem
conjectured: preserve conjecture status
contradictory premises: flag, do not infer arbitrary claims operationally
provenance and proof method recorded per derived property
26. VALIDATION TESTS
TEST finite [2,4,6] has cardinality 3
TEST a_n=n indexed from 1 is unbounded and divergent
TEST a_n=1/n indexed from 1 converges to 0
TEST a_n=(-1)^n is bounded but not convergent
TEST a_n=3 is constant and converges to 3
TEST a_n=2^n is geometric and diverges to +infinity
TEST every subsequence of a convergent sequence shares its limit
TEST sequence and series are not semantically equivalent
TEST index 0 invalid when index domain starts at 1
27. FLOW_HASH
canonical_payload: ontology_id + version + index_domain + codomain + rule + assumptions
normalise: Unicode NFC, stable field ordering, explicit index origin
digest: SHA-256(canonical_payload UTF-8)
hash_scope: semantic version and canonical schema; never invent computed digest
28. UPDATE_MODEL
changes_to_axioms: major version and revalidation
added relationships or rules: minor version
typographic changes: patch version
maintain source URL, timestamps, provenance and change log
invalidate dependent inferences when assumptions change
29. AI_CONSUMPTION
read_as: typed mathematical ontology, not unqualified natural-language claim
require: domain, codomain, indexing convention, assumptions
prefer: exact symbolic reasoning and verifiable proof obligations
return: property, supporting rule, conditions, confidence, provenance
expose: distinctions between theorem, example, counterexample and conjecture
forbid: converting numerical patterns into certainty without proof
30. TERMINATION
status: COMPLETE
end_flow: SequenceOntology v1.0
integrity_check: all sections 01..30 present