Skip to content

Commit

Permalink
Male Boogie DSL work with new ITrees
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiiyya committed Dec 3, 2024
1 parent 40d34c6 commit aabfdaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LeanBoogie/Util.lean
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def List.q {A : Q(Type)} : List Q($A) -> Q(List $A)
| [] => q([])
| x :: xs => let xs := q xs; q($x :: $xs)

def List.q_len {A : Q(Type)} : (N:Nat) -> (xs : List Q($A)) -> xs.length = N -> Q((xs : List $A) ×' xs.length = $N)
def List.q_len {A : Q(Type 1)} : (N:Nat) -> (xs : List Q($A)) -> xs.length = N -> Q((xs : List $A) ×' xs.length = $N)
| 0, [], h => by cases h; exact q(⟨[], rfl⟩)
| N+1, x :: xs, h => by
let xs := q_len N xs (by rw [List.length] at h; omega)
Expand Down

0 comments on commit aabfdaf

Please sign in to comment.