Created
November 3, 2018 09:50
-
-
Save louisswarren/e7e069afc1cb223c07ed7a1fb6a116f1 to your computer and use it in GitHub Desktop.
Frontier algorithm
This file contains hidden or 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
open import Agda.Primitive | |
open import Agda.Builtin.Equality | |
data Chain {n} {A : Set n} (f : A → A) (x : A) : A → Set (lsuc n) where | |
nil : Chain f x x | |
link : ∀{y} → Chain f x y → Chain f x (f y) | |
record FixedPoint {n} {A : Set n} (R : A → A → Set) (f : A → A) : Set (lsuc n) where | |
constructor fp | |
field | |
point : A | |
fixed : R point (f point) | |
open FixedPoint public | |
record Limit {n} {A : Set n} (R : A → A → Set) (f : A → A) (x : A) : Set (lsuc n) where | |
constructor limit | |
field | |
converges : FixedPoint R f | |
attains : Chain f x (point converges) | |
open Limit public |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment