Variations on Noetherianness Denis Firsov, Tarmo Uustalu, Niccol` o - - PowerPoint PPT Presentation

variations on noetherianness
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 1

Variations on Noetherianness

Denis Firsov, Tarmo Uustalu, Niccol`

  • Veltri

Institute of Cybernetics at TUT

January 31, 2016

1 / 22

slide-2
SLIDE 2

Finiteness constructively

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

slide-3
SLIDE 3

Emmy Noether

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

slide-4
SLIDE 4

Noetherian sets

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

slide-5
SLIDE 5

Example: Booleans

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

slide-6
SLIDE 6

Listable and Noetherian sets I

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

slide-7
SLIDE 7

Separating Listability from Noetherianness

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

slide-8
SLIDE 8

Strict Noetherianness

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

slide-9
SLIDE 9

Decidable equality for strict Noetherian sets?

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

slide-10
SLIDE 10

Current situation

Listable NoethAcc NoethAccS LEMprop DEQ

10 / 22

slide-11
SLIDE 11

Another variation of Noetherianness

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

slide-12
SLIDE 12

Relation of NoethExpose to others

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

slide-13
SLIDE 13

Current situation

Listable NoethExpose NoethAcc NoethAccS LEMprop LPO DEQ

13 / 22

slide-14
SLIDE 14

Game of Noetherianness

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

slide-15
SLIDE 15

Current situation

Listable NoethExpose NoethAcc NoethAccS NoethGame LEMprop LPO DEQ ?

15 / 22

slide-16
SLIDE 16

Other notions of finiteness: Bounded sets

Bounded sets: n : Nat (xs : List X) → n ≤ length xs → Dup xs Bounded X

16 / 22

slide-17
SLIDE 17

Current situation

Listable NoethExpose Bounded NoethAcc NoethAccS NoethGame LEMprop LEMprop LPO LEMprop LPO LPO DEQ ?

17 / 22

slide-18
SLIDE 18

Other notions of finiteness: Streamless sets

Streamless sets: (xs : Stream X) → Dup xs Streamless X

18 / 22

slide-19
SLIDE 19

Final diagram

Listable NoethExpose Bounded NoethAcc Streamless NoethAccS NoethGame LEMprop LEMprop LPO LEMprop LPO LPO DEQ ?

19 / 22

slide-20
SLIDE 20

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

slide-21
SLIDE 21

Final diagram

Listable NoethExpose Bounded AFEq NoethAcc Streamless NoethAccS NoethGame LEMprop LEMprop LPO LEMprop LPO LPO DEQ ?

21 / 22

slide-22
SLIDE 22

Thank you for your attention! Questions?

22 / 22