-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
119 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
constant symbol Prop : TYPE; | ||
builtin "Prop" ≔ Prop; | ||
injective symbol π : Prop → TYPE; // `p | ||
builtin "P" ≔ π; | ||
|
||
constant symbol Set : TYPE; | ||
injective symbol τ : Set → TYPE; | ||
builtin "T" ≔ τ; | ||
|
||
constant symbol ⊥ : Prop; // \bot | ||
|
||
constant symbol ⇒ : Prop → Prop → Prop; notation ⇒ infix right 5; // => | ||
rule π ($p ⇒ $q) ↪ π $p → π $q; | ||
|
||
symbol ¬ p ≔ p ⇒ ⊥; // ~~ or \neg | ||
notation ¬ prefix 35; | ||
|
||
constant symbol ∀ [a] : (τ a → Prop) → Prop; notation ∀ quantifier; // !! or \forall | ||
rule π (∀ $f) ↪ Π x, π ($f x); | ||
|
||
injective symbol πᶜ p ≔ π (¬ ¬ p); | ||
|
||
flag "print_implicits" on; | ||
flag "print_domains" on; | ||
//flag "print_meta_types" on; | ||
|
||
symbol ∀ᶜ [a] p ≔ `∀ x : τ a, ¬ ¬ (p x); notation ∀ᶜ quantifier; | ||
|
||
//debug +hiuta; | ||
opaque symbol ∀ᶜᵢ p : (Π x, πᶜ (p x)) → πᶜ (∀ᶜ p) ≔ | ||
begin | ||
print; | ||
//debug -hiuta; | ||
assume p Hnnpx Hnnnpx; | ||
apply Hnnnpx; | ||
assume x Hnnp; | ||
apply Hnnpx x; | ||
assume Hnp; | ||
apply Hnnp; | ||
apply Hnp; | ||
end; | ||
|
||
print ∀ᶜᵢ; |
Oops, something went wrong.