Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrik-bakke authored Jan 4, 2025
1 parent b679474 commit 87b4ba7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/elementary-number-theory/conatural-numbers.lagda.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,16 @@ compute-decons-ℕ∞ x | inr q = refl
```agda
coit-ℕ∞ : {l : Level} {A : UU l} (A Maybe A) A ℕ∞
decons-ℕ∞ (coit-ℕ∞ f x) with f x
decons-ℕ∞ (coit-ℕ∞ f x) | (inl a) = unit-Maybe (coit-ℕ∞ f a)
decons-ℕ∞ (coit-ℕ∞ f x) | (inr _) = exception-Maybe
decons-ℕ∞ (coit-ℕ∞ f x) | inl a = unit-Maybe (coit-ℕ∞ f a)
decons-ℕ∞ (coit-ℕ∞ f x) | inr _ = exception-Maybe
```

### The corecursor function for conatural numbers

```agda
corec-ℕ∞ : {l : Level} {A : UU l} (A ℕ∞ + Maybe A) A ℕ∞
decons-ℕ∞ (corec-ℕ∞ f x) with f x
decons-ℕ∞ (corec-ℕ∞ f x) | (inl q) = unit-Maybe q
decons-ℕ∞ (corec-ℕ∞ f x) | inl q = unit-Maybe q
decons-ℕ∞ (corec-ℕ∞ f x) | inr (inl a) = unit-Maybe (corec-ℕ∞ f a)
decons-ℕ∞ (corec-ℕ∞ f x) | inr (inr *) = inr *
```
Expand Down

0 comments on commit 87b4ba7

Please sign in to comment.