Flexible Correct-by-Construction Programming (Logical Methods in Computer Science, 2023)