Skip to content

Commit 54e7650

Browse files
committed
make types universe polymorphic
1 parent fa680d2 commit 54e7650

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

ArkLib/Data/CodingTheory/JohnsonBound/Expectations.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import ArkLib.Data.CodingTheory.JohnsonBound.Choose2
1717
namespace JohnsonBound
1818

1919
variable {n : ℕ}
20-
variable {F : Type} [Fintype F] [DecidableEq F]
20+
variable {F : Type*} [Fintype F] [DecidableEq F]
2121

2222
def e (B : Finset (Fin n → F)) (v : Fin n → F) : ℚ :=
2323
(1 : ℚ)/B.card * ∑ x ∈ B, Δ₀(v, x)
@@ -78,4 +78,3 @@ lemma lin_shift_d [Field F] {B : Finset (Fin n → F)} (v : Fin n → F)
7878
apply Finset.sum_bij (fun x _ => (x.1 - v, x.2 -v)) <;> try aesop
7979

8080
end JohnsonBound
81-

ArkLib/Data/CodingTheory/JohnsonBound/Lemmas.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace JohnsonBound
1919
section
2020

2121
variable {n : ℕ}
22-
variable {F : Type} [Fintype F] [DecidableEq F]
22+
variable {F : Type*} [Fintype F] [DecidableEq F]
2323

2424
private def Fi (B : Finset (Fin n → F)) (i : Fin n) (α : F) : Finset (Fin n → F) :=
2525
{ x | x ∈ B ∧ x i = α }

0 commit comments

Comments
 (0)