dalek-ed25519-verified/verification
saymrwulf 5fade418de scalar layer: Scalar52::add FULLY proven mod l (add_val_spec)
Proofs/ScalarAddSpec.lean, axiom-clean, no sorry:
- add_loop_spec: the 5-limb carry loop unrolled (same skeleton as the
  proven conditional-add-L chain, with b's limbs in place of L's
  constants); per-limb equations r_i + 2^52*g_(i+1) = a_i + b_i + g_i.
- add_val_spec: denote(add a b) = denote a + denote b in ZMod l for
  limb-bounded canonical inputs. Composition: add_telescope lifts the
  carry equations to scLimbs sum + 2^260*g5 = scVal a + scVal b;
  canonicity (a,b < l < 2^253) forces g5 = 0; the trailing sub(sum, L)
  goes through sub_val_spec with subtrahend L — enabled by weakening
  sub_val_spec's hypothesis from scVal b < l to scVal b <= l (the
  gamma5=1 forcing argument only needs <=), since scVal L = l exactly.
  denote L = 0 in ZMod l closes it.

check-scalar.sh: ScalarAddSpec in manifest + audit (5/5 clean), button
green at the re-budgeted 300s/4096MB caps.

With sub (previous commit): the scalar layer's + and - are both fully
verified against dalek's own extraction. Remaining: x3 fork port,
Montgomery mul/reduce (kernel frontier).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 18:02:38 +02:00
..
gen scalar layer: clean Scalar52 extraction + denotation foundation 2026-07-02 21:13:43 +02:00
Proofs scalar layer: Scalar52::add FULLY proven mod l (add_val_spec) 2026-07-03 18:02:38 +02:00
check-scalar.sh scalar layer: Scalar52::add FULLY proven mod l (add_val_spec) 2026-07-03 18:02:38 +02:00
check.sh coherence pass 2: restore the one-button property, institutionalize audits 2026-07-03 12:54:26 +02:00
CurveField.llbc group-law layer: complete twisted Edwards addition law proven 2026-07-02 14:50:42 +02:00
CurveScalar.llbc scalar layer: clean Scalar52 extraction + denotation foundation 2026-07-02 21:13:43 +02:00
extract-scalar.sh scalar layer: clean Scalar52 extraction + denotation foundation 2026-07-02 21:13:43 +02:00
extract.sh group-law layer: complete twisted Edwards addition law proven 2026-07-02 14:50:42 +02:00
lean-guard re-budget scalar caps post-optimization; guard 3b (headroom clamp) 2026-07-03 17:51:14 +02:00