We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dba2a95 commit b23a546Copy full SHA for b23a546
1 file changed
ProgramAnalysis/ProbabilisticPrograms/PWhile.lean
@@ -380,10 +380,10 @@ def E (size : Nat) (row col : Fin size) : Matrix (Fin size) (Fin size) (Fin 2) :
380
def U (s : Finset Nat) (f : s → s) : Matrix s s (Fin 2) :=
381
fun i j => if f i = j then 1 else 0
382
383
-def P (s : Finset Nat) (f : s → Bool) : Matrix s s (Fin 2) :=
+def P (s : Finset Nat) (f : Fin s.card → Bool) : Matrix (Fin s.card) (Fin s.card) (Fin 2) :=
384
fun i j => if i = j ∧ f i then 1 else 0
385
386
-def I (s : Finset Nat) : Matrix s s (Fin 2) :=
+def I (s : Finset Nat) : Matrix (Fin s.card) (Fin s.card) (Fin 2) :=
387
fun i j => if i = j then 1 else 0
388
389
end ProgramAnalysis.ProbabilisticPrograms
0 commit comments