Skip to content

Conversation

@clarus
Copy link
Collaborator

@clarus clarus commented Nov 6, 2025

We show that the Rust code:

pub fn max2(a: u32, b: u32) -> u32 {
    if a < b { b } else { a }
}

is equivalent to the Rocq code:

Definition max2 (a b : U32.t) : U32.t :=
  if a.(Integer.value) <? b.(Integer.value) then
    b
  else
    a.

@clarus clarus changed the title Draft: Add links and simulate example Add links and simulate example Nov 6, 2025
@clarus clarus merged commit 0a90457 into main Nov 7, 2025
1 check passed
@clarus clarus deleted the guillaume-claret@add-link-simulate-example branch November 7, 2025 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants