Skip to content

Commit

Permalink
HolSmt: ignore indices in rewrite proof rules
Browse files Browse the repository at this point in the history
In case `rewrite` proof rules ever come to have indices, let's ignore
them instead of erroring out.
  • Loading branch information
someplaceguy authored and mn200 committed Apr 9, 2024
1 parent 391faf8 commit b8fa4ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/HolSmt/Z3_ProofParser.sml
Expand Up @@ -139,7 +139,9 @@ local
("quant-inst", list_args_zero_prems "quant-inst"),
("quant-intro", one_prem "quant-intro"),
("refl", zero_prems "refl"),
("rewrite", zero_prems "rewrite"),
(* in `rewrite` proof rules, we currently ignore the indices (if they exist) *)
("rewrite", (fn token => fn indices => fn prems =>
zero_prems "rewrite" token [] prems)),
("sk", zero_prems "sk"),
("symm", one_prem "symm"),
("th-lemma", SmtLib_Theories.list_list (fn token => fn indices =>
Expand Down

0 comments on commit b8fa4ad

Please sign in to comment.