Skip to content

Commit

Permalink
Use Prop for Boogie bool type
Browse files Browse the repository at this point in the history
  • Loading branch information
atomb committed Jan 27, 2025
1 parent bf2dab8 commit c8fda07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions LeanBoogie/ConTy.lean
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ abbrev TyA : Ty -> Type
| .unit => Unit
| .int => Int
| .real => Real
| .bool => Bool
| .bool => Prop
| .bv bits => BitVec bits
| .map A B => TyA A -> TyA B

Expand All @@ -57,7 +57,7 @@ def TyA.inhabited : {A : Ty} -> A
| .unit => default
| .int => default
| .real => default
| .bool => default
| .bool => True
| .bv _ => default
| .map _ _ => fun _ => inhabited

Expand Down
2 changes: 1 addition & 1 deletion LeanBoogie/Effect/Mem.lean
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ private def i : Var Γ .int := .v0
private def b : Var Γ (.bv32) := .v1
private def f : Var Γ (.bool ~> .int) := .v2
private example : ITree (Mem Γ) Unit := do
let fn : Bool -> Int <- Mem.read f
let fn : Prop -> Int <- Mem.read f
Mem.write b (fn false)

0 comments on commit c8fda07

Please sign in to comment.