feat: Add Research Lab pack with paralleled math modules

Create comprehensive research-lab pack structure with mathematical
and quantum computing modules from blackroad-prism-console:

Math Modules:
- hilbert_core.py: Hilbert space symbolic reasoning
- collatz/: Distributed Collatz conjecture verification
- linmath/: Linear mathematics C library
- lucidia_math_forge/: Symbolic proof engine
- lucidia_math_lab/: Experimental mathematics

Quantum Modules:
- lucidia_quantum/: Quantum core
- quantum_engine/: Circuit simulation

Experiments:
- br_math/: Gödel gap, quantum experiments

Includes pack.yaml manifest and comprehensive README.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Alexa Louise
2025-11-28 23:49:03 -06:00
parent 5830335df9
commit 0108860bff
71 changed files with 3024 additions and 0 deletions

View File

@@ -0,0 +1 @@
UNAVAILABLE

View File

@@ -0,0 +1,3 @@
BasedOnStyle: LLVM
IndentWidth: 2
ColumnLimit: 100

View File

@@ -0,0 +1 @@
Checks: 'bugprone-*,clang-analyzer-*,readability-*,portability-*,-readability-magic-numbers'

View File

@@ -0,0 +1,7 @@
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2

View File

@@ -0,0 +1,23 @@
name: ci
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
cc: [gcc, clang]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Configure
run: cmake -S . -B build -DBUILD_TESTING=ON
- name: Build
run: cmake --build build --config Release -j 2
- name: Test
run: ctest --test-dir build --output-on-failure
cppcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: deep5050/cppcheck-action@v6
with: { enable: "all", std: "c11", inconclusive: true }

View File

@@ -0,0 +1,10 @@
name: codeql
on:
push: {branches: ["**"]}
pull_request:
schedule: [{cron: "0 6 * * 1"}]
jobs:
analyze:
uses: github/codeql-action/codeql-config@v3
with:
languages: c-cpp

View File

@@ -0,0 +1,11 @@
name: sbom
on: [push, workflow_dispatch]
jobs:
syft:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: anchore/sbom-action@v0.17.5
with:
format: spdx-json
artifact-name: sbom.spdx.json

View File

@@ -0,0 +1,7 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks: [ {id: trailing-whitespace}, {id: end-of-file-fixer} ]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.8
hooks: [ {id: clang-format} ]

View File

@@ -0,0 +1,19 @@
cmake_minimum_required(VERSION 3.15)
project(linmath-header C)
add_library(linmath INTERFACE)
target_include_directories(linmath INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
$<INSTALL_INTERFACE:include>)
include(CTest)
if (BUILD_TESTING)
add_executable(linmath_test tests/linmath_test.c)
target_include_directories(linmath_test PRIVATE include tests)
add_test(NAME linmath_test COMMAND linmath_test)
endif()
install(DIRECTORY include/ DESTINATION include)
install(TARGETS linmath EXPORT linmathTargets)
install(EXPORT linmathTargets NAMESPACE linmath:: DESTINATION lib/cmake/linmath)
include(CMakePackageConfigHelpers)
write_basic_package_version_file("${CMAKE_CURRENT_BINARY_DIR}/linmathConfigVersion.cmake"
VERSION 0.1.0 COMPATIBILITY AnyNewerVersion)
configure_file(packaging/pkgconfig/linmath.pc.in linmath.pc @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/linmath.pc" DESTINATION lib/pkgconfig)

View File

@@ -0,0 +1,6 @@
PROJECT_NAME = "linmath"
PROJECT_NUMBER = "0.1.0"
INPUT = include
RECURSIVE = NO
GENERATE_HTML = YES
QUIET = YES

View File

@@ -0,0 +1,13 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.

View File

@@ -0,0 +1,3 @@
This repository is a mirror of datenwolf/linmath.h pinned to a specific commit.
BlackRoad added build tooling, CI, packaging, docs, and policies. Original code:
(c) upstream authors, license: WTFPL (see LICENCE).

View File

@@ -0,0 +1,10 @@
# linmath
Placeholder mirror of datenwolf/linmath.h.
## BlackRoad Mirror
- Pinned to upstream SHA: UNAVAILABLE
- Added CMake/Meson/pkg-config, CI, tests, SBOM, Conan/vcpkg, and docs.
_Last updated on 2025-09-11_

View File

@@ -0,0 +1,3 @@
# Security Policy
This is a header-only library mirrored from upstream (see pin in .blackroad/pin.sha).
Please open security reports privately via GitHub Security advisories.

View File

@@ -0,0 +1,4 @@
#include "linmath.h"
int main(void) {
return 0;
}

View File

@@ -0,0 +1,19 @@
/*
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
*/
#ifndef LINMATH_H
#define LINMATH_H
/* Placeholder for upstream linmath.h; upstream source unavailable in this environment. */
#endif /* LINMATH_H */

View File

@@ -0,0 +1,4 @@
project('linmath', 'c', version: '0.1.0')
inc = include_directories('include')
linmath_dep = declare_dependency(include_directories: inc)
test('linmath_test', executable('linmath_test', 'tests/linmath_test.c', include_directories: inc))

View File

@@ -0,0 +1,13 @@
from conan import ConanFile
class Linmath(ConanFile):
name = "linmath"
version = "0.1.0"
license = "WTFPL"
description = "Header-only linear math for graphics"
url = "https://github.com/blackboxprogramming/linmath.h"
exports_sources = "include/*"
no_copy_source = True
def package(self):
self.copy("*.h", dst="include", src="include")
def package_info(self):
self.cpp_info.includedirs = ["include"]

View File

@@ -0,0 +1,7 @@
prefix=/usr
exec_prefix=${prefix}
includedir=${prefix}/include
Name: linmath
Description: Header-only linear math for graphics (vec3/vec4/mat4x4/quat)
Version: 0.1.0
Cflags: -I${includedir}

View File

@@ -0,0 +1,5 @@
#include "linmath.h"
int main(void) {
/* Placeholder test: upstream test unavailable */
return 0;
}

View File

@@ -0,0 +1,6 @@
{
"name": "linmath",
"version-string": "0.1.0",
"description": "Header-only linear algebra for graphics",
"homepage": "https://github.com/blackboxprogramming/linmath.h"
}