chore(library/init/nat): replace 'no_confusion' with 'by contradiction'
This commit is contained in:
parent
2d9c950144
commit
1e18a76bdb
1 changed files with 2 additions and 2 deletions
|
@ -31,8 +31,8 @@ namespace nat
|
|||
|
||||
protected definition has_decidable_eq [instance] : ∀ x y : nat, decidable (x = y)
|
||||
| has_decidable_eq zero zero := inl rfl
|
||||
| has_decidable_eq (succ x) zero := inr (λ h, nat.no_confusion h)
|
||||
| has_decidable_eq zero (succ y) := inr (λ h, nat.no_confusion h)
|
||||
| has_decidable_eq (succ x) zero := inr (by contradiction)
|
||||
| has_decidable_eq zero (succ y) := inr (by contradiction)
|
||||
| has_decidable_eq (succ x) (succ y) :=
|
||||
if H : x = y
|
||||
then inl (eq.rec_on H rfl)
|
||||
|
|
Loading…
Reference in a new issue