Repository navigation
Conversation
- Show the direct translation and its termination diagnostic before introducing `Loop_Variant` in a second example. - Remove old toolchain pins and restore compilation and proof buttons. Co-Authored-By: Codex <noreply@openai.com>
- Keep the invalid comparison as a `no_button` illustration, removing the old toolchain pins and compilation/proof requests. - Explain the abstract-state restriction and missing full-stack check. Co-Authored-By: Codex <noreply@openai.com>
- GNAT FSF 16 misses the intended ghost-use diagnostics on record selectors in the original negative examples. Keeping those forms unchanged would obscure the mistakes and require toolchain-specific explanations. - Retain the record model, but isolate missing model maintenance and make the invalid ghost dependency explicit. Explain each change before the code and pair proof failures with corrections, focusing the lesson on proper SPARK use. - Require `Valid_Model` after a push so the contract establishes agreement about length. The original increment-only postcondition could prove even when the real length update was omitted. - Add the corrected shared computation as Example #5, introduce the ghost procedure as an alternative organization, restore proof buttons, remove old toolchain pins, and renumber subsequent examples. - Check 13 pipeline cases at the 80-column limit, including deliberate update omissions. Confirm the final Ada matches the tested candidates and verify the rendered numbering and buttons. Co-Authored-By: Codex <noreply@openai.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update three SPARK chapters for the current toolchain while preserving a
gradual teaching sequence. Introduce each necessary annotation or code
change before showing it, and keep the explanations focused on proper
SPARK use.
Syntactic guarantees
before introducing
Loop_Variantin a second example.State abstraction
no_buttonillustration, removing its old toolchain pins and build/proof requests.
identify the missing full-stack check before the corrected example.
Functional correctness
their intended ghost-use diagnostics on record selectors.
the invalid dependency from ghost data to normal state explicit.
shares a computation derived from normal state.
Valid_Modelafter a push so the contract establishes agreementbetween the model and buffer lengths. The previous postcondition could
prove even when the real length update was omitted.
restore proof buttons, remove old pins, and renumber later examples.
Scope and impact
03_syntactic_guarantees.rstin SPARK for the MISRA C Developer.04_State_Abstraction.rstand05_Proof_Of_Functional_Correctness.rstin Intro to SPARK.Validation
illustration without crashing.
and confirm that the final examples match the tested candidates.
Co-Authored-By: Codex noreply@openai.com