Skip to content

Commit

Permalink
without k
Browse files Browse the repository at this point in the history
  • Loading branch information
KonjacSource committed Sep 5, 2024
1 parent dae4bc0 commit e81a03f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ghci> run "Eaxmple.shitt"
- [x] 元变量求解和隐式变量
- [x] 代数数据类型和模式匹配
- [x] 模式完全性检查
- [x] (可选的)无K的模式匹配(Weak K 目前没有排除)
- [x] 无K的模式匹配
- [ ] 运算符
- [ ] 停机检查
- [ ] 归纳类型的极性检查
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ghci> run "Eaxmple.shitt"
- [x] Meta variables and implict arugments (pattern unification)
- [x] Pattern matching and data type
- [x] Coverage checking
- [x] (Optional) Withou K (but Weak K still works for now)
- [x] Withou K

## TODO

Expand Down
10 changes: 9 additions & 1 deletion WithoutKTest.shitt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,12 @@ fun K1 {A : U} {a : A} (P : Id a a -> U) (p : P (refl _)) (e : Id a a) : P e whe

-- not OK
fun uip1 {B : U} {x x1 : B} (p q: Id x x1) : Id {Id x x1} p q where
| (refl _) (refl _) = refl (refl _)
| (refl _) (refl _) = refl (refl _)

-- not OK
fun weakK
{A : U} {a : A}
(P : Id {Id a a} (refl _) (refl _) -> U)
(p : P (refl _)) (e : Id {Id a a} (refl _) (refl _))
: P e where
| P p (refl _) = p
1 change: 0 additions & 1 deletion src/ShiTT/Inductive.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import Control.Exception
import Control.Monad (forM)
import Data.Maybe (fromJust, isJust, isNothing)
import ShiTT.Meta
import Debug.Trace (trace)
import Data.IORef (readIORef)

match :: Context -> [Pattern] -> Spine -> Maybe [Def]
Expand Down

0 comments on commit e81a03f

Please sign in to comment.