Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MIL/C07_Hierarchies/S01_Basics.lean
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class Semigroup₀ (α : Type) where
Note that while stating `dia_assoc`, the previously defined field `toDia₁` is in the local
context hence can be used when Lean searches for an instance of `Dia₁ α` to make sense
of `a ⋄ b`. However this `toDia₁` field does not become part of the type class instances database.
Hence doing ``example {α : Type} [Semigroup α] (a b : α) : α := a ⋄ b`` would fail with
Hence doing ``example {α : Type} [Semigroup α] (a b : α) : α := a ⋄ b`` would fail with
error message ``failed to synthesize instance Dia₁ α``.

We can fix this by adding the ``instance`` attribute later.
Expand Down