| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Induction over _<_ for ℕᵇ. |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 8 |
|
| 9 |
module Data.Nat.Binary.Induction where |
| 10 |
|
| 11 |
open import Data.Nat.Binary.Base |
| 12 |
open import Data.Nat.Binary.Properties |
| 13 |
open import Data.Nat.Base as ℕ using (ℕ) |
| 14 |
import Data.Nat.Induction as ℕ |
| 15 |
open import Induction.WellFounded as WFI |
| 16 |
import Relation.Binary.Construct.On as On |
| 17 |
|
| 18 |
------------------------------------------------------------------------ |
| 19 |
-- Re-export Acc and acc |
| 20 |
|
| 21 |
open WFI public using (Acc; acc) |
| 22 |
|
| 23 |
------------------------------------------------------------------------ |
| 24 |
-- _<_ is wellFounded |
| 25 |
|
| 26 |
<-wellFounded : WellFounded _<_ |
| 27 |
<-wellFounded = Subrelation.wellFounded <⇒<ℕ |
| 28 |
(On.wellFounded toℕ ℕ.<-wellFounded) |