Low complexity Tilings of the Plane Jarkko Kari Department of - - PowerPoint PPT Presentation

low complexity tilings of the plane
SMART_READER_LITE
LIVE PREVIEW

Low complexity Tilings of the Plane Jarkko Kari Department of - - PowerPoint PPT Presentation

Low complexity Tilings of the Plane Jarkko Kari Department of Mathematics and Statistics University of Turku, Finland We study how local constraints enforce global regularities This is a common phenomenon is sciences. For example, formation of


slide-1
SLIDE 1

Low complexity Tilings of the Plane

Jarkko Kari

Department of Mathematics and Statistics University of Turku, Finland

slide-2
SLIDE 2

We study how local constraints enforce global regularities This is a common phenomenon is sciences. For example, formation of crystals: Atoms attach to each other in a limited number of ways = ⇒ periodic arrangement of the atoms

slide-3
SLIDE 3

Our goal is to understand fundamental underlying principles that connect local rules to the global regularities

  • bserved in the structures.

Our setup: multidimensional symbolic dynamics (=tilings)

slide-4
SLIDE 4

Configurations are infinite d-dimensional grids of symbols.

slide-5
SLIDE 5

For a fixed finite shape D, we observe the D-patterns in the configuration.

slide-6
SLIDE 6

For a fixed finite shape D, we observe the D-patterns in the configuration.

slide-7
SLIDE 7

For a fixed finite shape D, we observe the D-patterns in the configuration.

slide-8
SLIDE 8

For a fixed finite shape D, we observe the D-patterns in the configuration.

slide-9
SLIDE 9

For a fixed finite shape D, we observe the D-patterns in the configuration.

slide-10
SLIDE 10

A quantity to measure local complexity: the pattern complexity P(c, D) = number of D-patterns in c.

slide-11
SLIDE 11

We call c a low complexity configuration if P(c, D) ≤ |D| for some finite D ⊆ Z2.

slide-12
SLIDE 12

Configuration c is periodic if it is invariant under a non-zero translation.

slide-13
SLIDE 13

Configuration c is two-periodic if it is invariant under non-zero translations in two different directions. This implies periodicity in every rational direction.

slide-14
SLIDE 14

Open problem: Nivat’s conjecture Consider d = 2 and rectangular D. Conjecture (Nivat 1997) If c has low complexity with respect to some rectangle then c is periodic.

slide-15
SLIDE 15

Open problem: Nivat’s conjecture Consider d = 2 and rectangular D. Conjecture (Nivat 1997) If c has low complexity with respect to some rectangle then c is periodic. This would extend the one-dimensional case d = 1: Morse-Hedlund theorem: Let c ∈ AZ and n ∈ N. If c has at most n distinct subwords of length n then c is periodic.

slide-16
SLIDE 16

Best known general bound in 2D: Theorem (Cyr, Kra): If P(c, D) ≤ 1

2|D| for some rectangle D

then c is periodic.

slide-17
SLIDE 17

In 3D and higher dimensional cases the conjecture is false Non-periodic c

slide-18
SLIDE 18

In 3D and higher dimensional cases the conjecture is false Non-periodic c D is n × n × n cube

slide-19
SLIDE 19

In 3D and higher dimensional cases the conjecture is false Non-periodic c D is n × n × n cube P(c, D) = 1 + . . .

slide-20
SLIDE 20

In 3D and higher dimensional cases the conjecture is false Non-periodic c D is n × n × n cube P(c, D) = 1 + n2 + . . .

slide-21
SLIDE 21

In 3D and higher dimensional cases the conjecture is false Non-periodic c D is n × n × n cube P(c, D) = 1 + n2 + n2

slide-22
SLIDE 22

In 3D and higher dimensional cases the conjecture is false Non-periodic c D is n × n × n cube P(c, D) = 1 + n2 + n2 < n3 = |D| for large n.

slide-23
SLIDE 23

Patterns − → Configurations: Given a set P of allowed D-patterns, the collection XP of all configurations whose D-patterns are allowed is the subshift of finite type (SFT) defined by P.

slide-24
SLIDE 24

Patterns − → Configurations: Given a set P of allowed D-patterns, the collection XP of all configurations whose D-patterns are allowed is the subshift of finite type (SFT) defined by P.

slide-25
SLIDE 25

Patterns − → Configurations: Given a set P of allowed D-patterns, the collection XP of all configurations whose D-patterns are allowed is the subshift of finite type (SFT) defined by P.

slide-26
SLIDE 26

Patterns − → Configurations: Given a set P of allowed D-patterns, the collection XP of all configurations whose D-patterns are allowed is the subshift of finite type (SFT) defined by P.

slide-27
SLIDE 27

Famous result by R.Berger (1962):

  • Undecidability of the domino problem: It is undecidable if

a given SFT is empty.

  • There exist aperiodic SFTs: non-empty SFTs that only

contain non-periodic configurations.

slide-28
SLIDE 28

Famous result by R.Berger (1962):

  • Undecidability of the domino problem: It is undecidable if

a given SFT is empty.

  • There exist aperiodic SFTs: non-empty SFTs that only

contain non-periodic configurations. We are interested in the analogous problems restricted to low complexity SFTs, where the number of allowed D-patterns is at most |D|.

slide-29
SLIDE 29

We study configuration c using algebra, so we first replace symbols by integers:

slide-30
SLIDE 30

We study configuration c using algebra, so we first replace symbols by integers:

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 0 1

slide-31
SLIDE 31

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 0 1

D-patterns are viewed as |D|-dimensional vectors.

slide-32
SLIDE 32

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 0 1

D-patterns are viewed as |D|-dimensional vectors. (1, 1, 1, 0)

slide-33
SLIDE 33

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 0 1

D-patterns are viewed as |D|-dimensional vectors. (1, 1, 1, 0) (1, 1, 0, 1)

slide-34
SLIDE 34

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 0 1

D-patterns are viewed as |D|-dimensional vectors. (1, 1, 1, 0) (1, 1, 0, 1) (0, 0, 1, 0)

slide-35
SLIDE 35

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 0 1

D-patterns are viewed as |D|-dimensional vectors. (1, 1, 1, 0) (1, 1, 0, 1) (0, 0, 1, 0) (0, 0, 1, 1)

slide-36
SLIDE 36

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 0 1

  • If P(c, D) < |D| then there is a vector orthogonal to all

D-patterns of c. Indeed: the number P(c, D) of distinct vectors is less than the dimension |D| of the linear space.

slide-37
SLIDE 37

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 0 1

  • If P(c, D) < |D| then there is a vector orthogonal to all

D-patterns of c.

  • Even if P(c, D) = |D| there is a vector with constant inner

product with all D-patterns of c.

slide-38
SLIDE 38

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 0 1

(1, 1, 1, 0) (1, 1, 0, 1) (0, 0, 1, 0) (0, 0, 1, 1)              ⊥ (1, −1, 0, 0)

slide-39
SLIDE 39

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 0 1

(1, 1, 1, 0) (1, 1, 0, 1) (0, 0, 1, 0) (0, 0, 1, 1)              ⊥ (1, −1, 0, 0)

  • 1

1

slide-40
SLIDE 40

Further algebraization: represent configuration c as a formal Laurent power series (negative exponents included).

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

c ← →

  • (i,j)∈Z2

c(i, j)xiyj

slide-41
SLIDE 41

Further algebraization: represent configuration c as a formal Laurent power series (negative exponents included).

1 2

  • 1
  • 2

1 1 1 2 1

  • 2

1 1

  • 1

2 2

0x y2

  • 2

x y 1

2

  • 1

2 1 2

  • 1
  • 1
  • 1
  • 1

1

  • 1
  • 2
  • 1

2

  • 2
  • 2
  • 2
  • 1
  • 2
  • 2

2

  • 2

1

0x y 0x y 0x y 0x y 0x y 0x y 0x y 0x y 0x y x y 1 x y 1 x y 1 x y 1 x y 1 x y 1 x y 1 x y 1 x y 1 x y 1 x y 1 x y 1 x y 1 x y 1

c ← →

  • (i,j)∈Z2

c(i, j)xiyj

slide-42
SLIDE 42

Further algebraization: represent configuration c as a formal Laurent power series (negative exponents included).

1 2

  • 1
  • 2

1 1 1 2 1

  • 2

1 1

  • 1

2 2

0x y2

  • 2

x y 1

2

  • 1

2 1 2

  • 1
  • 1
  • 1
  • 1

1

  • 1
  • 2
  • 1

2

  • 2
  • 2
  • 2
  • 1
  • 2
  • 2

2

  • 2

1

0x y 0x y 0x y 0x y 0x y 0x y 0x y 0x y 0x y x y 1 x y 1 x y 1 x y 1 x y 1 x y 1 x y 1 x y 1 x y 1 x y 1 x y 1 x y 1 x y 1 x y 1 + ...+ + + + ...+ ...+ ...+ ...+ +... +... +... +... +... + + + + + + + + + + + + + + + +

c ← →

  • (i,j)∈Z2

c(i, j)xiyj

slide-43
SLIDE 43

c(X) =

  • I∈Z2

cIXI Notations

  • X = (x, y)
  • For I = (i, j) ∈ Z2 we denote by

XI = xiyj the monomial that represents cell I.

slide-44
SLIDE 44

c(X) =

  • I∈Z2

cIXI

  • Multiplying by monomial XJ gives translation by J ∈ Z2:

XJ · c(X) =

  • I∈Z2

cIXI+J

  • So c(X) is J-periodic if and only if XJ · c(X) = c(X), i.e.,

(XJ − 1)c(X) = 0

  • We say that (Laurent) polynomial f(X) annihilates c(X) if

f(X)c(X) = 0.

slide-45
SLIDE 45

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 0 1

Recall:

  • 1

1

P(c, D) ≤ |D| = ⇒ a vector with constant inner product with all D-patterns of c

slide-46
SLIDE 46

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 0 1

Recall:

  • 1

1

P(c, D) ≤ |D| = ⇒ a vector with constant inner product with all D-patterns of c = ⇒ a non-zero polynomial f(X) such that f(X)c(X) is a constant configuration

slide-47
SLIDE 47

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 0 1

Recall:

  • 1

1

P(c, D) ≤ |D| = ⇒ a vector with constant inner product with all D-patterns of c = ⇒ a non-zero polynomial f(X) such that f(X)c(X) is a constant configuration = ⇒ c(X) has a non-zero annihilator f(X)(x − 1)

slide-48
SLIDE 48

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 0 1

Conclusion: Every low complexity configuration c(X) ∈ Z[[X±1]] has a non-zero annihilator f(X) ∈ Z[X±1].

slide-49
SLIDE 49

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 0 1

Conclusion: Every low complexity configuration c(X) ∈ Z[[X±1]] has a non-zero annihilator f(X) ∈ Z[X±1]. We can also do all calculations modulo p. Conclusion: Every low complexity configuration c(X) ∈ Fp[[X±1]] has a non-zero annihilator f(X) ∈ Fp[X±1].

slide-50
SLIDE 50

The algebraic SFT defined by a fixed polynomial f(X) ∈ Fp[X±1] is the set Xf = {c(X) | f(X)c(X) = 0}

  • f all configurations over field Fp that are annihilated by f(X).

Conclusion: Every low complexity configuration belongs to an algebraic SFT.

slide-51
SLIDE 51

Example (Ledrappier SFT): Configurations of F2 annihilated by f(x, y) = 1 + x + xy. Space-time diagrams of the XOR-cellular automaton: Two states {0, 1}, local rule adds (modulo 2) the value of the right neighbor to the current state:

slide-52
SLIDE 52

Example (Ledrappier SFT): Configurations of F2 annihilated by f(x, y) = 1 + x + xy. Space-time diagrams of the XOR-cellular automaton: Two states {0, 1}, local rule adds (modulo 2) the value of the right neighbor to the current state:

slide-53
SLIDE 53

Example (Ledrappier SFT): Configurations of F2 annihilated by f(x, y) = 1 + x + xy. Space-time diagrams of the XOR-cellular automaton: Two states {0, 1}, local rule adds (modulo 2) the value of the right neighbor to the current state:

slide-54
SLIDE 54

Example (Ledrappier SFT): Configurations of F2 annihilated by f(x, y) = 1 + x + xy. Space-time diagrams of the XOR-cellular automaton: Two states {0, 1}, local rule adds (modulo 2) the value of the right neighbor to the current state:

slide-55
SLIDE 55

Example (Ledrappier SFT): Configurations of F2 annihilated by f(x, y) = 1 + x + xy. Space-time diagrams of the XOR-cellular automaton: Two states {0, 1}, local rule adds (modulo 2) the value of the right neighbor to the current state:

slide-56
SLIDE 56

There are many non-periodic configurations in Ledrappier. . .

slide-57
SLIDE 57

There are also two-periodic configurations. . .

slide-58
SLIDE 58

More generally: Space-time diagrams of any linear cellular automaton form an algebraic SFT, e.g., 3-neighbor XOR: and a sample space-time diagram

slide-59
SLIDE 59

From Fp back to Z: Theorem (JK, M.Szabados 2015): If a configuration c(X)

  • ver Z has a non-trivial annihilator then it has an annihilator

∆(X) = (1 − XI1)(1 − XI2) . . . (1 − XIm) for some non-zero Ii ∈ Z2.

slide-60
SLIDE 60

From Fp back to Z: Theorem (JK, M.Szabados 2015): If a configuration c(X)

  • ver Z has a non-trivial annihilator then it has an annihilator

∆(X) = (1 − XI1)(1 − XI2) . . . (1 − XIm) for some non-zero Ii ∈ Z2. If all calculations in c(X)∆(X) are done modulo p we get Corollary: Every low-complexity configuration over Fp has an annihilator of form ∆(X).

slide-61
SLIDE 61

We have that any low complexity c(X) in the Ledrappier SFT is annihilated by f(X) = 1 + x + xy (definition of Ledrappier) ∆(X) = (1 − XI1) . . . (1 − XIm) (our theorem)

slide-62
SLIDE 62

We have that any low complexity c(X) in the Ledrappier SFT is annihilated by f(X) = 1 + x + xy (definition of Ledrappier) ∆(X) = (1 − XI1) . . . (1 − XIm) (our theorem) Polynomials f(X) and ∆(X) have no common factors:

  • All irreducible factors of ∆(X) are line polynomials (all

terms aligned on a single line).

1 1 2

1 + 2x2y + x6y3

slide-63
SLIDE 63

We have that any low complexity c(X) in the Ledrappier SFT is annihilated by f(X) = 1 + x + xy (definition of Ledrappier) ∆(X) = (1 − XI1) . . . (1 − XIm) (our theorem) Polynomials f(X) and ∆(X) have no common factors:

  • All irreducible factors of ∆(X) are line polynomials (all

terms aligned on a single line).

  • f(X) has no line polynomial factors.
slide-64
SLIDE 64

Elimination theory: The resultant Resx(f, g)

  • f polynomials f(x, y) and g(x, y).
  • A polynomial in variable y only: x has been eliminated.
  • Generated by f and g so

Resx(f, g) = α(X)f(X) + β(X)g(X) for some polynomials α and β.

  • If f and g do not have common factors then Resx(f, g) is

not zero.

slide-65
SLIDE 65

The annihilators of a low complexity c in Ledrappier f(X) = 1 + y + xy ∆(X) = (1 − XI1)(1 − XI2) . . . (1 − XIm) have no common factors so the resultants Resx(f, ∆) and Resy(f, ∆) are vertical and horizontal line polynomials generated by f(X) and ∆(X). f and ∆ annihilate c = ⇒ Resx(f, ∆) and Resy(f, ∆) annihilate c Conclusion: c is two-periodic.

slide-66
SLIDE 66

Theorem (JK, E.Moutot 2019). Let c be a low-complexity configuration of an algebraic SFT Xf over the finite field Fp. If the defining polynomial f of the SFT

  • has no line polynomial factors then c is two-periodic.
  • has line polynomial factors only in one direction then c is

periodic in this direction.

slide-67
SLIDE 67

Theorem (JK, E.Moutot 2019). Let c be a low-complexity configuration of an algebraic SFT Xf over the finite field Fp. If the defining polynomial f of the SFT

  • has no line polynomial factors then c is two-periodic.
  • has line polynomial factors only in one direction then c is

periodic in this direction. The theorem applies to the space-time diagrams of any linear cellular automaton over Fp.

slide-68
SLIDE 68

Back to Nivat’s conjecture: A low complexity configuration c over Z has a special annihilator ∆(X) = (1 − XI1)(1 − XI2) . . . (1 − XIm)

  • If m = 1 then c is periodic.
  • Also otherwise, c is a sum of m periodic power series.
slide-69
SLIDE 69
  • Example. The 3D counter example

is a sum of two periodic configurations. It is annihilated by polynomial (1 − y)(1 − x).

slide-70
SLIDE 70

Using the special annihilator ∆(X) = (1 − XI1)(1 − XI2) . . . (1 − XIm) we obtain (proof skipped): Theorem (JK, E.Moutot 2019): If c is uniformly recurrent and P(c, D) ≤ |D| for some rectangle D then c is periodic. In fact: Any convex shape D works in place of a rectangle.

slide-71
SLIDE 71

Every non-empty subshift contains a uniformly recurrent configuration = ⇒ No low complexity aperiodic SFT’s: Any subshift that contains a low complexity configuration (w.r.t. a convex shape) also contains a periodic configuration.

slide-72
SLIDE 72

Every non-empty subshift contains a uniformly recurrent configuration = ⇒ No low complexity aperiodic SFT’s: Any subshift that contains a low complexity configuration (w.r.t. a convex shape) also contains a periodic configuration. = ⇒ Decidability of the domino problem: Given a set of at most |D| allowed patterns of some convex shape D, there is an algorithm to determine if a configuration exists whose D-patterns are all allowed.

slide-73
SLIDE 73

Every non-empty subshift contains a uniformly recurrent configuration = ⇒ No low complexity aperiodic SFT’s: Any subshift that contains a low complexity configuration (w.r.t. a convex shape) also contains a periodic configuration. = ⇒ Decidability of the domino problem: Given a set of at most |D| allowed patterns of some convex shape D, there is an algorithm to determine if a configuration exists whose D-patterns are all allowed. Standard reasoning:

  • A semi-algorithm to test if a given SFT is empty.
  • A semi-algorithm to test if a given SFT contains a periodic

configuration.

slide-74
SLIDE 74

Every non-empty subshift contains a uniformly recurrent configuration = ⇒ No low complexity aperiodic SFT’s: Any subshift that contains a low complexity configuration (w.r.t. a convex shape) also contains a periodic configuration. = ⇒ Decidability of the domino problem: Given a set of at most |D| allowed patterns of some convex shape D, there is an algorithm to determine if a configuration exists whose D-patterns are all allowed. Best possible: The following problem is undecidable for any fixed α > 1. Given a set of at most α|D| allowed patterns of some square shape D, is there a configuration whose D-patterns are all allowed ?

slide-75
SLIDE 75

Open questions:

  • What can one say for non-convex shapes ? Is there an

algorithm to test emptyness ? Note that there exist low complexity uniformly recurrent configurations that are non-periodic.

  • Higher dimensional cases ? Algorithms and aperiodicity
  • f low complexity SFTs in higher dimensions ?
  • The original Nivat’s conjecture is still open. Potentially

true for any convex shape in place of the rectangle (as suggested by Julien Cassaigne).

slide-76
SLIDE 76

Open questions:

  • What can one say for non-convex shapes ? Is there an

algorithm to test emptyness ? Note that there exist low complexity uniformly recurrent configurations that are non-periodic.

  • Higher dimensional cases ? Algorithms and aperiodicity
  • f low complexity SFTs in higher dimensions ?
  • The original Nivat’s conjecture is still open. Potentially

true for any convex shape in place of the rectangle (as suggested by Julien Cassaigne).

T h a n k Y

  • u
slide-77
SLIDE 77

Recall: Configuration c is uniformly recurrent if ∀ finite patterns p that appear in c ∃ number N s.t. there is a copy of p in c inside every N × N square

slide-78
SLIDE 78

Recall: Configuration c is uniformly recurrent if ∀ finite patterns p that appear in c ∃ number N s.t. there is a copy of p in c inside every N × N square

p=

slide-79
SLIDE 79

Recall: Configuration c is uniformly recurrent if ∀ finite patterns p that appear in c ∃ number N s.t. there is a copy of p in c inside every N × N square

p=

slide-80
SLIDE 80

Recall: Configuration c is uniformly recurrent if ∀ finite patterns p that appear in c ∃ number N s.t. there is a copy of p in c inside every N × N square

p=

slide-81
SLIDE 81

Recall: Configuration c is uniformly recurrent if ∀ finite patterns p that appear in c ∃ number N s.t. there is a copy of p in c inside every N × N square

p=

slide-82
SLIDE 82

Recall: Configuration c is uniformly recurrent if ∀ finite patterns p that appear in c ∃ number N s.t. there is a copy of p in c inside every N × N square

p=

slide-83
SLIDE 83

Recall: Configuration c is uniformly recurrent if ∀ finite patterns p that appear in c ∃ number N s.t. there is a copy of p in c inside every N × N square

p=

slide-84
SLIDE 84

Recall: Configuration c is uniformly recurrent if ∀ finite patterns p that appear in c ∃ number N s.t. there is a copy of p in c inside every N × N square

p=