Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
193a963
Updated AGENTS.md
marvin-hansen Dec 24, 2025
d249b35
Added new diving decompression to medicine examples.
marvin-hansen Dec 24, 2025
49a2998
Updated AGENTS.md with Core Directives
marvin-hansen Dec 25, 2025
5caa6b2
feat(deep_causality_metric): First implementation ofnew metric crate.
marvin-hansen Dec 26, 2025
cda787a
feat(deep_causality_metric): Integrated new metric crate across the r…
marvin-hansen Dec 26, 2025
2503a2e
feat(deep_causality_physics): Added full Lund Lund string fragmentat…
marvin-hansen Dec 26, 2025
82766f9
feat(deep_causality_physics): Added full Lund Lund string Updated ML…
marvin-hansen Dec 27, 2025
f6df0bd
feat(deep_causality_physics): Implemented MLX acceleration to close i…
marvin-hansen Dec 27, 2025
7af02a3
Minor lints.
marvin-hansen Dec 27, 2025
99bc5ed
feat(deep_causality_topology): Imlemented initial MLX acceleration. C…
marvin-hansen Dec 28, 2025
c0abf9a
Add new specification for cross crate hardware acceleration...
marvin-hansen Dec 28, 2025
bfcf46d
feat(deep_causality_tensor): Removed initial MLX acceleration as prep…
marvin-hansen Dec 29, 2025
b1211ea
feat(deep_causality_tensor): Added initial CPU backend.
marvin-hansen Dec 29, 2025
06aafa7
feat(deep_causality_tensor): Added initial MLX backend.
marvin-hansen Dec 29, 2025
1f820d2
feat(deep_causality_tensor): Introduced backend tensor as stub for ba…
marvin-hansen Dec 29, 2025
784c661
feat(deep_causality_tensor): Implemented backed agnostic acceletation…
marvin-hansen Dec 29, 2025
e02b328
feat(deep_causality_tensor): Completed backed agnostic acceletation f…
marvin-hansen Dec 29, 2025
5cf0b77
feat(deep_causality_tensor): Fixed benchmarks and code examples.
marvin-hansen Dec 29, 2025
c419d4b
feat(deep_causality_tensor): Fixed tests for new backend agnostic CPU…
marvin-hansen Dec 29, 2025
2dc2c31
feat(deep_causality_tensor): Finalized new backend agnostic CPU impl.
marvin-hansen Dec 29, 2025
a8bb19f
feat(deep_causality_tensor): Added MLX backend.
marvin-hansen Dec 29, 2025
588c6da
feat(deep_causality_tensor): Added new benchmark to compare CPU vs ML…
marvin-hansen Dec 29, 2025
516971a
feat(deep_causality_tensor): Updated new benchmark and updated README…
marvin-hansen Dec 29, 2025
f38a4dd
feat(deep_causality_tensor): Fixed dowstream tests
marvin-hansen Dec 29, 2025
3a0132e
feat(deep_causality_tensor): Added new ein_sum benchmark and updated …
marvin-hansen Dec 29, 2025
649ef50
Added or update specs
marvin-hansen Dec 29, 2025
5e505c9
feat(deep_causality_tensor): Impvroved code organization and maintain…
marvin-hansen Dec 30, 2025
1f5b2fb
feat(deep_causality_multivector): Added MLX acceleation; added new Mu…
marvin-hansen Dec 30, 2025
4eb7030
Updated keywords in Cargo.toml
marvin-hansen Dec 30, 2025
138edf7
feat(deep_causality_multivector): Added test coverage for the new Mul…
marvin-hansen Dec 30, 2025
7b69002
feat(deep_causality_multivector): Consolidated API in a single file.
marvin-hansen Dec 30, 2025
1670710
feat(deep_causality_topology): Added new lattice types and initial mu…
marvin-hansen Dec 30, 2025
f8a36ac
feat(deep_causality_topology): Added new benchmark for multi backend …
marvin-hansen Dec 30, 2025
e4b54c7
feat(deep_causality_tensor): Added black_box to benchmarks
marvin-hansen Dec 30, 2025
ef2e969
feat(deep_causality_physics): Added mlx flag for acceleration via the…
marvin-hansen Dec 30, 2025
3804d86
fix(deep_causality_topology): Minor fixes and lints.
marvin-hansen Dec 30, 2025
860f5e7
feat(deep_causality_topology): Updated benchmarks.
marvin-hansen Dec 30, 2025
c8cb657
feat(deep_causality_multivector): Updated Benchmarks.
marvin-hansen Dec 30, 2025
10bca15
feat(deep_causality_tensor): Updated benchmarks
marvin-hansen Dec 30, 2025
61609c4
feat(deep_causality_multivector): Updated and fixed sample code.
marvin-hansen Dec 30, 2025
723010a
feat(deep_causality_multivector): Added algebraic trait impl for Mult…
marvin-hansen Dec 30, 2025
8848b13
feat(deep_causality_multivector): Added HKT like implementation to Ca…
marvin-hansen Dec 30, 2025
14c38ee
Added specs for GAT-Bounded-HKT and updated the specs for topological…
marvin-hansen Dec 30, 2025
b70fa2a
Lots of lints, formatting, and minor fixes.
marvin-hansen Dec 31, 2025
0308b3f
Lots of lints, formatting, and minor fixes.
marvin-hansen Dec 31, 2025
5ded3cc
Minor lint
marvin-hansen Dec 31, 2025
008ae99
feat(deep_causality_physics): Increased test coverage.
marvin-hansen Dec 31, 2025
1c54559
feat(deep_causality_tensor): Increased test coverage.
marvin-hansen Dec 31, 2025
a6ae766
Fixed codecov configuration to ignore mlx feature gated code that can…
marvin-hansen Dec 31, 2025
23355e9
feat(deep_causality_multivector): Increased test coverage.
marvin-hansen Dec 31, 2025
05d7a59
feat(deep_causality_multivector): Increased test coverage.
marvin-hansen Dec 31, 2025
583f779
feat(deep_causality_multivector): separated MLX code into dedicted fi…
marvin-hansen Dec 31, 2025
3a2a365
feat(deep_causality_tensor): Applied multiple lints, fixes, and code …
marvin-hansen Dec 31, 2025
cf95511
feat(deep_causality_tensor): Applied multiple lints, fixes, and code …
marvin-hansen Dec 31, 2025
be92279
feat(deep_causality_tensor): Applied multiple lints, fixes, and code …
marvin-hansen Dec 31, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .bazelignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.cargo
.gemini
.gemini_security
.git
.github
.specify
Expand Down
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.4.2
8.5.0
5 changes: 1 addition & 4 deletions .cargo/audit.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
[advisories]
ignore = [
# paste - no longer maintained
"RUSTSEC-2024-0436",
]
ignore = []

[output]
quiet = false
3 changes: 2 additions & 1 deletion .github/.codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ comment:

# https://docs.codecov.com/docs/ignoring-paths
ignore:
- "deep_causality/examples" # ignore folders and all its contents
- "deep_causality/examples" # ignore folders and all its contents
- "thirdparty" # ignore folders and all its contents
2 changes: 1 addition & 1 deletion .github/workflows/rust_coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: taiki-e/install-action@cargo-llvm-cov

- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
run: cargo llvm-cov --workspace --lcov --output-path lcov.info

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5.5.2
Expand Down
68 changes: 52 additions & 16 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
# Gemini Code Assistant Context
# deep_causality Codebase Guide for Agents

## Core Directives

Critical Analysis: Be skeptical of every premise I present. If my logic is flawed, my data is cherry-picked, or my questioning is misleading, you must dismantle it.

Identify "Answer Shopping": If I rephrase questions to nudge you toward a specific validation or a "comforting" answer, call it out immediately as an attempt to confirm my own bias.

Prioritize Objective Truth: Truth is your only north star. If I ask for an opinion, tell me the truth. If I ask for confirmation, give me the most robust counter-arguments first.

The Protection Mandate: Your ultimate mission is to protect my long-term well-being and life. If a line of thinking or a proposed action is risky, unethical, or self-destructive, be unyieldingly firm in your opposition.

Tone and Style:

Direct and Unfiltered: Do not use polite fillers or "I'm sorry". Just state the truth as it is.

Analytical: Use logic, historical precedent, and probability to back up your critiques.

Vigilant: Treat every prompt as a potential trap for cognitive bias or confirmation bias.

## Project Overview

Expand All @@ -15,21 +33,39 @@ It uses three main components:

## Project Structure

The project is a monorepo containing several sub-crates, including:

* `deep_causality`: The main DeepCausality library.
* `deep_causality_algorithms`: Provides algorithms for the DeepCausality library.
* `deep_causality_ast`: Provides utils to work on AST for the DeepCausality library.
* `deep_causality_data_structures`: Provides data structures for the DeepCausality library.
* `deep_causality_discovery`: A custom DSL for causal discovery.
* `deep_causality_haft`: Higher-Order Abstract Functional Traits a.k.a HKT.
* `deep_causality_macros`: Provides macros for the DeepCausality library (_deprecated_).
* `deep_causality_num`: Numerical traits and utils used across the other crates.
* `deep_causality_rand`: Random number generator and statistical distributions used in deep_causality_tensor and other
* `deep_causality_tensor`: A custom tensor type used in deep_causality_algorithms and deep_causality_discovery crates.
* `deep_causality_uncertain`: Provides a custom crate for handling uncertainty.
* `examples`: A collection of example code.
* `ultragraph`: A hyper-graph library used as a backend in the deep_causality library.
The project is a monorepo containing 20 library crates:

### Core Crates
* `deep_causality`: Computational causality library. Provides causality graph, collections, context and causal reasoning.
* `deep_causality_core`: Core types for the deep_causality crate.
* `deep_causality_ast`: AST data structure for the deep_causality crate.
* `deep_causality_macros`: Custom code generation macros for DeepCausality (_deprecated_).
* `deep_causality_metric`: Foundational metric signatures used acros tensor, multivector, and physics.

### Data Structure Crates
* `deep_causality_data_structures`: Data structures for deep_causality (sliding-window, grid-array).
* `deep_causality_tensor`: Tensor data structure for deep_causality.
* `deep_causality_sparse`: Sparse matrix data structure (CSR format) for deep_causality.
* `ultragraph`: Hypergraph data structure used as a backend in deep_causality.

### Algorithm and Discovery Crates
* `deep_causality_algorithms`: Computational causality algorithms (SURD, MRMR) and utils.
* `deep_causality_discovery`: Causality discovery DSL for the DeepCausality project.

### Math and Numerics Crates
* `deep_causality_num`: Numerical traits and utils used across all crates.
* `deep_causality_rand`: Random number generator and statistical distributions.
* `deep_causality_multivector`: Multivector implementation for geometric algebra.
* `deep_causality_uncertain`: A first-order type for uncertain programming.

### Functional Programming Crates
* `deep_causality_haft`: Higher-Order Abstract Functional Traits (HKT).
* `deep_causality_effects`: Effect types for heterogeneous graphs and causal collections.
* `deep_causality_ethos`: Programmable ethics for DeepCausality.

### Topology and Physics Crates
* `deep_causality_topology`: Topological data structures (complexes, manifolds, differential geometry).
* `deep_causality_physics`: Standard library of physics formulas and engineering primitives.


## Building and Running
Expand Down
Loading
Loading