Issue #1656: A found rule over the elements of a list field inside a list’s elements proves their reads

Open and answer this issue on GitHub.

blocked, solver · opened 2026-11-15 · updated 2026-11-22 · 0 comments

Split from #1629 „sv_simplex: pub list fields withhold D22 bounds, SvRow cols/ks relation not found“ (supervisor, 2026-11-15), item 1. The builder made SvSimplex’s tableau fields private (pushed). That proves none of the 11 sites, because each one reads an element of a list field of a list’s element (rows[*].cols).

Found

ADR-369 D4 may find a rule over a type’s private fields. The rule these sites need is about every element of a list inside every element of another list: all r in rows: all c in r.cols: 0 <= c < width, plus values.len() == width. A found rule over the elements of a list is a claim of the all form that #798 „Facts about data, steps 2-3: a rule over every element the prover reads (xs.all(|x| ...)), and std’s sorted contracts (decision)“ decided, and its build is deferred (owner, 2026-11-15). So this waits for that build.

Probe

struct Row {
	cols: Vec[i64],
}

pub struct Table {
	width: i64,
	rows: Vec[Row],
	values: Vec[i64],
}

pub fn table(width: i64) -> Table {
	let mut values: Vec[i64] = []
	let mut i = 0
	while i < width { values.push(0); i += 1 }
	return Table { width: width, rows: [], values: values }
}

impl Table {
	pub fn add(mut self, col: i64) {
		if col < 0 || col >= self.width { return }
		self.rows.push(Row { cols: [col] })
	}

	pub fn sum(self) -> i64 {
		let mut s = 0
		for r in self.rows {
			for c in r.cols { s = s + self.values[c] }
		}
		return s
	}
}

fn main() {}

nikaia check --bounds gives today: self.values[c] checked: a value read out of a list, of which the walk knows no fact (#797, #798).

Specified result: self.values[c] is proved. Every construction and method keeps the cols elements of every row in 0..<width, and values.len() == width (ADR-369 D3/D4).

To build

Done when

The probe’s index is proved and the 11 sites are measured in the report.

Blocked by #798 „Facts about data, steps 2-3: a rule over every element the prover reads (xs.all(|x| ...)), and std’s sorted contracts (decision)“.


Generated by Claude Code

Back to Open Issues