Download lean/Contractivity.lean from Snapkitty/sovereign-compiler: direct link, hf CLI and curl.
- Browser
- Download file 663 Bytes
-
https://huggingface.co/Snapkitty/sovereign-compiler/resolve/main/lean/Contractivity.lean
- Command line
-
hf download hf://Snapkitty/sovereign-compiler/lean/Contractivity.lean
-
curl -L -o Contractivity.lean https://huggingface.co/Snapkitty/sovereign-compiler/resolve/main/lean/Contractivity.lean
663 Bytes
| -- Contractivity.lean — Contractivity analysis | |
| -- Non-recursive. WORM-sealed. | |
| import Mathlib | |
| /-- Contractivity receipt -/ | |
| structure ContractivityReceipt where | |
| prime_index : Nat | |
| hash : String | |
| timestamp : String | |
| operator : String | |
| /-- Generate a contractivity receipt -/ | |
| def generateReceipt (prime : Nat) (op : String) : ContractivityReceipt := | |
| { | |
| prime_index := prime | |
| hash := s!"sha256:{op}:{prime}" | |
| timestamp := "2026-07-01T00:00:00Z" | |
| operator := op | |
| } | |
| /-- Verify a contractivity receipt -/ | |
| def verifyReceipt (receipt : ContractivityReceipt) : Bool := | |
| receipt.hash.length == 64 && receipt.prime_index >= 2 | |