Skip to content

Commit

Permalink
Mark muliple-goal commands as experimental (#471)
Browse files Browse the repository at this point in the history
Due to issue #316.
  • Loading branch information
Aaron Tomb authored May 28, 2019
1 parent 8876b01 commit 8918c29
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion doc/manual/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,8 @@ immediately returns `True`). It fails if that is not the case.
The proof scripts shown so far all have a single implicit goal. As in
many other interactive provers, however, SAWScript proofs can have
multiple goals. The following commands can introduce or work with
multiple goals.
multiple goals. These are experimental and can be used only after
`enable_experimental` has been called.

* `goal_apply : Theorem -> ProofScript ()` will apply a given
introduction rule to the current goal. This will result in zero or more
Expand Down
Binary file modified doc/manual/manual.pdf
Binary file not shown.
12 changes: 6 additions & 6 deletions src/SAWScript/Interpreter.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1000,30 +1000,30 @@ primitives = Map.fromList

, prim "goal_apply" "Theorem -> ProofScript ()"
(pureVal goal_apply)
Current
Experimental
[ "Apply an introduction rule to the current goal. Depending on the"
, "rule, this will result in zero or more new subgoals."
]
, prim "goal_assume" "ProofScript Theorem"
(pureVal goal_assume)
Current
Experimental
[ "Convert the first hypothesis in the current proof goal into a"
, "local Theorem."
]
, prim "goal_insert" "Theorem -> ProofScript ()"
(pureVal goal_insert)
Current
Experimental
[ "Insert a Theorem as a new hypothesis in the current proof goal."
]
, prim "goal_intro" "String -> ProofScript Term"
(pureVal goal_intro)
Current
Experimental
[ "Introduce a quantified variable in the current proof goal, returning"
, "the variable as a Term."
]
, prim "goal_when" "String -> ProofScript () -> ProofScript ()"
(pureVal goal_when)
Current
Experimental
[ "Run the given proof script only when the goal name contains"
, "the given string."
]
Expand Down Expand Up @@ -1188,7 +1188,7 @@ primitives = Map.fromList

, prim "split_goal" "ProofScript ()"
(pureVal split_goal)
Current
Experimental
[ "Split a goal of the form 'Prelude.and prop1 prop2' into two separate"
, "goals 'prop1' and 'prop2'." ]

Expand Down

0 comments on commit 8918c29

Please sign in to comment.