Skip to content

Commit

Permalink
remove unused lemma
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdemeo authored and WhatisRT committed Aug 20, 2024
1 parent 36561bb commit 396e810
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions src/Ledger/Gov.lagda
Original file line number Diff line number Diff line change
Expand Up @@ -98,21 +98,10 @@ govActionPriority Info = 6
insertGovAction : GovState → GovActionID × GovActionState → GovState
insertGovAction [] gaPr = [ gaPr ]
insertGovAction ((gaID₀ , gaSt₀) ∷ gaPrs) (gaID₁ , gaSt₁)
= if (govActionPriority (action gaSt₀)) ≤? (govActionPriority (action gaSt₁)) then
(gaID₀ , gaSt₀) ∷ insertGovAction gaPrs (gaID₁ , gaSt₁)
else
(gaID₁ , gaSt₁) ∷ (gaID₀ , gaSt₀) ∷ gaPrs
\end{code}
\begin{code}[hide]
insertGovAction-∈ : (gSt : GovState){x : GovActionID × GovActionState}
→ x ∈ˡ insertGovAction gSt x
insertGovAction-∈ [] = Any.here refl
insertGovAction-∈ ((gaID₀ , gaSt₀) ∷ gaPrs) {(gaID₁ , gaSt₁)}
with (govActionPriority (action gaSt₀)) ≤? (govActionPriority (action gaSt₁))
... | yes _ = Any.there (insertGovAction-∈ gaPrs)
... | no _ = Any.here refl
\end{code}
\begin{code}
= if (govActionPriority (action gaSt₀)) ≤? (govActionPriority (action gaSt₁))
then (gaID₀ , gaSt₀) ∷ insertGovAction gaPrs (gaID₁ , gaSt₁)
else (gaID₁ , gaSt₁) ∷ (gaID₀ , gaSt₀) ∷ gaPrs

addVote : GovState → GovActionID → Voter → Vote → GovState
addVote s aid voter v = map modifyVotes s
where modifyVotes = λ (gid , s') → gid , record s'
Expand Down

0 comments on commit 396e810

Please sign in to comment.