Skip to content

Commit

Permalink
removed default_instance from ArrayN GetElem instance
Browse files Browse the repository at this point in the history
  • Loading branch information
lecopivo committed Aug 20, 2024
1 parent 7343de5 commit fbff9a6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion SciLean/Data/ArrayN.lean
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ structure ArrayN (α : Type) (n : Nat) where
data : Array α
h_size : n = data.size

@[default_instance]
instance : GetElem (ArrayN α n) (Fin n) α (λ _ _ => True) where
getElem arr i _ := arr.data.get (arr.h_size ▸ i)

Expand Down

0 comments on commit fbff9a6

Please sign in to comment.