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

Coq lang #38

Open
wants to merge 44 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
cb093c7
begin support for coq in ML
lucaspena Dec 12, 2019
a721d74
more support for coq in ML. inductive defs parse
lucaspena Dec 13, 2019
7bb9ed5
coq: Fix parsing of underscores
nishantjr Dec 14, 2019
1a294cc
add more parsing rules and Logic examples
Dec 14, 2019
e9245c3
minor
Dec 14, 2019
13c1df5
coq-lang: parsing more logic, can parse exists and AndComm
lucaspena Dec 16, 2019
7155865
coq-lang: format sentences (newline)
lucaspena Dec 16, 2019
2413968
t/Logic.v: added eq inductive type
lucaspena Dec 17, 2019
2d5da27
coq-driver: begin translating inductive defs to ml
lucaspena Dec 18, 2019
40317e2
coq-driver: begin translating Definitions
lucaspena Dec 19, 2019
2dd0fac
coq-driver: translating some definitions/terms
lucaspena Dec 19, 2019
8e88b50
coq-driver: more translating coq term to pattern. AndComm mostly tran…
lucaspena Jan 10, 2020
93bb94e
add mu, translating fix
lucaspena Jan 13, 2020
ba95017
coq-driver: translate binders from match clauses
lucaspena Jan 13, 2020
54749f9
translating ind defs
lucaspena Jan 15, 2020
12b53bc
parsing Logic.v
lucaspena Jan 27, 2020
0c60745
kore-lang: for aml: application is Pattern(Patterns)
lucaspena Jan 27, 2020
46b712b
cleanup
lucaspena Feb 5, 2020
b802ed3
remove coq tests besides Logic and nat_ind, add expeted output for those
lucaspena Feb 5, 2020
8585a5d
coq tests in own directory
lucaspena Feb 11, 2020
74f3c0b
use named axioms
lucaspena Feb 11, 2020
968a224
set variables no longer sorted
lucaspena Feb 11, 2020
5c2e2ce
create goals for typing coq defs. add result type to definitions
lucaspena Feb 12, 2020
b2bd250
change format for terms having type in v files
lucaspena Feb 14, 2020
3090652
coq-driver: translate forall to pi
lucaspena Feb 17, 2020
61881a2
change type-check to typecheck
lucaspena Feb 17, 2020
85e8229
placeholder for typecheck strategy
lucaspena Feb 17, 2020
33e7f10
encode output type in coq syntax rather than comment
lucaspena Feb 24, 2020
2eb94c1
begin typecheck strategy
lucaspena Feb 24, 2020
974aac4
typecheck works for simple examples
lucaspena Feb 27, 2020
182db6b
typecheck: minor change
lucaspena Mar 5, 2020
5b13db3
add coq rules
Mar 10, 2020
724644b
global environments, begin well-typing defs
lucaspena Mar 11, 2020
7011393
add basic Coq typing rules
Mar 26, 2020
477dde5
add authors
Mar 26, 2020
895d236
wording of comment in W-Local-Assum
lucaspena Mar 26, 2020
1de1820
parsing more terms in coq translation
lucaspena Mar 30, 2020
07675a4
coq-lang, coq-driver: handling more constructs for generated verbose …
lucaspena Apr 13, 2020
3deae83
more parsing
lucaspena Apr 19, 2020
10c7863
coq rules: conversion rules
lucaspena Apr 21, 2020
74f3359
coq_rules: more on conversion rules
lucaspena Apr 24, 2020
7331f17
coq_rules: subtyping rules
lucaspena May 20, 2020
e93c40e
coq_rules: Inductive Definitions
lucaspena May 22, 2020
bff2495
coq_rules: correctness rules
lucaspena Jun 3, 2020
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
8 changes: 7 additions & 1 deletion prover/build
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ proj = KProject()
# Matching Logic Prover
# =====================

other_md_files = [ 'lang/smt-lang.md'
other_md_files = [ 'lang/coq-lang.md'
, 'lang/smt-lang.md'
, 'lang/kore-lang.md'
, 'drivers/base.md'
, 'drivers/coq-driver.md'
, 'drivers/smt-driver.md'
, 'drivers/kore-driver.md'
, 'strategies/apply-equation.md'
Expand All @@ -34,6 +36,7 @@ other_md_files = [ 'lang/smt-lang.md'
, 'strategies/replace-evar-with-func-constant.md'
, 'strategies/simplification.md'
, 'strategies/search-bound.md'
, 'strategies/typecheck.md'
, 'strategies/smt.md'
, 'strategies/unfolding.md'
, 'utils/load-named.md'
Expand All @@ -53,13 +56,16 @@ def prover(alias, flags = None):

prover_kore = prover('prover-kore', '--main-module DRIVER-KORE --syntax-module DRIVER-KORE-SYNTAX')
prover_smt = prover('prover-smt', '--main-module DRIVER-SMT --syntax-module DRIVER-SMT-SYNTAX' )
prover_coq = prover('prover-coq', '--main-module DRIVER-COQ --syntax-module DRIVER-COQ-SYNTAX' )

# Functional tests
# ----------------

# prover_kore.tests(inputs = glob('t/*.kore'), implicit_inputs = glob('t/definitions/*.kore'), flags = '-cCOMMANDLINE=.CommandLine')
# prover_smt .tests(inputs = glob('t/*.smt2'), flags = '-cCOMMANDLINE=.CommandLine')

prover_coq .tests(inputs = glob('t/coq-tests/*.v'), flags = '-cCOMMANDLINE=.CommandLine')

def log_on_success(file, message):
return proj.rule( 'log-to-success'
, description = '$out: $message'
Expand Down
Binary file added prover/coq_rules/coq_rules.pdf
Binary file not shown.
Loading