Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggested modification to first exercise #986

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Changes from 1 commit
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
10 changes: 5 additions & 5 deletions src/plfa/part1/Naturals.lagda.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ contains about seventy sextillion stars.
But the number of stars is finite, while natural numbers are infinite.
Count all the stars, and you will still have as many natural numbers
left over as you started with.

{-testing ∀ -}
KevinDCarlson marked this conversation as resolved.
Show resolved Hide resolved

## The naturals are an inductive datatype

Expand Down Expand Up @@ -75,14 +75,14 @@ successor of two; and so on.

#### Exercise `seven` (practice) {#seven}

Write out `7` in longhand.
Write out `7` in longhand. The suggestion below loads but is, of course, incorrect.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you want to avoid ??

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because at this point, the reader hasn't learned how to deal with ?--the walkthrough of that is a bit later.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, holes are never used in the executable text, because Agda gets stroppy if you try to import a module that contains a hole.


```agda
-- Your code goes here
seven : ℕ
seven = zero
```

You will need to give both a type signature and definition for the
variable `seven`. Type `C-c C-l` in Emacs to instruct Agda to re-load.
Type `C-c C-l` in Emacs to instruct Agda to re-load.


## Unpacking the inference rules
Expand Down