ci: make CI genuinely green — rust-ci toolchain pin + canonical Julia ABI-FFI gate + fmt/clippy#46
Merged
Merged
Conversation
Add the flagship Layer-2 semantic proof for julianiser. Models a shared
arithmetic + array-indexing expression AST with two evaluators: evalSrc
(Python/R, 0-based indexing) and evalJulia (translated Julia, 1-based
indexing). Proves the headline correctness property:
translatePreserves : (env) -> (e) ->
evalSrc env e = evalJulia env (translate e)
as a genuine propositional equality by structural induction, with the
index case discharged by the 0-to-1 re-basing round-trip lemma
(juliaRoundTrip), mirroring IndexRemapCorrect in Types.idr.
Includes a sound certifier (certifyEquiv/certifyEquivSound), a positive
control (sampleAgrees, fully evaluated 10*2+30=50), and a negative
control: a deliberately unshifted "buggy" Julia evaluator together with
buggyDivergesWitness proving it genuinely diverges (30 /= 20). The
property is non-vacuous: an adversarial Refl claiming the buggy
translation preserves results is rejected by idris2 (Mismatch 20 vs 30).
No believe_me/postulate/assert_total. Builds clean, zero warnings.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A6PSzJWpRxtzGDjUCEh7Mx
…ss checker Raises the julianiser Idris2 ABI from Layer 2 to Layer 3 with a new Julianiser.ABI.Invariants module built over the existing Semantics model (no datatypes redefined). Proves three deeper, distinct properties: - Compositionality: translate is a homomorphism over syntactic linking (translateHom) and correctness is closed under composition (preserveCompose) — a modular argument, not the Layer-2 induction. - Determinism: evalJulia congruence + pipeline determinism, plus translate injectivity (deterministic, information-preserving codegen). - A second sound+complete Dec checker for faithful (source,julia) pairs (decFaithful + soundness + completeness), with DecEq for JExpr/JuliaIdx. Includes positive controls (composite round-trip via preserveCompose, homomorphism Refl, faithful acceptance) and negative/non-vacuity controls (translate injectivity disequality, checker rejection). %default total, no believe_me/postulate/assert. Clean build, zero warnings; adversarial false-equality check rejected. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A6PSzJWpRxtzGDjUCEh7Mx
Prove the FFI result-code wire encoding is sound for Julianiser: - intToResult decoder + resultRoundTrip: faithful/lossless round-trip - resultToIntInjective: derived from round-trip via cong + justInj - positive controls (decode 0/6/7) and negative non-vacuity controls (distinct codes have distinct ints, machine-checked) Genuine proof only; no believe_me/postulate/etc. %default total, zero warnings. Julianiser has only Result/resultToInt as an FFI enum encoder (no ProofStatus/statusToInt), so clause (c) is vacuous. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A6PSzJWpRxtzGDjUCEh7Mx
Assemble the existing per-layer proofs into one inhabited value `abiContractDischarged : ABISound`, wiring the flagship semantic preservation (Semantics.sampleAgreesGeneric), the Layer-3 invariants (Invariants.compositeAgrees compositionality + translateInjective deterministic codegen), and the Layer-4 FFI seam injectivity (FfiSeam.resultToIntInjective) into a single end-to-end soundness statement. No new domain theorem; genuine composition only. Builds with zero warnings; a false-certificate adversarial probe is rejected. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A6PSzJWpRxtzGDjUCEh7Mx
…ble fix); port ABI-FFI gate Python->Bash (Python is estate-banned); exempt demo Python pipeline input via hypatia:ignore pragma Resolves the standing baseline CI reds (rust-ci toolchain error, governance Language/anti-pattern, governance workflow-lint) without altering the proven ABI. The Bash gate reproduces the former Python gate's verdict verbatim (validated across all -iser repos) and catches the same drift classes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A6PSzJWpRxtzGDjUCEh7Mx
…simiser) in place of the interim Bash port
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Make CI genuinely green. The shared rust-ci pin on
mainpredates standards#439, so the SHA-pinneddtolnay/rust-toolchainstep errors out before the job runs. This bumps the pin so rust-ci actually runs, replaces the estate-banned Python ABI-FFI gate with the canonical Julia gate (matchesverisimiser), and brings the Rust sources to fmt + clippy(-D warnings) clean.Changes
rust-ci-reusable.ymlpind135b05→8dc2bf0(currentstandardsHEAD; includes #439 toolchain fix + #441/#442).scripts/abi-ffi-gate.py(Python banned estate-wide); addscripts/abi-ffi-gate.jl(behaviour-identical Julia port); workflow installs Julia 1.11.5. Matchesverisimiser's canonical gate.examples/data-pipeline/pipeline.pyis the Python pipeline julianiser wraps into Julia — kept, with ahypatia:ignorepragma marking it a demo input fixture (not estate code).cargo fmt+clippy --fixwhere the repo had pre-existing drift, socargo fmt --all -- --checkandcargo clippy --locked --all-targets -- -D warningspass.RSR Quality Checklist
Required
cargo test --locked --all-targets)cargo fmt --all -- --check)cargo clippy --locked --all-targets -- -D warnings).envfiles includedAs Applicable
Testing
Verified locally with the toolchain CI uses (cargo 1.94.1, rustfmt 1.8.0):
cargo fmt --check,clippy -D warnings,cargo check --locked,cargo test --lockedall pass.🤖 Generated with Claude Code
Generated by Claude Code