Skip to content

Commit

Permalink
Renamed simp_hash to CollisionResistant_def
Browse files Browse the repository at this point in the history
  • Loading branch information
Eagle941 committed Nov 29, 2023
1 parent b67599c commit 0b6258f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ProvenZk/Hash.lean
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def Hash (F: Type) (n: Nat) : Type := Vector F n -> F

def CollisionResistant {F n} (h: Hash F n): Prop := ∀{i1 i2}, h i1 = h i2 → i1 = i2

@[simp] theorem simp_hash {h : Hash F n} [Fact (CollisionResistant h)] {a b : Vector F n}: h a = h b ↔ a = b := by
@[simp] theorem CollisionResistant_def {h : Hash F n} [Fact (CollisionResistant h)] {a b : Vector F n}: h a = h b ↔ a = b := by
have : CollisionResistant h := (inferInstance : Fact (CollisionResistant h)).elim
apply Iff.intro
{ apply (inferInstance : Fact (CollisionResistant h)).elim }
Expand Down

0 comments on commit 0b6258f

Please sign in to comment.