Skip to content

SHA888/composable-future

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

27 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Composable Future

A formal theory of paradigmatic futures as composable algebraic structures.

Status: Foundational audit in progress β€” pre-publication
Track: Theory (public) + Applied formalization (private)


Preprint

Composable Future: Toward an Algebraic Theory of Paradigmatic Transitions
I Made Agus Kresna Sucandra β€” Fakultas Kedokteran, Universitas Udayana
Version 0.1 β€” April 6, 2026

πŸ“„ doi.org/10.5281/zenodo.19433811

Comments welcome.


The Claim

Composable Future is a coined term for a structure not currently named in the literature.

The central claim: paradigmatic futures have the algebraic properties of composable types. They can be combined without either being destroyed, sequenced without loss of identity, and the result of composition is itself a valid future that can be further composed.

This is distinct from:

  • Convergence β€” which implies two things merging into one fixed outcome
  • Futures studies β€” which models scenarios qualitatively, not algebraically
  • Future<T> in async programming β€” which operates on computations, not paradigms

Core Definition

A Future F is a 4-tuple:

F = (Sβ‚€, Ο„, S₁, Ξ¦)
Symbol Meaning
Sβ‚€ Current paradigmatic state β€” existing assumptions, constraints, infrastructure
Ο„ Trajectory β€” the mechanism of change
S₁ Reachable paradigmatic state
Ξ¦ Affordance set β€” what new compositions become possible from S₁

Operators

Four primitive operations over futures:

A >>= B    sequential    A's S₁ becomes B's Sβ‚€
A βŠ— B      parallel      both proceed; outputs combined
A | B      fork          branch point β€” one path realized
A βŠ• B      merge         two independent futures reconverge

Laws Under Investigation

Identity

F >>= Id = F
Id >>= F = F

Where Id is the null future β€” a transition that changes nothing.

Associativity

(A >>= B) >>= C  =  A >>= (B >>= C)

Status: open. Likely breaks under path-dependent Ο„ β€” the critical question of the theory.

Commutativity of parallel

A βŠ— B β‰  B βŠ— A   (in general)

Non-commutativity is meaningful: the order in which paradigms develop produces different affordance structures.

Closure

βˆ€ A, B ∈ F :  A >>= B ∈ F

Any composition of valid futures is itself a valid future.


Structural Targets

Structure Condition Status
Category Identity + associativity + closure Plausible
Monoid Category + single object Under investigation
Monad Monoid + return + associativity Requires Phase 2
Fibered category Path-dependent Ο„ If associativity breaks

Relationship to Existing Formalisms

Formalism Role in this theory
Category theory Backbone β€” objects, morphisms, composition
Process algebra (CSP/CCS) Formal semantics for βŠ—, `
Modal / temporal logic (CTL*) Grounding S₁ as a distribution over reachable states
Coalgebra State-transition structure per future
Affordance theory Formal definition of Ξ¦
Dependent type theory Ξ¦ as a dependent type over S₁

Formalization Roadmap

Phase 0   Define F precisely β€” prove identity law
Phase 1   Prove closure under >>= and βŠ—
Phase 2   Settle associativity
          β”œβ”€β”€ holds     β†’ Category, pursue monad
          └── breaks    β†’ Fibered category / indexed morphisms
Phase 3   Probabilistic extension β€” Kleisli / Markov kernels
Phase 4   Formalize Ξ¦ as dependent type / effect system
Phase 5   Mechanized proof β€” Lean 4 or Agda

Publication Track

Foundational audit (this repo)
       ↓
Positioning paper
- Propose F = (Sβ‚€, Ο„, S₁, Ξ¦)
- Map to existing formalisms
- State open problems explicitly
- 8–12 pages
       ↓
Zenodo preprint                     ← doi.org/10.5281/zenodo.19433811
       ↓
arXiv submission (math.CT / cs.LO)  ← pending endorsement
       ↓
Peer-reviewed submission
       ↓
Full formalization paper (Phase 2–5 complete)

Foundational Audit

Before the positioning paper, a structured audit of the five adjacent literatures:

Domain Source
1. Category theory applied to complex systems arXiv math.CT, cs.LO
2. Formal models of paradigm change PhilPapers, Google Scholar
3. Process algebra and concurrent systems ACM DL, arXiv cs.LO
4. Affordance theory β€” formal treatments Google Scholar, PsycINFO
5. Futures studies formalization Google Scholar, arXiv cs.AI

Each domain file produces:

  • A list of relevant papers with relevance notes
  • A one-paragraph synthesis of what exists
  • A one-sentence gap statement
  • A confidence level: gap confirmed / partial / unclear

The gap-summary.md aggregates all five into the composite gap statement that opens the positioning paper.

Running the Audit Search

uv run search.py all     # search all 5 domains
uv run search.py 3       # single domain

Refinement Passes

uv run refinement.py list          # show defined refinements per domain
uv run refinement.py 4 --seeds    # add manual seeds only
uv run refinement.py 4 --queries  # run refined queries only
uv run refinement.py 4            # both

Results are written to audit/domain-N-*.md. Synthesis sections are filled manually after reading.


Repo Structure

composable-future/
β”œβ”€β”€ README.md
β”œβ”€β”€ TODO.md              # 5-phase development roadmap
β”œβ”€β”€ CONTRIBUTING.md       # How to contribute (audit scripts, Lean proofs)
β”œβ”€β”€ search.py          # initial audit search β€” run first
β”œβ”€β”€ refinement.py      # merge refined queries + manual seeds
β”œβ”€β”€ audit/
β”‚   β”œβ”€β”€ domain-1-category-theory.md
β”‚   β”œβ”€β”€ domain-2-paradigm-change.md
β”‚   β”œβ”€β”€ domain-3-process-algebra.md
β”‚   β”œβ”€β”€ domain-4-affordance-theory.md
β”‚   β”œβ”€β”€ domain-5-futures-formalization.md
β”‚   └── gap-summary.md
β”œβ”€β”€ lean/               # Lean 4 formalization (Phase 1+)
β”‚   β”œβ”€β”€ lakefile.lean   # Lean 4 project configuration
β”‚   β”œβ”€β”€ ComposableFuture.lean
β”‚   └── Core/
β”‚       β”œβ”€β”€ Future.lean      # Basic type definitions
β”‚       β”œβ”€β”€ Operators.lean   # >>=, βŠ—, |, βŠ• operators
β”‚       β”œβ”€β”€ Laws.lean        # Identity, closure, associativity
β”‚       └── Probabilistic.lean # Kleisli extension
└── proofs/             # Informal proof attempts and notes
    β”œβ”€β”€ notes.md            # Running proof attempts
    β”œβ”€β”€ stateless-case.md    # Restricted domain analysis
    └── attempt-associativity.md # Failed attempts and insights

How to Contribute

Audit Contributions

  • ⚠️ Phase 0 audit synthesis is COMPLETE - do not run audit scripts
  • Read and extend existing synthesis in audit/domain-N-*.md files
  • Add new domains or literature updates in separate directories
  • See CONTRIBUTING.md for detailed guidelines on preserving completed work

Lean Formalization

Install elan (Lean toolchain manager):

Platform Command
Linux / macOS curl -sSf https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh | sh
Windows Download installer from https://github.com/leanprover/elan/releases

After install, restart your terminal (or source ~/.bashrc on Linux) so lake is in PATH.

  • Build project: cd lean && lake build
  • Fill sorry proofs in Core/Laws.lean
  • Add proof attempts to proofs/notes.md
  • Follow naming conventions and sorry policy in CONTRIBUTING.md

Proof Attempts

  • Document dead ends in proofs/attempt-associativity.md
  • Explore restricted cases in proofs/stateless-case.md
  • Test conjectures and provide counterexamples

Current State

Domain Papers Refinement run Synthesis filled
1 26 β€” β€”
2 37 β€” β€”
3 32 β€” β€”
4 28 βœ“ seeds β€”
5 43 β€” β€”

What's Next

The tooling is complete. The work is now manual β€” reading in priority order and filling synthesis sections.

Start with these seven in sequence, everything else waits:

1. D5 #35  Credible Futures (Iacona & Iaquinto, 2021)
2. D1 #2   Composable Uncertainty in SMCs (Furter et al., 2025)
3. D2 #30  Formalized Conceptual Spaces (Bechberger & KΓΌhnberger, 2018)
4. D3 #24  Span(Graph) process algebra (Katis et al., 2009)
5. D2 #13  Are Programming Paradigms Paradigms? (Kiasari, 2025)
6. D1 #25  Semantic marriage of monads and effects (Orchard et al., 2014)
7. D4 #25  Chemero (2003) β€” manual seed, no network needed

Open Problems

  1. Does associativity hold for >>= when Ο„ is path-dependent?
  2. Is Ξ¦ well-defined before S₁ is realized?
  3. What is the correct equivalence relation between futures β€” bisimulation?
  4. Does composition of affordance sets Φ ∘ Φ' hold?
  5. Are all paradigmatic futures reachable by finite composition (completeness)?

Citation

@misc{sucandra2026composable,
  author    = {Sucandra, I Made Agus Kresna},
  title     = {Composable Future: Toward an Algebraic Theory 
               of Paradigmatic Transitions},
  year      = {2026},
  month     = {April},
  version   = {0.1},
  doi       = {10.5281/zenodo.19433811},
  url       = {https://doi.org/10.5281/zenodo.19433811},
  note      = {Preprint. Zenodo.}
}

License

Theory and audit materials: CC BY 4.0
Code: MIT

About

A formal theory of paradigmatic futures as composable algebraic structures.

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors