cd coq
coqc MinimalSIGDemo.vcd lean
# WIP: add Lakefile / dependencies
lake buildThis repository is an evolving minimal demo in Coq and Lean4. Goal: formalize a Collatz-style iterator, gate reachability, and uniqueness of the first hitting time (“gate index”). Expect refactors and file moves.
Contains a small Collatz-style iterator T,gate reachability, and uniqueness of the first hitting time (“gate index”).
The same core definitions are implemented in both assistants to compare proof styles and automation.
- unify naming between Coq and Lean versions
- add lemma:
gate_indexdecreases along orbit (no nontrivial cycles under global reachability) - add CI for both toolchains
coq/— Coq developmentlean/— Lean4 development