DEV Community

Jaypsmall
Jaypsmall

Posted on • Edited on

Research repository on the Theory of Asymmetric Flow, mathematical models, algorithms, and computational simulations.

๐Ÿ”ฌ Theory of Asymmetric Flow

Reference Implementation

La Pekillada

**Asymmetric Flow & Geometric Absorption Algorithm


๐Ÿ“Œ Overview

La Pekillada is the first reference implementation of the Asymmetric Flow & Geometric Absorption Algorithm, developed to study the behavior of the Theory of Asymmetric Flow through computational simulation.

Created and documented by:

@Jaypsmall

Project name:

La Pekillada


๐Ÿง  Theoretical Foundation

This repository is based on the Theory of Asymmetric Flow, a theoretical framework that studies the dynamic redistribution of exposure across multiple independent variables.

The theory proposes that the collective behavior of a multi-variable system should be analyzed as a whole rather than as isolated variables.

The theoretical framework is intentionally independent of any specific implementation, application domain, initial capital, iteration limit, or execution environment. Such constraints belong exclusively to particular algorithms and computational implementations derived from the theory.

The Asymmetric Flow & Geometric Absorption Algorithm provides a mathematical implementation of this theoretical framework.

La Pekillada is the first reference implementation created to experimentally evaluate the theory under controlled simulations.


๐Ÿงฉ Concept

The algorithm is based on a dynamic asymmetric redistribution model.

  • Three independent variables operate simultaneously.
  • The successful variable returns to minimum exposure.
  • The unsuccessful variables increase their exposure progressively.
  • The system studies whether accumulated exposure can be absorbed by future positive events.

The objective is to analyze the behavior of progressive allocation systems under different statistical conditions.


โš™๏ธ Algorithm Logic

The model follows these rules.

Initial State

A = 1
B = 1
C = 1
Enter fullscreen mode Exit fullscreen mode

Each variable starts with the minimum exposure unit.


Event Resolution

When an event occurs:

Winning Variable

The winning variable returns to the minimum value.

Winner = 1
Enter fullscreen mode Exit fullscreen mode

Losing Variables

The losing variables increase.

Loser = Loser ร— 2
Enter fullscreen mode Exit fullscreen mode

Example:

Initial

A = 1
B = 1
C = 1

Event

A wins

New state

A = 1
B = 2
C = 2
Enter fullscreen mode Exit fullscreen mode

๐Ÿ“Š Mathematical Model

The system studies:

  • Exposure accumulation
  • Capital consumption
  • Geometric progression
  • Variance impact
  • Recovery behaviour
  • Maximum risk thresholds

Main variables:

R = Available Resources

E = Exposure Level

V = Variance

T = Number of Iterations
Enter fullscreen mode Exit fullscreen mode

๐Ÿ”ฌ Simulation Environment

The repository works as a mathematical laboratory.

Possible experiments:

  • 100 rounds
  • 1,000 rounds
  • 100,000 rounds
  • Monte Carlo simulations

Metrics evaluated:

โœ… Final balance

โœ… Maximum exposure reached

โœ… Maximum drawdown

โœ… Recovery periods

โœ… System stability


๐Ÿ›ก๏ธ Risk Analysis

This project does not claim guaranteed profitability.

The model studies the point where:

  • Geometric growth exceeds available capital.
  • External limits affect execution.
  • Variance creates extreme scenarios.

Important factors:

  • Starting capital
  • Maximum allowed exposure
  • Number of iterations
  • External constraints

๐Ÿงช Experimental Validation

Validation is performed through:

Monte Carlo Analysis

Thousands of independent simulations can be executed to measure:

  • Probability distribution
  • Average results
  • Extreme events
  • Risk of exhaustion

๐Ÿ“‚ Project Structure

theory-of-asymmetric-flow/

โ”‚
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ AUTHORS.md
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ main.py
โ”œโ”€โ”€ simulator.py
โ”‚
โ”œโ”€โ”€ results/
โ”‚   โ””โ”€โ”€ simulations.csv
โ”‚
โ””โ”€โ”€ docs/
    โ”œโ”€โ”€ THEORY.md
    โ”œโ”€โ”€ THESIS.md
    โ”œโ”€โ”€ MATHEMATICAL_MODEL.md
    โ””โ”€โ”€ SIMULATION_RESULTS.md
Enter fullscreen mode Exit fullscreen mode

๐Ÿš€ Usage

Clone repository:

git clone https://github.com/Jaypsmall/theory-of-asymmetric-flow
Enter fullscreen mode Exit fullscreen mode

Run simulation:

python main.py
Enter fullscreen mode Exit fullscreen mode

Configure parameters:

ROUNDS = 1000
INITIAL_CAPITAL = 10000
INITIAL_UNIT = 1
Enter fullscreen mode Exit fullscreen mode

๐Ÿ”ฎ Future Development

Possible improvements:

  • Real-time visualization
  • Statistical dashboard
  • Monte Carlo engine
  • Risk heatmaps
  • Probability analysis
  • Machine learning pattern detection

๐Ÿ“š Documentation

  • ๐Ÿ“– [Theory of Asymmetric Flow]

https://github.com/Jaypsmall/theory-of-asymmetric-flow/blob/main/docs/THEORY.md

  • ๐Ÿ“˜ [Complete Thesis]

https://github.com/Jaypsmall/theory-of-asymmetric-flow/blob/main/docs/THESIS.md


๐Ÿ› Repository Architecture

This repository is organized into four conceptual layers.

1. Theory of Asymmetric Flow

The conceptual framework.

2. Asymmetric Flow & Geometric Absorption Algorithm

The mathematical algorithm derived from the theory.

3. La Pekillada

The first reference implementation.

4. Python Simulation

Computational experiments used to evaluate the implementation under controlled conditions.


๐Ÿ“œ Project Information

Theory

Theory of Asymmetric Flow

Reference Algorithm

Asymmetric Flow & Geometric Absorption Algorithm

Reference Implementation

La Pekillada

Creator

@Jaypsmall

Type

Experimental mathematical theory, computational model, and simulation framework.

Status

Research and development.


๐Ÿ“„ License

Copyright ยฉ 2026 Jaypsmall. All Rights Reserved.

This repository contains original theoretical work, mathematical models, algorithms, software implementations, documentation, simulations, and related materials created by the author.

No part of this repository may be copied, reproduced, modified, redistributed, incorporated into another project, or used for commercial purposes without the prior written permission of the author.

For licensing inquiries:

https://github.com/Jaypsmall

See the LICENSE file for the complete license terms.


โš ๏ธ Disclaimer

This repository presents an experimental mathematical framework intended for research, simulation, and educational purposes.

The computational models and implementations are designed to explore theoretical behavior under controlled simulations and should not be interpreted as guarantees of real-world performance.


ยฉ 2026 @Jaypsmall

https://github.com/Jaypsmall/theory-of-asymmetric-flow

Top comments (5)

Collapse
 
algorhymer profile image
sassenheimer

Please fix the urls in the article's markdown under DOCUMENTATION.

I checked out the THESIS.md on GH.
I do not see definitions, algorithms, lemmas, theorems, citations or anything.
As an outsider, who arrived at the repo, I see literally no information.
All I know, based on this article, is that you did a monte carlo slot machine sim in python.

I think, in order to capture what you really wanted to convey, you could improve either the README.md or the THESIS.md.
Add more technical terms, definitions.
Lay down the goals, describe the scope, what it wants to achieve.

If this is LARP, and you are willingly and consciously being tongue-in-cheek - aka this is humor - then I think providing a bit of meat or opening jokes might work, at least for me.
For example: Ciamar a tha thu, a Jon Snow?
You can already tell from miles away that this sentence is most definitely not English at all.
But also it weirdly mentions Jon Snow, a character from a HBO series.
Now... if you combine these findings with my bio, and you put that sentence into google translate and it comes back as gaelic Scottish... I think you'll get where my joke is headed.

Collapse
 
architect_d4d profile image
Jaypsmall

Already change the content of the documents. Thank you but it's no joke.

Collapse
 
algorhymer profile image
sassenheimer

Please consider fixing the urls in this very article itself. They do not contain the authority part (aka host is missing), they seem to contain only the path.

Please consider fixing the latex/katex in the repo's markdowns. (counter example: in the pdf of La Pekillada Tactica Algoritmo, the equation renders.)

I have a sort of eerie feeling that in the Thesis and Mathematical Model markdowns, you wanted to write more, simply it was left out due to either time pressure, language barrier, or any other outside force which I'm not aware of.
I simply think you want to tell more than it is revealed in the English docs.

Complete sidenote: You could play around with mermaid diagrams. Under Github Docs there's a section 'Work with advanced formatting', and there's a 'Create diagrams' portion.

Thread Thread
 
architect_d4d profile image
Jaypsmall

Tha do bheachd aโ€™ cur mo fรฒn dheth. Jajaj

Thread Thread
 
architect_d4d profile image
Jaypsmall

I think you're right. And I don't speak English. And I'm sure that the text is missing some information, or that when it's translated or AI is used to generate the text, it might not be saying what I really think.