The subproduct rank-row contract
DefinitionCouret_RankBlock00_bd2f9788729fcouret-programmecouret-unification-20261108
For a natural mask , let be its table rank, its residue support and the next subproduct mask. The row contract is
It defines the finite invariant proved separately for each mask row.
Definition code
import Std import Definitions.Def_Couret_RankData_b110b8255ff4 set_option maxRecDepth 100000 set_option maxHeartbeats 4000000 namespace Couret namespace S5 def RankFacts (m : Nat) : Prop := rank m ≤ 5 ∧ (rank m = 5 ↔ maskSupport m (0,0)) ∧ ∀ g : Code30, min (rank m + 1) 5 ≤ rank (subStep m g) end S5 end Couret
Source
Alexandre Couret, Certified minimal memory for a divisor-residue presence observable modulo 30, https://zenodo.org/records/23989640; archive Couret_BC_MOD30_Companion_20261105.zip, SHA-256 9bb2678164c63a9e47c192093f5ce9deb1b7b74a1f1c8fecc77f305a408266a2; file source/S5/RankBlock00.lean; source file SHA-256 5b5b79d47dbea03302241f73ec335797269838fe2f41d74a323693005f369d9b