Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

produce _def and _val theorems in value_type #689

Merged
merged 3 commits into from
Apr 10, 2024
Merged

produce _def and _val theorems in value_type #689

merged 3 commits into from
Apr 10, 2024

Commits on Apr 10, 2024

  1. lib: produce _def and _val thms in value_type

    Produce a _def theorem for the value type that provides direct symbolic
    access to the right-hand side of the value_type definition. This avoids
    having to unfold those terms in subsequent proofs.
    
    The numeric value as as term is still available as <type-name>_val.
    
    This restricts value_type to nat/int inputs, i.e. word is no longer
    accepted on the rhs (so far unused). A manual cast to nat on the rhs
    will still work.
    
    Signed-off-by: Gerwin Klein <[email protected]>
    lsf37 committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    6c2ae29 View commit details
    Browse the repository at this point in the history
  2. proof: updates for value_type _def -> _val

    Rename occurrences of _def to _val for value_type-generated names. Does
    not make full use of value_type _def theorems yet.
    
    Signed-off-by: Gerwin Klein <[email protected]>
    lsf37 committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    7a5f2ff View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f245ff9 View commit details
    Browse the repository at this point in the history