Skip to content

Commit

Permalink
backup work for weekend
Browse files Browse the repository at this point in the history
  • Loading branch information
Negabinary committed Feb 7, 2025
1 parent dcfbbf7 commit c22a807
Show file tree
Hide file tree
Showing 7 changed files with 577 additions and 14 deletions.
41 changes: 41 additions & 0 deletions src/haz3lcore/proof/Axioms.re
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
let v: ProofCtx.t =
[]
|> ProofCtx.add_entry(
"Iden(+)L",
Fun(
Var("x") |> Pat.fresh,
BinOp(
Int(Equals),
BinOp(Int(Plus), Var("x") |> Exp.fresh, Int(0) |> Exp.fresh)
|> Exp.fresh,
Var("x") |> Exp.fresh,
)
|> Exp.fresh,
Some(Int |> Typ.fresh),
None,
)
|> Exp.fresh,
)
|> ProofCtx.add_entry(
"Comm(+)",
Fun(
Var("x") |> Pat.fresh,
Fun(
Var("y") |> Pat.fresh,
BinOp(
Int(Equals),
BinOp(Int(Plus), Var("x") |> Exp.fresh, Var("y") |> Exp.fresh)
|> Exp.fresh,
BinOp(Int(Plus), Var("y") |> Exp.fresh, Var("x") |> Exp.fresh)
|> Exp.fresh,
)
|> Exp.fresh,
Some(Int |> Typ.fresh),
None,
)
|> Exp.fresh,
Some(Int |> Typ.fresh),
None,
)
|> Exp.fresh,
);
Loading

0 comments on commit c22a807

Please sign in to comment.