Stele v1 Interactive Playground

Stele — the language of physical proof

Write cryptographic claims about time, place, and media. Hardware level is part of the type system. Compiles directly to Solidity.

📝 proof.stele
Hit ▶ Run to typecheck your proof
Interpretation uses a demo ProofPackage
Solidity output will appear here
AST will appear here
Cross-statement validation will appear here

Language Reference

Grammar

program     := proof_decl*
proof_decl  := proof Session(string) { stmt* }
stmt        := at_stmt
             | captures_stmt
             | attested_stmt
             | requires_stmt

at_stmt     := at time_claim from source
             | at place_claim from source
time_claim  := Time(unix_ms ± tol ms)
place_claim := Place(lat°N|S, lon°E|W ± tol m)
captures    := captures Video(hash:"…") signed Device("…")
attested    := attested Score(n) by Chip("…") [level Ln]
requires    := requires L0|L1|L2|L3

Hardware Level Rules

ClaimInfersNotes
Time ±>100msL0System clock OK
Time ±≤100msL1GPS-disciplined recommended
Time ±≤1msL2Requires CSAC atomic clock
Place ±≥20mL0Standard GPS
Place ±5–20mL1Chip-attested GPS
Place ±<5mL2RTK GPS required
Device("ha-chip-*")L1Hardware key detected
attested … level L2L2Raises inferred level

Example Programs