In-Place Dense Kernel Correctness #
The in-place homogeneous-kernel backend (KernelInPlace.lean) performs the same
arithmetic, in the same order, as the copying backend (RowOps.lean/Kernel.lean),
so it returns the same witness. This file proves that equivalence, culminating in
homogeneousWitnessInPlace_eq, which lets the certified Guruswami-Sudan backend run
the in-place implementation while reusing every existing correctness theorem.
The in-place scale of a row produces the same backing array as the copying scale.
The in-place add-scaled row produces the same backing array as the copying version, when the target and source rows are distinct.
The in-place row swap produces the same backing array as the copying swap.
The in-place pivot search agrees with the copying one.
The in-place normalize-and-eliminate step produces the same backing array.
The in-place reduction loop tracks the copying reduction loop, returning the same reduced backing array and the same pivot columns.
The in-place RREF equals the copying RREF.
The in-place homogeneous-kernel witness equals the copying witness.