Skip to content

Commit

Permalink
feat: Basics of Nat chapter (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-christiansen authored Aug 10, 2024
1 parent 5483e35 commit 799dee3
Show file tree
Hide file tree
Showing 3 changed files with 394 additions and 2 deletions.
54 changes: 53 additions & 1 deletion Manual.lean
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ authors := ["Lean Developers"]

:::progress
```namespace
String Char
String Char Nat
```
```exceptions
String.revFindAux String.extract.go₂ String.substrEq.loop String.casesOn
Expand All @@ -46,6 +46,58 @@ String.one_le_csize
```exceptions
String.sluggify
```

```exceptions
Nat.anyM.loop
Nat.nextPowerOfTwo.go
Nat.foldRevM.loop
Nat.foldM.loop
Nat.foldTR.loop
Nat.recAux
Nat.allTR.loop
Nat.allM.loop
Nat.anyTR.loop
Nat.anyM.loop
Nat.toSuperDigitsAux
Nat.casesAuxOn
Nat.forM.loop
Nat.repeatTR.loop
Nat.forRevM.loop
Nat.toSubDigitsAux
```

```exceptions
Nat.one_pos
Nat.not_lt_of_lt
Nat.sub_lt_self
Nat.lt_or_gt
Nat.pow_le_pow_left
Nat.not_lt_of_gt
Nat.le_or_le
Nat.le_or_ge
Nat.pred_lt'
Nat.pow_le_pow_right
Nat.lt_iff_le_and_not_ge
Nat.mul_pred_right
Nat.mul_pred_left
Nat.prod_dvd_and_dvd_of_dvd_prod
Nat.lt_iff_le_and_not_ge
Nat.mul_pred_right
```

```exceptions
Nat.binductionOn
Nat.le.rec
Nat.le.recOn
Nat.le.casesOn
Nat.le.below
Nat.le.below.step
Nat.le.below.rec
Nat.le.below.recOn
Nat.le.below.refl
Nat.le.below.casesOn
```

:::


Expand Down
3 changes: 2 additions & 1 deletion Manual/BuiltInTypes.lean
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Verso.Genre.Manual

import Manual.Meta
import Manual.BuiltInTypes.Nat
import Manual.BuiltInTypes.String

open Manual.FFIDocType
Expand All @@ -15,7 +16,7 @@ set_option pp.rawOnError true
Lean includes a number of built-in datatypes that are specially supported by the compiler.
Some additionally have special support in the kernel.

# Natural Numbers
{include 0 Manual.BuiltInTypes.Nat}

# Fixed-Precision Integer Types

Expand Down
Loading

0 comments on commit 799dee3

Please sign in to comment.