Variations on Noetherianness
Denis Firsov, Tarmo Uustalu, Niccol`
- Veltri
Institute of Cybernetics at TUT
January 31, 2016
1 / 22
Variations on Noetherianness Denis Firsov, Tarmo Uustalu, Niccol` o - - PowerPoint PPT Presentation
Variations on Noetherianness Denis Firsov, Tarmo Uustalu, Niccol` o Veltri Institute of Cybernetics at TUT January 31, 2016 1 / 22 Finiteness constructively Straightforward way of saying that the set X is finite is to ask for enumeration of
Denis Firsov, Tarmo Uustalu, Niccol`
Institute of Cybernetics at TUT
January 31, 2016
1 / 22
Straightforward way of saying that the set X is finite is to ask for enumeration of its elements: Listable X = ∃[ xs ∈ List X ] ((x : X) → x ∈ xs) Previously we showed that listability of a set implies decidable equality on its elements: Listable→DecEq : {X : Set} → Listable X → DecEq X Can we define “morally” finite sets without decidable equality? What are the alternative notions of finiteness to listability?
2 / 22
In 2010 Coquand and Spiwack introduced the alternative notion of finiteness – Noetherian sets. The definition is inspired by Noetherian rings from abstract algebra. Noetherian ring is a ring that satisfies the ascending chain condition on ideals; that is, given any chain of ideals: I1 ⊆ · · · ⊆ Ik−1 ⊆ Ik ⊆ Ik+1 ⊆ · · · there exists an n such that: In = In+1 = · · · . Emmy Noether (1882-1935)
3 / 22
A set is Noetherian if whenever we are shown elements from it one after another, sooner or later we will have seen some element twice. Formally it can be expressed as two inductive rules: (x : X) → NoethAcc’ X (x :: acc) NoethAcc’ X acc ask Dup acc NoethAcc’ X acc stop The set X is Noetherian if we can prove NoethAcc’ X []. Therefore, the synonym: NoethAcc X = NoethAcc’ X []
4 / 22
The proof that the set of Booleans is Noetherian is a tree: [] [F] [F,F] [F,T] [F,T,F] [F,T,T] [T] [T,T] [T,F] [T,F,F] [T,F,T] The proof of NoethAcc X does not reveal the elements of X or even the size of X. Any branch of a proof is not required to stop immediately after there was a duplicate. The particular branch of a proof may stop before seeing all the elements of a set, e.g. [T, T].
5 / 22
What is the relation between Listable and NoethAcc? Clearly, if set is listable then it is Noetherian: Lstbl→NoethAcc : {X : Set} → Listable X → NoethAcc X We mentioned that all listable sets have decidable equality. Same holds for Noetherian sets: NoethAcc→Eq : {X : Set} → NoethAcc X → DecEq X Can it be that all Noetherian sets are also listable?
6 / 22
To prove that listability is stronger than Noetherianness we exploit that from listability you can conclude the cardinality of a set. First, we define the propositional sets: isProp X = (x1 x2 : X) → x1 ≡ x2 Then we prove that any proposition X is Noetherian. NoethProp : (X : Set) → isProp X → NoethAcc X Next, assuming that every proposition X is listable allows us to derive law of excluded middle for propositions (LEMprop): ListableProp→LEM : ((X : Set) → isProp X → Listable X) → (X : Set) → isProp X → X + ¬ X
7 / 22
Some questions remain: Can we define finite sets without decidable equality? What is the notion of finiteness which does not imply decidable equality? Next variation of Noetherianness we consider are “strict” Noetherian sets: (x : X) → (x / ∈ acc) → NoethAccS’ X (x :: acc) NoethAccS’ X acc ask
8 / 22
Consider a set NotNotIn : {X : Set} → List X → Set NotNotIn {X} xs = ∃[ x ∈ X ] ¬ ¬ x ∈ xs The set NotNotIn is strictly Noetherian. NoethAccSNotNotIn : {X : Set} → (xs : List X) → NoethAccS (NotNotIn xs) Moreover, decidable equality on the elements of NotNotIn implies general decidable equality on all sets: DEQ : ({X : Set} (xs : List X) → DecEq (NotNotIn xs)) → {X : Set} → DecEq X
9 / 22
Listable NoethAcc NoethAccS LEMprop DEQ
10 / 22
NoethExpose combines ideas from Listable and NoethAcc: (x : X) → NoethExpose’ X (x :: acc) NoethExpose’ X acc ask x : X NoethExpose’ X (x :: acc) NoethExpose’ X acc give (x : X) → x ∈ acc NoethExpose’ X acc all The distinctive property of NoethExpose: exppr : {X : Set} → X → NoethExpose X → Listable X
11 / 22
It is immediate that Listable X implies NoethExpose X (just use the constructors give and all). We prove that NoethExpose X implies NoethAcc X. (As a corollary NoethExpose X implies also decidable equality on X.) We prove that the implication from NoethExpose X to Listable X would also imply the LEMprop. Finally, we show that given the proof that NoethAcc X implies NoethExpose X we can derive the limited principle of omniscience (LPO).
12 / 22
Listable NoethExpose NoethAcc NoethAccS LEMprop LPO DEQ
13 / 22
Another variation on the theme is: (x : X) → (x / ∈ acc) → NoethGame’ X (x :: acc) NoethGame’ X acc ask x : X NoethGame’ X (x :: acc) NoethGame’ X acc give We know that NoethGame implies NoethAccS (therefore no decidable equality). It is still open if the opposite direction holds.
14 / 22
Listable NoethExpose NoethAcc NoethAccS NoethGame LEMprop LPO DEQ ?
15 / 22
Bounded sets: n : Nat (xs : List X) → n ≤ length xs → Dup xs Bounded X
16 / 22
Listable NoethExpose Bounded NoethAcc NoethAccS NoethGame LEMprop LEMprop LPO LEMprop LPO LPO DEQ ?
17 / 22
Streamless sets: (xs : Stream X) → Dup xs Streamless X
18 / 22
Listable NoethExpose Bounded NoethAcc Streamless NoethAccS NoethGame LEMprop LEMprop LPO LEMprop LPO LPO DEQ ?
19 / 22
Almost-full relations: R is total AF X R ((x : X) → AF X (λ y z → R y z + R x y)) AF X R AFEq X = AF X _≡_
20 / 22
Listable NoethExpose Bounded AFEq NoethAcc Streamless NoethAccS NoethGame LEMprop LEMprop LPO LEMprop LPO LPO DEQ ?
21 / 22
22 / 22