Difference between revisions of "Rodin Proof Tactics"
imported>Son m |
imported>Son m |
||
Line 17: | Line 17: | ||
* '''Interactive''': ''No'': the tactic cannot be invoked interactively from the [[The Proving Perspective (Rodin User Manual)|proving interface]]. ''Global'': The tactic can be invoked interactively from the [[The Proving Perspective (Rodin User Manual)#The Proof Control Window|Proof Control View]]. ''Goal'': The tactic can be invoked from the [[The Proving Perspective (Rodin User Manual)#Goal and Selected Hypotheses|Goal view]]. ''Hypothesis'': The tactic can be invoked from the [[The Proving Perspective (Rodin User Manual)#Goal and Selected Hypotheses| Hypothesis view]]. If the tactic can be invoked interactively (i.e. either ''Global'', ''Goal'' or ''Hypothesis''), more information about how this could be done will be given. Note that since the '''Post-tactics''' can be launched manually, any tactics that can be included in the post-tactic in principle can be invoked interactively via the post-tactic. Here ''No'' only means that there is no separate invocation for this specific tactic. | * '''Interactive''': ''No'': the tactic cannot be invoked interactively from the [[The Proving Perspective (Rodin User Manual)|proving interface]]. ''Global'': The tactic can be invoked interactively from the [[The Proving Perspective (Rodin User Manual)#The Proof Control Window|Proof Control View]]. ''Goal'': The tactic can be invoked from the [[The Proving Perspective (Rodin User Manual)#Goal and Selected Hypotheses|Goal view]]. ''Hypothesis'': The tactic can be invoked from the [[The Proving Perspective (Rodin User Manual)#Goal and Selected Hypotheses| Hypothesis view]]. If the tactic can be invoked interactively (i.e. either ''Global'', ''Goal'' or ''Hypothesis''), more information about how this could be done will be given. Note that since the '''Post-tactics''' can be launched manually, any tactics that can be included in the post-tactic in principle can be invoked interactively via the post-tactic. Here ''No'' only means that there is no separate invocation for this specific tactic. | ||
− | * '''Proving interface display''': Example(s) on how | + | * '''Proving interface display''': Example(s) on how applications of this tactic can be seen from the [[The Proving Perspective (Rodin User Manual)|proving interface]] of the RODIN Platform. |
== True Goal == | == True Goal == |
Revision as of 16:07, 10 March 2010
This page contains descriptions of the available proof tactics within the RODIN Platform.
For each tactic, the descriptions is as follows:
- Description: A high-level description of the tactic. This will be the description appeared in the RODIN Platform preferences.
- Additional details: (Optional) Details explanation of the tactic.
- ID: An unique ID associated with the tactic.
- Auto-tactic: No: the tactic cannot be added as an auto-tactic. Yes: the tactic can be added as an auto-tactic. Default: the tactic is a default auto-tactic.
- Post-tactic: No: the tactic cannot be added as a post-tactic. Yes: the tactic can be added as a post-tactic. Default: the tactic is a default post-tactic.
- Preference display: (Optional) If the tactic can be used as an auto-tactic or a post-tactic, information on how the tactic is displayed in the auto-tactic preference or the post-tactic preference.
- Interactive: No: the tactic cannot be invoked interactively from the proving interface. Global: The tactic can be invoked interactively from the Proof Control View. Goal: The tactic can be invoked from the Goal view. Hypothesis: The tactic can be invoked from the Hypothesis view. If the tactic can be invoked interactively (i.e. either Global, Goal or Hypothesis), more information about how this could be done will be given. Note that since the Post-tactics can be launched manually, any tactics that can be included in the post-tactic in principle can be invoked interactively via the post-tactic. Here No only means that there is no separate invocation for this specific tactic.
- Proving interface display: Example(s) on how applications of this tactic can be seen from the proving interface of the RODIN Platform.
Contents
- 1 True Goal
- 2 False Hypothesis
- 3 Goal in Hypotheses
- 4 Goal Disjunct in Hypothesis
- 5 Functional Goal
- 6 Simplification Rewriter
- 7 Type Rewriter
- 8 Implication Goal
- 9 For-all Goal
- 10 Exists Hypothesis
- 11 Find Contradictory Hypothesis
- 12 Use Equality Hypothesis
- 13 Use Equality Hypothesis from Left to Right
- 14 Shrink Implicative Hypothesis
- 15 Shrink Enumerated Set
- 16 Implicative Hypothesis with Conjunctive RHS
- 17 Implicative Hypothesis with Disjunctive LHS
- 18 Conjunctive Goal
- 19 Clarify Goal
- 20 Functional Overriding in Goal
- 21 Functional Overriding in Hypothesis
- 22 Partition Rewriter
- 23 One-Point Rule in Goal
- 24 One-Point Rule in Hypothesis
- 25 Bounded Goal with Finite Hypothesis
- 26 Falsify Goal
- 27 conjI
- 28 allI
- 29 exI
- 30 Remove Negation
- 31 Review
- 32 Proof by cases
- 33 Add Hypothesis
- 34 Abstract Expression
- 35 Automatic Prover
- 36 Post tactic
- 37 Lasoo
- 38 Back Tracking
- 39 Prune
- 40 Search Hypothesis
- 41 Cache Hypothesis
- 42 Previous
- 43 Next
- 44 Information
- 45 Falsify Hypothesis
- 46 Modus Ponens
- 47 conjE
- 48 disjE
- 49 allE
- 50 exE
- 51 Double Implication Hypothesis
- 52 cont Implication Hypothesis
- 53 Functional Overriding
- 54 Modus Tollens
- 55 Remove Membership
- 56 Remove Inclusion
- 57 Remove Strict-Inclusion
- 58 Inclusion Set Minus Right
- 59 Remove Inclusion Universal
- 60 Implication Introduction
- 61 Disjunction to Implication
- 62 Forall Modus Ponens
- 63 Next Pending Sub-goal
- 64 Next Reviewed Sub-goal
- 65 impAndHyp
- 66 impAndGoal
- 67 impOrHyp
- 68 impOrGoal
- 69 relImgUnionRight
- 70 relImgUnionLeft
- 71 Set Equality
- 72 Equivalent
- 73 Functional Intersection Image
- 74 Functional Set Minus Image
- 75 Functional Singleton Image
- 76 Converse Relation
- 77 Domain Distribution to the Left
- 78 Domain Distribution to the Right
- 79 Range Distribution to the Left
- 80 Range Distribution to the Right
- 81 Set Minus
- 82 Conjunction and Disjunction Distribution
- 83 Union Conjunction Distribution
- 84 compUnionDist
- 85 Domain/Range Union Distribution
- 86 Relational Overriding
- 87 Composition Image
- 88 Domain Composition
- 89 Range Composition
- 90 Functional Composition Image
- 91 Finite Set in Goal
- 92 Finite Intersection in Goal
- 93 Finite Set Minus in Goal
- 94 Finite Relation in Goal
- 95 Finite Relation Image in Goal
- 96 Finite Domain in Goal
- 97 Finite Range in Goal
- 98 Finite Function in Goal
- 99 Finite Function Converse in Goal
- 100 Finite Functional Relational Image in Goal
- 101 Finite Functional Range in Goal
- 102 Finite Functional Domain in Goal
- 103 Finite Minimum in Goal
- 104 Finite Maximum in Goal
- 105 Finite Negative in Goal
- 106 Finite Positive in Goal
- 107 Cardinality Comparison in Goal
- 108 Cardinality Up to
- 109 Partition Rewrite
- 110 Arithmetic Rewrite
- 111 Total Domain in Hypothesis / Goal
True Goal
- Description: Discharges any sequent whose goal is '⊤' (logical true).
- ID: org.eventb.core.seqprover.trueGoalTac
- Auto-tactic: Default
- Post-tactic: Default
- Preference display: True Goal (Discharge)
- Interactive: No
- Proving interface display: ⊤ goal
False Hypothesis
- Description: Discharges any sequent containing a '⊥' hypothesis
- ID: org.eventb.core.seqprover.falseHypTac
- Auto-tactic: Default
- Post-tactic: Default
- Preference display: False Hypothesis (Discharge)
- Interactive: No
- Proving interface display: ⊥ hyp
Goal in Hypotheses
- Description: Discharges any sequent whose goal is contained in its hypotheses
- ID: org.eventb.core.seqprover.goalInHypTac
- Auto-tactic: Default
- Post-tactic: Default
- Preference display: Goal in Hypotheses (Discharge)
- Interactive: No
- Proving interface display: hyp
Goal Disjunct in Hypothesis
- Description: Discharges any sequent whose goal is a disjunction and one of whose disjuncts is present in the hypotheses.
- ID: org.eventb.core.seqprover.goalDisjInHypTac
- Auto-tactic: No
- Post-tactic: Default
- Preference display: Goal Disjunct in Hypotheses (Discharge)
- Interactive: No
- Proving interface display: ∨ goal in hyp
Functional Goal
- Description: Tries to discharge a sequent whose goal states that an expression is a function (i.e. f ∈ T1 ⇸ T2, where T1 and T2 are type expressions).
- Additional details: The sequent is discharged if there is a hypothesis specifying that f is a function of any kind (i.e. partial function, total function, partial injection, total injection, partial surjection, total surjection, bijection). More information about type expressions in Event-B is in the FAQ page.
- ID: org.eventb.core.seqprover.funGoalTac
- Auto-tactic: Default
- Post-tactic: Default
- Preference display: Functional Goal (Discharge)
- Interactive: No
- Proving interface display: functional goal
Simplification Rewriter
- Description: Tries to simplify all predicates in a sequent using pre-defined simplification rewriting rules.
- Additional details: The list of rewriting rules are in the following page http://wiki.event-b.org/index.php/All_Rewrite_Rules, which are marked as Automatic.
- ID: org.eventb.core.seqprover.autoRewriteTac
- Auto-tactic: Default
- Post-tactic: Default
- Preference display: Simplification Rewriter (Simplify)
- Interactive: No
- Proving interface display: simplification rewrites
The example below shows the screen-shots of the step before the application of the tactic and the step just after the application of the tactic. There are 3 rewritings have been done as follows.
Note that hypothesis is always dropped in the RODIN Platform.
Type Rewriter
- Description: Simplifies predicates containing type expressions such as E ∈ T to ⊤ and T = ∅ to ⊥.
- Additional details: More information about type expressions in Event-B is in the FAQ page.
- ID: org.eventb.core.seqprover.typeRewriteTac
- Auto-tactic: Default
- Post-tactic: Default
- Preference display: Type Rewriter (Simplify)
- Interactive: No
- Proving interface display: type rewrites
The example below shows the screen-shots of the step before the application of the tactic and the step just after the application of the tactic.
Implication Goal
- Description: Simplifies any sequent with an implicative goal by adding the left hand side of the implication to the hypotheses and making its right hand side the new goal.
- ID: org.eventb.core.seqprover.impGoalTac
- Auto-tactic: No
- Post-tactic: Default
- Preference display: Implicative Goal (Simplify)
- Interactive: Goal. The
symbol in the implicative goal is redden. When the mouse hovers the red symbol, the label of the tactic in the context menu is Deduction.
- Proving interface display: ⇒ goal
The example below shows the screen-shots of the step before the application of the tactic and the step just after the application of the tactic.
For-all Goal
- Description: Simplifies any sequent with a universally quantified goal by freeing all its bound variables.
- Additional details: The bound variables will be renaming accordingly to avoid name collision.
- ID: org.eventb.core.seqprover.forallGoalTac
- Auto-tactic: No
- Post-tactic: Yes
- Preference display: For-all Goal (Simplify)
- Interactive: Goal. The symbol
in the universal quantified goal is redden. When the mouse hovers the red symbol, the label of the tactic in the context menu is Forall instantiation.
- Proving interface display: ∀ goal (frees list-of-bounded-identifiers)
The first example below shows the screen-shots of the step before the application of the tactic and the step just after the application of the tactic. There is no renaming of the bound variable.
The second example below shows the screen-shots of the step before the application of the tactic and the step just after the application of the tactic. The bound variable is not renamed, but the bound variable
is renamed to
to avoid capture of the existing variable
.
Exists Hypothesis
- Description: In automatic mode (as an auto-tactic or post-tactic), this tactic simplifies any sequent containing existentially quantified hypotheses by freeing their bound variables. In interactive mode, only the selected hypothesis is simplified by freeing its bound variables.
- Additional details: The bound variables will be renaming if necessary to avoid name collision. After freeing their bound variables, if the resulting predicate is a conjunction then it is split into several hypotheses.
- ID: org.eventb.core.seqprover.existHypTac
- Auto-tactic: No
- Post-tactic: Default
- Preference display: Exists Hypotheses (Simplify)
- Interactive: Hypothesis. The symbol
in the existential quantified hypothesis is redden. When the mouse hovers the red symbol, the label of the tactic in the context menu is Free existential variables.
- Proving interface display:
The first example below shows the screen-shots of the step before the application of the tactic and the step just after the application of the tactic. There is no renaming of the bound variable.
The second example below shows the screen-shots of the step before the application of the tactic and the step just after the application of the tactic. The bound variable x is not renamed, but the bound variable z is renamed to z0 to avoid capture of the existing variable z.
Find Contradictory Hypothesis
- Description: Discharges a sequent by finding contradictory hypotheses, i.e.
and
.
- Additional details: This tactic tries to find a contradiction using each selected hypothesis that is a negation.
- ID: org.eventb.core.seqprover.findContrHypsTac
- Auto-tactic: Default
- Post-tactic: Default
- Preference display: Find Contradictory Hypotheses (Discharge)
- Interactive: No
- Proving interface display: ct in hyps (the negated hypothesis)
Use Equality Hypothesis
- Description: Simplifies a sequent by rewriting all selected hypotheses and the goal using a (selected) hypothesis that is an equality between a free variable and an expression that does not contain the free variable. The used equality remains in the selected hypotheses to be used again.
- Additional details: Each application of the tactic take only one equality hypothesis into account. If there are several equality hypotheses, they require several applications of the tactic. Moreover, in the case where there are several equality hypotheses, the choice of which hypothesis will be chosen is non-deterministic. This tactic behaves as #Use Equality Hypothesis from Left to Right or #Use Equality Hypothesis from Right to Left depending on if the free variable is on the left or on the right of the equality.
- ID: org.eventb.core.seqprover.eqHypTac
- Auto-tactic: Default
- Post-tactic: Default
- 'Preference display: Use Equals Hypotheses (Simplify)
- Interactive: Hypothesis. See #Use Equality Hypothesis from Left to Right and #Use Equality Hypothesis from Right to Left
- Proving interface display: eh (the equal hypothesis) in the case where the free variable is on the left-hand side or he (the equal hypothesis) in the case where the free variable is on the right-hand side.
The example below shows the screen-shots of the step before the application of the tactic, the step after the first application of the tactic with hypothesis and the step just after the second application of the tactic with hypothesis
.
Use Equality Hypothesis from Left to Right
- Description: Rewriting all selected hypotheses and the goal using a (selected) hypothesis that is an equality between two expressions. The used equality remains in the selected hypotheses to be used again.
- ID:
- Auto-tactic: See #Use Equality Hypothesis
- Post-tactic: See #Use Equality Hypothesis
- Interactive: Hypothesis
- Proving interface display:
Shrink Implicative Hypothesis
- Description: TODO
- ID: TODO
- Display: TODO
- Auto-tactic: TODO
- Post-tactic: TODO
- Interactive: TODO
- Example: TODO
Shrink Enumerated Set
- Description: TODO
- ID: TODO
- Display: TODO
- Auto-tactic: TODO
- Post-tactic: TODO
- Interactive: TODO
- Example: TODO
Implicative Hypothesis with Conjunctive RHS
- Description: TODO
- ID: TODO
- Display: TODO
- Auto-tactic: TODO
- Post-tactic: TODO
- Interactive: TODO
- Example: TODO
Implicative Hypothesis with Disjunctive LHS
- Description: TODO
- ID: TODO
- Display: TODO
- Auto-tactic: TODO
- Post-tactic: TODO
- Interactive: TODO
- Example: TODO
Conjunctive Goal
- Description: TODO
- ID: TODO
- Display: TODO
- Auto-tactic: TODO
- Post-tactic: TODO
- Interactive: TODO
- Example: TODO
Clarify Goal
- Description: TODO
- ID: TODO
- Display: TODO
- Auto-tactic: TODO
- Post-tactic: TODO
- Interactive: TODO
- Example: TODO
Functional Overriding in Goal
- Description: TODO
- ID: TODO
- Display: TODO
- Auto-tactic: TODO
- Post-tactic: TODO
- Interactive: TODO
- Example: TODO
Functional Overriding in Hypothesis
- Description: TODO
- ID: TODO
- Display: TODO
- Auto-tactic: TODO
- Post-tactic: TODO
- Interactive: TODO
- Example: TODO
Partition Rewriter
- Description: TODO
- ID: TODO
- Display: TODO
- Auto-tactic: TODO
- Post-tactic: TODO
- Interactive: TODO
- Example: TODO
One-Point Rule in Goal
- Description: TODO
- ID: TODO
- Display: TODO
- Auto-tactic: TODO
- Post-tactic: TODO
- Interactive: TODO
- Example: TODO
One-Point Rule in Hypothesis
- Description: TODO
- ID: TODO
- Display: TODO
- Auto-tactic: TODO
- Post-tactic: TODO
- Interactive: TODO
- Example: TODO
Bounded Goal with Finite Hypothesis
- Description: TODO
- ID: TODO
- Display: TODO
- Auto-tactic: TODO
- Post-tactic: TODO
- Interactive: TODO
- Example: TODO