Skip to main content

GIFT mathematical core - Formally verified constants (Lean 4 + Coq)

Project description

GIFT Core

Formal Verification Python Tests Publish to PyPI PyPI Lean 4 Coq

Formally verified mathematical relations from the GIFT (Geometric Information Field Theory) framework. All relations are proven in both Lean 4 and Coq.

What is this?

This repository contains 165+ exact mathematical identities derived from topological invariants of E8 × E8 gauge theory on G2 holonomy manifolds. Each relation is:

  • An exact rational or integer value (no fitting or approximation)
  • Independently verified in two proof assistants
  • Available as Python constants via giftpy

Note: The physical interpretation of these relations remains conjectural. This package proves mathematical identities only.

Installation

pip install giftpy

Quick Start

from gift_core import *

# Access certified constants
print(SIN2_THETA_W)   # Fraction(3, 13)
print(KAPPA_T)        # Fraction(1, 61)
print(GAMMA_GIFT)     # Fraction(511, 884)

# List all proven relations
for r in PROVEN_RELATIONS:
    print(f"{r.symbol} = {r.value}")

What's New in v3.2

Octonion-Based Algebraic Foundations: GIFT constants are now derived from octonion structure, not arbitrary inputs!

The algebraic chain ℍ → 𝕆 → G₂ → GIFT is fully formalized:

-- Octonions have 7 imaginary units
imaginary_count = 7

-- G₂ = Aut(𝕆) has dimension 2 × 7 = 14
dim_G2 = 2 * imaginary_count

-- b₂ = C(7,2) = 21 (pairs of imaginary units)
b2 = Nat.choose imaginary_count 2

-- b₃ = b₂ + fund(E₇) = 21 + 56 = 77
b3 = b2 + fund_E7

-- Physical predictions DERIVE from this chain:
-- sin²θ_W = 21/91 = 3/13
-- Q_Koide = 14/21 = 2/3
-- N_gen = 3

New modules in Lean/GIFT/Algebraic/:

  • Quaternions.lean: K₄ ↔ ℍ correspondence
  • Octonions.lean: 7 imaginary units, Fano plane structure
  • CayleyDickson.lean: Doubling construction ℝ → ℂ → ℍ → 𝕆
  • G2.lean: Aut(𝕆) with dim = 14
  • BettiNumbers.lean: b₂, b₃, H* from octonion pairs
  • GIFTConstants.lean: Physical predictions from algebra

Building Proofs

# Lean 4
cd Lean && lake build

# Coq
cd COQ && make

Documentation

License

MIT


*GIFT Core v3.2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

giftpy-3.1.0.tar.gz (222.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

giftpy-3.1.0-py3-none-any.whl (105.6 kB view details)

Uploaded Python 3

File details

Details for the file giftpy-3.1.0.tar.gz.

File metadata

  • Download URL: giftpy-3.1.0.tar.gz
  • Upload date:
  • Size: 222.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for giftpy-3.1.0.tar.gz
Algorithm Hash digest
SHA256 3079083d1e4cb2c55fbff35853ac447c1108277fff88c59fefebcf3b114740cf
MD5 4a56352dbbca6b36fbdf9d920b4471f1
BLAKE2b-256 346b8c037935124ee994b4e2f41bb1173f56fc85ffbca74b8e66fa3dbafe430d

See more details on using hashes here.

Provenance

The following attestation bundles were made for giftpy-3.1.0.tar.gz:

Publisher: publish.yml on gift-framework/core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file giftpy-3.1.0-py3-none-any.whl.

File metadata

  • Download URL: giftpy-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 105.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for giftpy-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 04b328741b988b57d72cecddad5f574d326c34d10f6263742598060bb2408daa
MD5 bc5363d88388e31c18f1878bf8376550
BLAKE2b-256 9abea4164330b221f7a836f79339f234c6aca13023678c37bc0607fb1c81b7b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for giftpy-3.1.0-py3-none-any.whl:

Publisher: publish.yml on gift-framework/core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page