Applications of Algebra and Coalgebra in Scientic Modelling Illustrated with the Logistic Map
M. Hauhs B. Trancón y Widemann
Ecological Modelling University of Bayreuth, D
Coalgebraic Methods in Computer Science 20100326/28 Paphos, CY
Hauhs, Trancón (Bayreuth) (Co)Algebra in Scientic Modelling CMCS 2010 1 / 26 Context
This Talk systems and models of ecology exemplied by the logistic map
Why at CMCS?
ecology ↔? computer science scientic modelling ↔? coalgebra
Hauhs, Trancón (Bayreuth) (Co)Algebra in Scientic Modelling CMCS 2010 2 / 26 Context
Relation of Ecology and Computer Science
Wikipedia
Nothing too obvious, long term work. . .
Hauhs, Trancón (Bayreuth) (Co)Algebra in Scientic Modelling CMCS 2010 3 / 26 Scientic Modelling
What is Scientic Modelling? Real systems are studied using models. Models are stylized objects that resemble the system in some properties considered essential. Which properties are essential is determined by the context, in particular by the scientic discipline. Most model types employed in empirical disciplines belong to either of two (dual?) paradigms.
Hauhs, Trancón (Bayreuth) (Co)Algebra in Scientic Modelling CMCS 2010 4 / 26 Model Types: State vs. Behavior
Ontological Dispute State-based or behavior-based modelling? Scientic disciplines are biased:
Hauhs, Trancón (Bayreuth) (Co)Algebra in Scientic Modelling CMCS 2010 5 / 26 Model Types: State vs. Behavior
Ontological Dispute State-based or behavior-based modelling? Scientic disciplines are biased:
Physics State is fundamental (snapshots of reality) Behavior is the eect of natural laws Functional models dene variables and their dynamics Problems prediction of state and inference of parameters
Hauhs, Trancón (Bayreuth) (Co)Algebra in Scientic Modelling CMCS 2010 5 / 26 Model Types: State vs. Behavior
Ontological Dispute State-based or behavior-based modelling? Scientic disciplines are biased:
Computer Science Behavior is fundamental (specications of technology) State is the artifact of implementation Interactive models dene interfaces and their protocols Problems assessment of situations and planning of strategies
Hauhs, Trancón (Bayreuth) (Co)Algebra in Scientic Modelling CMCS 2010 5 / 26 Model Types: State vs. Behavior
Ecology has no theoretical framework of its own, is characterized by the interaction of living systems with their environment, hence calls for both paradigms, but is traditionally dominated by physicalism (PDEsa etc.); to the eect that relevance and rigor often appear mutually exclusive.
aPartial Dierential Equations
Hauhs, Trancón (Bayreuth) (Co)Algebra in Scientic Modelling CMCS 2010 6 / 26 Model Types: State vs. Behavior Examples
Environment-Dominated Life-Dominated State soil / groundwater Behavior annual tree growth
Behavior runo from watershed State carbon pool in forest
Hauhs, Trancón (Bayreuth) (Co)Algebra in Scientic Modelling CMCS 2010 7 / 26 Model Types: State vs. Behavior
Proposal: Formalize the Two Paradigms state ↔ algebra behavior ↔ coalgebra
exploit duality for unifying framework
Hauhs, Trancón (Bayreuth) (Co)Algebra in Scientic Modelling CMCS 2010 8 / 26 Logistic Map
Denition [R. May, 1976, Nature] discrete-time demographical model simple real quadratic map
fr (x) = r · x · (1 − x)
with real growth parameter r > 0 restricted to the unit interval I = [0, 1] iteration produces complex behavior
Hauhs, Trancón (Bayreuth) (Co)Algebra in Scientic Modelling CMCS 2010 9 / 26 Logistic Map
Forward Dynamics
Trajectories for given initial value x0 and parameter r
2 x0, fr (x0), fr (x0),... ∈ I
innite for r ≤ 4 eventually divergent for r > 4 all sorts of long-term dynamics: stable/unstable xpoints, stationary cycles, deterministic chaos, strange attractors test case for information/complexity measures [F. Wolf, 1999, Diss.]
Hauhs, Trancón (Bayreuth) (Co)Algebra in Scientic Modelling CMCS 2010 10 / 26 Logistic Map
Graph
r < 4 r > 4
Hauhs, Trancón (Bayreuth) (Co)Algebra in Scientic Modelling CMCS 2010 11 / 26 Logistic Map
Backward Dynamics
Each x has (at most) two preimages under fr innite binary decision tree or innite automaton binary input, state space I total for r ≥ 4 partial for r < 4: states x > r/4 (global max) are error states
Hauhs, Trancón (Bayreuth) (Co)Algebra in Scientic Modelling CMCS 2010 12 / 26 Logistic Map
Finite Partitioning (Coloring) ( 0 x ∈ [0, 1 ) c x 2 ( ) = 1 1 x ∈ [ 2 , 1]
simple model of imperfect observation generating partition of symbolic dynamics
complementary to fr :
neither c nor fr is invertible, but hc, fr i is
Hauhs, Trancón (Bayreuth) (Co)Algebra in Scientic Modelling CMCS 2010 13 / 26 Models as Homomorphisms
Modelling [R. Rosen, 1991, Life Itself]
abstraction Real2 Abstract2
causality computation time
Real1 Abstract1 abstraction
Wanted abstraction that commutes with dynamics Test round-trip ⇒ prediction
Hauhs, Trancón (Bayreuth) (Co)Algebra in Scientic Modelling CMCS 2010 14 / 26 Models as Homomorphisms
Modelling [R. Rosen, 1991, Life Itself]
interpretation Real2 Abstract2
causality computation time
Real1 Abstract1 abstraction
Wanted abstraction that commutes with dynamics Test round-trip ⇒ prediction
Hauhs, Trancón (Bayreuth) (Co)Algebra in Scientic Modelling CMCS 2010 14 / 26 F ( ) F ( ) F ( )
F ( ) F ( ) F ( )
Models as Homomorphisms
Generalization: (Co)Algebras h A2 - B2 6 6 α β
h A1 - B1 Base Case trivial signature functor (identity) Algebra signature F encodes model queries Coalgebra signature F encodes model observations
Hauhs, Trancón (Bayreuth) (Co)Algebra in Scientic Modelling CMCS 2010 15 / 26 F ( ) F ( ) F ( )
Models as Homomorphisms
Generalization: (Co)Algebras h A2 - B2 6 6 α β
F (h) F (A2) - F (B2) Base Case trivial signature functor (identity) Algebra signature F encodes model queries Coalgebra signature F encodes model observations
Hauhs, Trancón (Bayreuth) (Co)Algebra in Scientic Modelling CMCS 2010 15 / 26 F ( ) F ( ) F ( )
Models as Homomorphisms
Generalization: (Co)Algebras
F (h) F (A1) - F (B1) 6 6 α β
h A1 - B1 Base Case trivial signature functor (identity) Algebra signature F encodes model queries Coalgebra signature F encodes model observations
Hauhs, Trancón (Bayreuth) (Co)Algebra in Scientic Modelling CMCS 2010 15 / 26 Taxonomy of Models
A Denition: Ane Functor AB Recursive structure: A-List with B-labelled end
A AB = A × (−) + B
A A go : A × X → AB (X ) stop : B → AB (X ) Agenda metaphors =⇒ formal calculus all ane functors have initial algebras / nal coalgebras generate model types by instantiating A/B with simple sets take cata-/anamorphisms as modelling maps ((co)induction)
Hauhs, Trancón (Bayreuth) (Co)Algebra in Scientic Modelling CMCS 2010 16 / 26 Taxonomy of Models A Ane Functor AB
Initial Algebra