First commit, a functional proof completeness of kripke structure for propositional logic

This commit is contained in:
2023-05-23 18:27:34 +02:00
commit ef0d5a51d7
5 changed files with 357 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
module test2 where
open import Data.Nat using ()
open import Data.Vec using (Vec; _∷_)
open import Data.Fin using (Fin; zero; suc)
variable
A : Set
n :
lookup : Vec A n Fin n A
lookup (a as) zero = a
lookup (a as) (suc i) = lookup as i
+16
View File
@@ -0,0 +1,16 @@
module test3 where
open import Data.Nat using (; _+_)
open import Relation.Binary.PropositionalEquality using (_≡_)
+-assoc : Set
+-assoc = (x y z : ) x + (y + z) (x + y) + z
open import Data.Nat using (zero; suc)
open import Relation.Binary.PropositionalEquality using (refl; cong)
+-assoc-proof : +-assoc
+-assoc-proof zero y z = refl
+-assoc-proof (suc x') y z = cong suc (+-assoc-proof x' y z)
+17
View File
@@ -0,0 +1,17 @@
data Greeting : Set where
hello : Greeting
greet : Greeting
greet = hello
module hello-world-dep where
open import Data.Nat using (; zero; suc)
data Vec (A : Set) : Set where
[] : Vec A zero
_∷_ : {n} (x : A) (xs : Vec A n) Vec A (suc n)
infixr 5 _∷_