Skip to content

Commit a2fd71c

Browse files
doc: mention left and right to prove disjunction (#899)
Co-authored-by: David Thrane Christiansen <david@davidchristiansen.dk>
1 parent ed11e3f commit a2fd71c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Manual/BasicProps.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ Because {lean}`Sum` is a type, it is possible to check _which_ constructor was u
113113
In other words, because {lean}`Or` is not a {tech}[subsingleton], its proofs cannot be used as part of a computation.
114114

115115
In a {ref "tactics"}[tactic] proof, disjunctions can be proved using either constructor ({name}`Or.inl` or {name}`Or.inr`) explicitly via {tactic}`apply`.
116+
The {tactic}`left` and {tactic}`right` tactics select the left and right disjuncts.
116117
Assumptions of disjunctions in the context can be simplified using {tactic}`cases`, pattern matching with {tactic (show := "match")}`Lean.Parser.Tactic.match`, or {tactic}`rcases`.
117118

118119
{docstring Or}

0 commit comments

Comments
 (0)