Skip to content

Commit

Permalink
replace proof with omega
Browse files Browse the repository at this point in the history
  • Loading branch information
david415 committed Aug 29, 2024
1 parent 02bf958 commit 005f185
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions CryptWalker/protocol/merkle_tree.lean
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
--import Mathlib.Data.ByteArray
import Lean.Data.HashMap
import Init.Data.ToString
import Mathlib.Tactic

import CryptWalker.hash.Sha2
import CryptWalker.util.newnat
Expand Down Expand Up @@ -206,11 +207,7 @@ def untilSet (fst snd : Nat) : Nat × Nat :=
if h2 : fst % 2 != 0 then
(fst,snd)
else
have : fst >>> 1 < fst := by
rw [Nat.shiftRight_eq_div_pow]
have h3 := Nat.bitwise_rec_lemma h
simp_arith
exact h3
have : fst >>> 1 < fst := by omega
untilSet (fst >>> 1) (snd >>> 1)
termination_by fst

Expand Down

0 comments on commit 005f185

Please sign in to comment.