Last active
March 18, 2024 00:09
-
-
Save jcreedcmu/711fb5a38cdfb29fc7882f82038db325 to your computer and use it in GitHub Desktop.
proof of correctness of chaotic iteration
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
open import Agda.Primitive | |
data ℕ : Set where | |
zero : ℕ | |
succ : ℕ → ℕ | |
record Σ {a b} (A : Set a) (B : A → Set b) : Set (a ⊔ b) where | |
constructor _,_ | |
field | |
fst : A | |
snd : B fst | |
open Σ public | |
infixr 4 _,_ | |
module _ | |
(A : ℕ → Set) | |
(B : ℕ → Set) | |
(J : Set) | |
(f : J → Set → Set) | |
(f-cont : (j : J) → f j (Σ ℕ A) → Σ ℕ (λ t → f j (A t))) | |
(f-mono : {X Y : Set} (g : X → Y) (j : J) → f j X → f j Y) | |
(B/z : {X : Set} → B zero → X) | |
(B/s : (t : ℕ) → B (succ t) → Σ J (λ j → f j (B t))) | |
(A/fair : (j : J) → Σ ℕ (λ t → f j (A t)) → Σ ℕ A) | |
where | |
thm : (s : ℕ) (b : B s) → Σ ℕ A | |
thm zero b = B/z b | |
thm (succ s) b = let (j , x) = B/s s b in A/fair j (f-cont j (f-mono (thm s) j x)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is approximately a formalization of the following argument: