File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -586,13 +586,13 @@ because Lean knows that these are defined for every ring.
586586We can use this method to specify notation for our ``Group₂`` class:
587587EXAMPLES: -/
588588-- QUOTE:
589- instance hasMulGroup₂ {α : Type *} [Group₂ α] : Mul α :=
589+ instance {α : Type*} [Group₂ α] : Mul α :=
590590 ⟨Group₂.mul⟩
591591
592- instance hasOneGroup₂ {α : Type *} [Group₂ α] : One α :=
592+ instance {α : Type*} [Group₂ α] : One α :=
593593 ⟨Group₂.one⟩
594594
595- instance hasInvGroup₂ {α : Type *} [Group₂ α] : Inv α :=
595+ instance {α : Type*} [Group₂ α] : Inv α :=
596596 ⟨Group₂.inv⟩
597597
598598section
607607-- QUOTE.
608608
609609/- TEXT:
610- In this case, we have to supply names for the instances, because
611- Lean has a hard time coming up with good defaults.
612610What makes this approach work is that Lean carries out a recursive search.
613611According to the instances we have declared, Lean can find an instance of
614612``Mul (Equiv.Perm α)`` by finding an
You can’t perform that action at this time.
0 commit comments