[WIP] feat: add Mathlib.Biology.Longevity.PhenoAge formal contract (K-Lean Phase B)#40598
Conversation
Welcome new contributor!Thank you for contributing to Mathlib! If you haven't done so already, please review our contribution guidelines, as well as the style guide and naming conventions. In particular, we kindly remind contributors that we have guidelines regarding the use of AI when making pull requests. We use a review queue to manage reviews. If your PR does not appear there, it is probably because it is not successfully building (i.e., it doesn't have a green checkmark), has the If you haven't already done so, please come to https://leanprover.zulipchat.com/, introduce yourself, and mention your new PR. Thank you again for joining our community. |
PR summary 7a11bff36fImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
Summary
Add
Mathlib.Biology.Longevitynamespace with formal Lean 4 contracts for biological age algorithms.Motivation
The Kenosian Protocol Platform (KPP) provides machine-verifiable audits for bioinformatics algorithm computations. K-Lean Phase A (live) verifies JSON Schema I/O contracts via REST API. Phase B (this PR) provides Lean 4 formal theorems so any researcher can verify locally without trusting a server.
What this adds
Mathlib/Biology/Longevity/Basic.lean— common types (ValidAge,ageAcceleration)Mathlib/Biology/Longevity/PhenoAge.lean— formal contract for PhenoAge (Levine et al. 2018, Aging)Theorems
mortalityScore_pos: M > 0 for any linear score xbmortalityScore_lt_one: M < 1 for any xbphenoAge_wellDefined: PhenoAge is a well-defined real number for any xbReference
Levine ME et al. "An epigenetic biomarker of aging." Aging 2018;10(4):573–591.
PLOS Medicine correction 2019 (divisor 0.090165).
K-Lean integration
Phase A API:
POST https://kpp.kenosian.com/api/v1/verify/kleanContact: peter@kenosian.com
This is a draft PR. Proof completeness and Mathlib style compliance are work in progress.