Skip to content

Commit

Permalink
add isabelle program (#778)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaselsteiner authored and uwx committed Oct 31, 2018
1 parent c0cbc1d commit abd493b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions LANGUAGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,7 @@ You can also request a new language to be added to the list, just leave a commen
- [ ] [Iota](http://esolangs.org/wiki/Iota)
- [ ] [IRC](http://esolangs.org/wiki/IRC)
- [ ] [Iris](http://esolangs.org/wiki/Iris)
- [x] [isabelle](https://en.wikipedia.org/wiki/Isabelle_(proof_assistant))
- [x] [ISCOM](http://esolangs.org/wiki/ISCOM)
- [ ] [itflabtijtslwi](http://esolangs.org/wiki/Itflabtijtslwi)
- [x] [IWBASIC](https://rosettacode.org/wiki/Hello_world/Text#IWBASIC)
Expand Down
18 changes: 18 additions & 0 deletions examples/i/isabelle.thy
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
theory isabelle
imports Main

begin
theorem HelloWorld:
assumes 1: "Meeting \<and> Greeting \<longrightarrow> Hello"
assumes 2: "Greeting \<longrightarrow> Meeting"
assumes 3: "Greeting"
shows "Hello"
proof -
{
from 2 3 have 4: "Meeting" by (rule mp)
from 4 3 have 5: "Meeting \<and> Greeting" by (rule conjI)
from 1 5 have 6: "Hello" by (rule mp)
}
thus ?thesis .
qed
end

0 comments on commit abd493b

Please sign in to comment.