diff options
author | Son Ho | 2023-02-05 22:03:41 +0100 |
---|---|---|
committer | Son HO | 2023-06-04 21:44:33 +0200 |
commit | c6913b8bf90689d8961c47f59896443e7fae164d (patch) | |
tree | 3a2b61a3df49fef14c8ad558ff9630014a5c07e1 /tests/lean/misc/constants | |
parent | 9ec68c058a1829166fbb2511dedfbe0c2f94d6bc (diff) |
Make sure let-bindings in Lean end with line breaks and improve formatting
Diffstat (limited to 'tests/lean/misc/constants')
-rw-r--r-- | tests/lean/misc/constants/Constants.lean | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/lean/misc/constants/Constants.lean b/tests/lean/misc/constants/Constants.lean index a5cbe363..9ef9ca44 100644 --- a/tests/lean/misc/constants/Constants.lean +++ b/tests/lean/misc/constants/Constants.lean @@ -82,7 +82,8 @@ structure OpaqueDefs where def y_c : wrap_t Int32 := eval_global y_body (by simp) /- [constants::unwrap_y] -/ - def unwrap_y_fwd : result Int32 := result.ret y_c.wrap_val + def unwrap_y_fwd : result Int32 := + result.ret y_c.wrap_val /- [constants::YVAL] -/ def yval_body : result Int32 := unwrap_y_fwd @@ -94,10 +95,12 @@ structure OpaqueDefs where def get_z1_z1_c : Int32 := eval_global get_z1_z1_body (by simp) /- [constants::get_z1] -/ - def get_z1_fwd : result Int32 := result.ret get_z1_z1_c + def get_z1_fwd : result Int32 := + result.ret get_z1_z1_c /- [constants::add] -/ - def add_fwd (a : Int32) (b : Int32) : result Int32 := Int32.checked_add a b + def add_fwd (a : Int32) (b : Int32) : result Int32 := + Int32.checked_add a b /- [constants::Q1] -/ def q1_body : result Int32 := result.ret (Int32.ofNatCore 5 (by intlit)) |