Documentation

Cedar.Spec.Ext.IPAddr

This file defines Cedar IpAddr values and functions.

@[reducible, inline]
Equations
Instances For
    @[reducible, inline]
    Equations
    Instances For
      @[reducible, inline]
      Equations
      Instances For
        @[reducible, inline]

        IPv4 address: a 32 bit number partitioned into 4 groups. a0 is most signifcant and a3 is the least significant. In other words, the number represented is a0++a1++a2++a3. #

        Equations
        Instances For
          def Cedar.Spec.Ext.IPAddr.IPv4Addr.mk (a₀ a₁ a₂ a₃ : BitVec 8) :
          Equations
          Instances For
            @[reducible, inline]

            IPv6 address: a 128 bit number partitioned into 8 groups. a0 is most signifcant and a7 is the least significant. In other words, the number represented is a0++a1++a2++a3++a4++a5++a6++a7. #

            Equations
            Instances For
              def Cedar.Spec.Ext.IPAddr.IPv6Addr.mk (a₀ a₁ a₂ a₃ a₄ a₅ a₆ a₇ : BitVec 16) :
              Equations
              Instances For
                @[reducible, inline]
                Equations
                Instances For
                  Instances For
                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        def Cedar.Spec.Ext.IPAddr.CIDR.inRange {w : Nat} (cidr₁ cidr₂ : CIDR w) :
                        Equations
                        Instances For
                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            def Cedar.Spec.Ext.IPAddr.instDecidableEqCIDR.decEq {w✝ : Nat} (x✝ x✝¹ : CIDR w✝) :
                            Decidable (x✝ = x✝¹)
                            Equations
                            Instances For
                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For
                                Equations
                                Instances For
                                  instance Cedar.Spec.Ext.IPAddr.IPNetPrefix.decLt {w : Nat} (d₁ d₂ : IPNetPrefix w) :
                                  Decidable (d₁ < d₂)
                                  Equations
                                  def Cedar.Spec.Ext.IPAddr.CIDR.lt {w : Nat} (cidr₁ cidr₂ : CIDR w) :
                                  Equations
                                  Instances For
                                    Equations
                                    instance Cedar.Spec.Ext.IPAddr.CIDR.decLt {w : Nat} (d₁ d₂ : CIDR w) :
                                    Decidable (d₁ < d₂)
                                    Equations
                                    instance Cedar.Spec.Ext.IPAddr.IPNet.decLt (d₁ d₂ : IPNet) :
                                    Decidable (d₁ < d₂)
                                    Equations