Skip to content

Commit

Permalink
Fix a couple of things.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodolphe Lepigre committed Mar 12, 2019
1 parent 08687e7 commit 535df10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
main.native
_build/
pml2/config.ml
local/
12 changes: 6 additions & 6 deletions examples/mccarthy91.pml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ val mccarthy91_easy : nat ⇒ nat =

val hard_lemma : ∀n∈nat, n > u100 ≡ false ⇒ mccarthy91_hard n ≡ u91 =
fun n eq {
set auto 101 1; {}
{- takes too lonk -}
//set auto 101 1; {}
}


Expand Down Expand Up @@ -107,12 +108,11 @@ val hard_is_easy : ∀n∈nat, mccarthy91_easy n ≡ mccarthy91_hard n =

val mccarthy91 : nat ⇒ nat =
fun n {
check mccarthy91_easy n // Term used for type-checking.
for mccarthy91_hard n // Actual term used in the definition.
because hard_is_easy n // Proof that they are equal.
check { mccarthy91_easy n } // Term used for type-checking.
for { mccarthy91_hard n } // Actual term used in the definition.
because { hard_is_easy n } // Proof that they are equal.
// The above really is "mccarthy91_hard n" (up to erasure).
}


// FIXME Should work
//val ok : mccarthy91 ≡ mccarthy91_hard = {}
val ok : mccarthy91 ≡ fun n { mccarthy91_hard n } = {}

0 comments on commit 535df10

Please sign in to comment.