Every colour stop lies in the unit interval
NOT A NOVELTY CLAIM. This is a machine-checked formalisation, checked by the Lean 4 kernel and depending on no axiom. It is dated and citable. Prior art, where it exists, is cited below. No discovery is claimed.
A colour stop outside [0, 1] makes addColorStop throw IndexSizeError (HTML Canvas).
Proposition
colourStops.all (fun s => !s.neg && s.n ≤ s.d && 0 < s.d)Proof
By decide +kernel in movie.lean. Checked by the Lean kernel.
- Debit
every_colour_stop_lies_in_the_unit_interval— this theorem- Credit
of_decide_eq_true:∀ {p : Prop} [inst : Decidable p], decide p = true → p— the kernel itself: the statement reduces to true by computation, and the rule that turns that reduction into a proof rests on no axiom
Sources and identifiers
- Lean source · src/pair/lean/proofs/movie.lean
- Typeset paper · src/research/lean-theorems.tex
- Repository deposit · doi:10.5281/zenodo.21787144
- Author · ORCID 0009-0000-7312-9778